(()=>{var e,t={3(e,t,n){"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>Ae,hasStandardBrowserEnv:()=>Pe,hasStandardBrowserWebWorkerEnv:()=>_e,navigator:()=>Te,origin:()=>Ie});const i=window.wp.blocks;var o=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},React.createElement("g",{clipPath:""},React.createElement("path",{fill:"#fff",d:"M6.028 0H6a6.03 6.03 0 0 0-4.817 2.422A5.95 5.95 0 0 0 0 6c0 1.146.324 2.26.938 3.221a6.017 6.017 0 0 0 2.434 2.174A5.942 5.942 0 0 0 6 12H6.028C9.32 11.984 12 9.292 12 6S9.32.016 6.028 0Zm3.55 4.727L5.815 8.492a.857.857 0 0 1-1.22 0L2.42 6.318a.865.865 0 0 1 .61-1.473c.231 0 .448.09.611.253l1.564 1.564 3.154-3.154a.857.857 0 0 1 .61-.253c.23 0 .447.09.61.253.163.163.253.38.253.61 0 .23-.09.447-.253.61Z"}),React.createElement("path",{fill:"#fff",d:"M9.579 4.727 5.814 8.492a.857.857 0 0 1-1.22 0L2.42 6.318a.865.865 0 0 1 .61-1.473c.231 0 .448.09.611.253l1.564 1.564 3.154-3.154a.857.857 0 0 1 .61-.253c.23 0 .447.09.61.253.163.163.253.38.253.61 0 .23-.09.447-.253.61Z"}),React.createElement("path",{fill:"#1A74E4",d:"M6.028 0H6a6.03 6.03 0 0 0-4.817 2.422A5.95 5.95 0 0 0 0 6c0 1.146.324 2.26.938 3.221a6.017 6.017 0 0 0 2.434 2.174A5.942 5.942 0 0 0 6 12H6.028C9.32 11.984 12 9.292 12 6S9.32.016 6.028 0Zm3.55 4.727L5.815 8.492a.857.857 0 0 1-1.22 0L2.42 6.318a.865.865 0 0 1 .61-1.473c.231 0 .448.09.611.253l1.564 1.564 3.154-3.154a.857.857 0 0 1 .61-.253c.23 0 .447.09.61.253.163.163.253.38.253.61 0 .23-.09.447-.253.61Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M0 0h12v12H0z"}))))},a=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:14,height:14,viewBox:"0 0 14 14",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_13968_266e)"},React.createElement("path",{d:"M2.26612 4.11595C3.37829 2.2925 5.49847 1.20166 7.74998 1.50927C10.7824 1.92355 12.9048 4.71765 12.4905 7.75006C12.0762 10.7825 9.2821 12.9049 6.24972 12.4906C3.99821 12.183 2.24836 10.5634 1.66601 8.5085M2.02244 2.49303L2.04627 4.36557L3.84791 4.2143",stroke:"#949494",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_13968_266e"},React.createElement("rect",{width:14,height:14,fill:"white"}))))},l=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},React.createElement("path",{fill:"#2F2F2F",stroke:"#757575",d:"M8.4 14.8v.5H.5v-.5h7.9ZM.5 1.2V.7h7.9v.5H.5Zm15 7H.5v-.5h15v.5Z"}))},s=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},React.createElement("path",{fill:"#2F2F2F",stroke:"#757575",d:"M12.4 1.2v.5H3.6v-.5h8.8ZM15.5 8H.5v-.5h15v.5ZM3.6 14.8v.5h8.8v-.5H3.6Z"}))},c=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:24,fill:"none"},React.createElement("path",{fill:"#2F2F2F",stroke:"#757575",d:"M47.5 18.8v.5h-7.9v-.5h7.9Zm0-13.6h-7.9v-.5h7.9v.5Zm0 6.6v.5h-15v-.5h15Z"}))},u=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},React.createElement("g",{fill:"#FF5B2E",clipPath:"url(#eabcategoryIcon)"},React.createElement("path",{d:"M.5 4.015a.5.5 0 0 0-.5.5v7.03a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5v-7.03a.5.5 0 0 0-.5-.5H.5Zm14.527 6.497a.5.5 0 0 1-.5.5H1.534a.5.5 0 0 1-.5-.5V7.496a.5.5 0 0 1 .5-.5h12.993a.5.5 0 0 1 .5.5v3.016ZM0 .5A.5.5 0 0 1 .5 0h15a.5.5 0 0 1 .5.5v1.981a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5V.5ZM0 13.519a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 .5.5V15.5a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-1.981Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"eabcategoryIcon"},React.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"}))))},d=function(){return React.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0 9a9 9 0 1 1 18 0A9 9 0 0 1 0 9",fill:"#4ab866",fillOpacity:.1}),React.createElement("path",{d:"M9 .5a8.5 8.5 0 1 1 0 17 8.5 8.5 0 0 1 0-17Z",stroke:"#4ab866",strokeOpacity:.6}),React.createElement("g",{clipPath:"url(#a)",fill:"#4ab866"},React.createElement("path",{d:"M10.386 7.761a.84.84 0 0 0 .557.428.78.78 0 0 0 .69-.195l1.46-1.34-.473 3.767H5.39l-.475-3.767 1.462 1.34a.78.78 0 0 0 .69.195.84.84 0 0 0 .557-.428l1.38-2.533z",stroke:"#4ab866",strokeWidth:.847}),React.createElement("path",{d:"M12.577 13.282H5.432c-.23 0-.416-.228-.416-.508v-1.117h7.977v1.117c0 .28-.186.508-.416.508"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M4 4h10v10H4z"}))))};const h=window.wp.plugins,f=window.wp.compose,p=window.wp.data,m=window.wp.element;var g="/eap-accordion/v2/get_premade_patterns",v="sp-eap-patterns-builder-modal",b="sp-eap-patterns-popup-open",y="sp-eap-patterns-toolbar-design-library",w="Enter",E={TREND:[{value:"default",label:"Sort By"},{value:"popular",label:"Popular"},{value:"latest",label:"Latest"}]};function x(e,t){return function(){return e.apply(t,arguments)}}const{toString:R}=Object.prototype,{getPrototypeOf:k}=Object,{iterator:S,toStringTag:O}=Symbol,C=(M=Object.create(null),e=>{const t=R.call(e);return M[t]||(M[t]=t.slice(8,-1).toLowerCase())});var M;const A=e=>(e=e.toLowerCase(),t=>C(t)===e),T=e=>t=>typeof t===e,{isArray:P}=Array,_=T("undefined");function I(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const D=A("ArrayBuffer"),j=T("string"),L=T("function"),N=T("number"),B=e=>null!==e&&"object"==typeof e,F=e=>{if("object"!==C(e))return!1;const t=k(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||O in e||S in e)},H=A("Date"),z=A("File"),V=A("Blob"),W=A("FileList"),Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{},q=void 0!==Z.FormData?Z.FormData:void 0,K=A("URLSearchParams"),[U,$,G,Y]=["ReadableStream","Request","Response","Headers"].map(A);function X(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),P(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,ee=e=>!_(e)&&e!==Q,te=(ne="undefined"!=typeof Uint8Array&&k(Uint8Array),e=>ne&&e instanceof ne);var ne;const re=A("HTMLFormElement"),ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oe=A("RegExp"),ae=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};X(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},le=A("AsyncFunction"),se=(ce="function"==typeof setImmediate,ue=L(Q.postMessage),ce?setImmediate:ue?((e,t)=>(Q.addEventListener("message",({source:n,data:r})=>{n===Q&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Q.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ce,ue;const de="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Q):"undefined"!=typeof process&&process.nextTick||se,he={isArray:P,isArrayBuffer:D,isBuffer:I,isFormData:e=>{if(!e)return!1;if(q&&e instanceof q)return!0;const t=k(e);if(!t||t===Object.prototype)return!1;if(!L(e.append))return!1;const n=C(e);return"formdata"===n||"object"===n&&L(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&D(e.buffer),t},isString:j,isNumber:N,isBoolean:e=>!0===e||!1===e,isObject:B,isPlainObject:F,isEmptyObject:e=>{if(!B(e)||I(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:U,isRequest:$,isResponse:G,isHeaders:Y,isUndefined:_,isDate:H,isFile:z,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:V,isRegExp:oe,isFunction:L,isStream:e=>B(e)&&L(e.pipe),isURLSearchParams:K,isTypedArray:te,isFileList:W,forEach:X,merge:function e(){const{caseless:t,skipUndefined:n}=ee(this)&&this||{},r={},i=(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const a=t&&J(r,o)||o;F(r[a])&&F(i)?r[a]=e(r[a],i):F(i)?r[a]=e({},i):P(i)?r[a]=i.slice():n&&_(i)||(r[a]=i)};for(let e=0,t=arguments.length;e(X(t,(t,r)=>{n&&L(t)?Object.defineProperty(e,r,{value:x(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&k(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:C,kindOfTest:A,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!N(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[S]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:re,hasOwnProperty:ie,hasOwnProp:ie,reduceDescriptors:ae,freezeMethods:e=>{ae(e,(t,n)=>{if(L(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];L(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return P(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:J,global:Q,isContextDefined:ee,isSpecCompliantForm:function(e){return!!(e&&L(e.append)&&"FormData"===e[O]&&e[S])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(B(e)){if(t.indexOf(e)>=0)return;if(I(e))return e;if(!("toJSON"in e)){t[r]=e;const i=P(e)?[]:{};return X(e,(e,t)=>{const o=n(e,r+1);!_(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:le,isThenable:e=>e&&(B(e)||L(e))&&L(e.then)&&L(e.catch),setImmediate:se,asap:de,isIterable:e=>null!=e&&L(e[S])};class fe extends Error{static from(e,t,n,r,i,o){const a=new fe(e.message,t||e.code,n,r,i);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}}fe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",fe.ERR_BAD_OPTION="ERR_BAD_OPTION",fe.ECONNABORTED="ECONNABORTED",fe.ETIMEDOUT="ETIMEDOUT",fe.ERR_NETWORK="ERR_NETWORK",fe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",fe.ERR_DEPRECATED="ERR_DEPRECATED",fe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",fe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",fe.ERR_CANCELED="ERR_CANCELED",fe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",fe.ERR_INVALID_URL="ERR_INVALID_URL",fe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const pe=fe;function me(e){return he.isPlainObject(e)||he.isArray(e)}function ge(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){return e?e.concat(t).map(function(e,t){return e=ge(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const be=he.toFlatObject(he,{},null,function(e){return/^is[A-Z]/.test(e)}),ye=function(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!he.isUndefined(t[e])})).metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,l=n.Blob||"undefined"!=typeof Blob&&Blob,s=void 0===n.maxDepth?100:n.maxDepth,c=l&&he.isSpecCompliantForm(t);if(!he.isFunction(i))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(he.isBoolean(e))return e.toString();if(!c&&he.isBlob(e))throw new pe("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let l=e;if(he.isReactNative(t)&&he.isReactNativeBlob(e))return t.append(ve(i,n,o),u(e)),!1;if(e&&!i&&"object"==typeof e)if(he.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&function(e){return he.isArray(e)&&!e.some(me)}(e)||(he.isFileList(e)||he.endsWith(n,"[]"))&&(l=he.toArray(e)))return n=ge(n),l.forEach(function(e,r){!he.isUndefined(e)&&null!==e&&t.append(!0===a?ve([n],r,o):null===a?n:n+"[]",u(e))}),!1;return!!me(e)||(t.append(ve(i,n,o),u(e)),!1)}const h=[],f=Object.assign(be,{defaultVisitor:d,convertValue:u,isVisitable:me});if(!he.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!he.isUndefined(n)){if(o>s)throw new pe("Object is too deeply nested ("+o+" levels). Max depth: "+s,pe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),he.forEach(n,function(n,a){!0===(!(he.isUndefined(n)||null===n)&&i.call(t,n,he.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a],o+1)}),h.pop()}}(e),t};function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ee(e,t){this._pairs=[],e&&ye(e,this,t)}const xe=Ee.prototype;xe.append=function(e,t){this._pairs.push([e,t])},xe.toString=function(e){const t=e?function(t){return e.call(this,t,we)}:we;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Re=Ee;function ke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Se(e,t,n){if(!t)return e;const r=n&&n.encode||ke,i=he.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let a;if(a=o?o(t,i):he.isURLSearchParams(t)?t.toString():new Re(t,i).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Oe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Me={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ae="undefined"!=typeof window&&"undefined"!=typeof document,Te="object"==typeof navigator&&navigator||void 0,Pe=Ae&&(!Te||["ReactNative","NativeScript","NS"].indexOf(Te.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ie=Ae&&window.location.href||"http://localhost",De={...r,...Me},je=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),l=i>=e.length;return o=!o&&he.isArray(r)?r.length:o,l?(he.hasOwnProp(r,o)?r[o]=he.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n,!a):(r[o]&&he.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&he.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Le=(e,t)=>null!=e&&he.hasOwnProp(e,t)?e[t]:void 0,Ne={transitional:Ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=he.isObject(e);if(i&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return r?JSON.stringify(je(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e)||he.isReadableStream(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){const t=Le(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ye(e,new De.classes.URLSearchParams,{visitor:function(e,t,n,r){return De.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((o=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Le(this,"env"),r=n&&n.FormData;return ye(o?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType("application/json",!1),function(e){if(he.isString(e))try{return(0,JSON.parse)(e),he.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Le(this,"transitional")||Ne.transitional,n=t&&t.forcedJSONParsing,r=Le(this,"responseType"),i="json"===r;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(n&&!r||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Le(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw pe.from(e,pe.ERR_BAD_RESPONSE,this,null,Le(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{Ne.headers[e]={}});const Be=Ne,Fe=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),He=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Fe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};(Object.getOwnPropertyDescriptor(He,"name")||{}).writable||Object.defineProperty(He,"name",{value:"default",configurable:!0});const ze=Symbol("internals"),Ve=/[^\x09\x20-\x7E\x80-\xFF]/g;function We(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return!1===e||null==e?e:he.isArray(e)?e.map(Ze):function(e){let t=0,n=e.length;for(;tt;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(Ve,""))}function qe(e,t,n,r,i){return he.isFunction(r)?r.call(this,t,n):(i&&(t=n),he.isString(t)?he.isString(r)?-1!==t.indexOf(r):he.isRegExp(r)?r.test(t):void 0:void 0)}class Ke{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=We(t);if(!i)throw new Error("header name must be a non-empty string");const o=he.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ze(e))}const o=(e,t)=>he.forEach(e,(e,n)=>i(e,n,t));if(he.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(he.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o(He(e),t);else if(he.isObject(e)&&he.isIterable(e)){let n,r,i={};for(const t of e){if(!he.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?he.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=We(e)){const n=he.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(he.isFunction(t))return t.call(this,e,n);if(he.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=We(e)){const n=he.findKey(this,e);return!(!n||void 0===this[n]||t&&!qe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=We(e)){const i=he.findKey(n,e);!i||t&&!qe(0,n[i],i,t)||(delete n[i],r=!0)}}return he.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!qe(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return he.forEach(this,(r,i)=>{const o=he.findKey(n,i);if(o)return t[o]=Ze(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ze(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&he.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ze]=this[ze]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=We(e);t[r]||(function(e,t){const n=he.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return he.isArray(e)?e.forEach(r):r(e),this}}Ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Ke.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),he.freezeMethods(Ke);const Ue=Ke;function $e(e,t){const n=this||Be,r=t||n,i=Ue.from(r.headers);let o=r.data;return he.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ge(e){return!(!e||!e.__CANCEL__)}const Ye=class extends pe{constructor(e,t,n){super(null==e?"canceled":e,pe.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Xe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new pe("Request failed with status code "+n.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Je=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),c=r[a];i||(i=s),n[o]=l,r[o]=s;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),s-i{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),l=t-i;l>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-l)))},()=>n&&a(n)]}(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,l=null!=a?Math.min(o,a):o,s=Math.max(0,l-r),c=i(s);r=Math.max(r,l),e({loaded:l,total:a,progress:a?l/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a?(a-l)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Qe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},et=e=>(...t)=>he.asap(()=>e(...t)),tt=De.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,De.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):()=>!0,nt=De.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if("undefined"==typeof document)return;const l=[`${e}=${encodeURIComponent(t)}`];he.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),he.isString(r)&&l.push(`path=${r}`),he.isString(i)&&l.push(`domain=${i}`),!0===o&&l.push("secure"),he.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function rt(e,t,n){let r=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const it=e=>e instanceof Ue?{...e}:e;function ot(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:r},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function i(e,t,n,i){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!he.isUndefined(t))return r(void 0,t)}function a(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,i,o){return he.hasOwnProp(t,o)?r(n,i):he.hasOwnProp(e,o)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const s={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:l,headers:(e,t,n)=>i(it(e),it(t),0,!0)};return he.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=he.hasOwnProp(s,r)?s[r]:i,a=o(he.hasOwnProp(e,r)?e[r]:void 0,he.hasOwnProp(t,r)?t[r]:void 0,r);he.isUndefined(a)&&o!==l||(n[r]=a)}),n}const at=e=>{const t=ot({},e),n=e=>he.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),a=n("xsrfCookieName");let l=n("headers");const s=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=l=Ue.from(l),t.url=Se(rt(c,d,u),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),he.isFormData(r))if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(he.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&l.set(e,n)})}if(De.hasStandardBrowserEnv&&(he.isFunction(i)&&(i=i(t)),!0===i||null==i&&tt(t.url))){const e=o&&a&&nt.read(a);e&&l.set(o,e)}return t};(Object.getOwnPropertyDescriptor(at,"name")||{}).writable||Object.defineProperty(at,"name",{value:"default",configurable:!0});const lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=at(e);let i=r.data;const o=Ue.from(r.headers).normalize();let a,l,s,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:f}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ue.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Xe(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new pe("Request aborted",pe.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new pe(r,pe.ERR_NETWORK,e,m);i.event=t||null,n(i),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new pe(t,i.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&he.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),he.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([s,u]=Je(f,!0),m.addEventListener("progress",s)),h&&m.upload&&([l,c]=Je(h),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ye(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===De.protocols.indexOf(v)?n(new pe("Unsupported protocol "+v+":",pe.ERR_BAD_REQUEST,e)):m.send(i||null)})},st=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof pe?t:new Ye(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new pe(`timeout of ${t}ms exceeded`,pe.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>he.asap(a),l}},ct=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ct(n,t)}(e,t);let o,a=0,l=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},{isFunction:dt}=he,ht=(({Request:e,Response:t})=>({Request:e,Response:t}))(he.global),{ReadableStream:ft,TextEncoder:pt}=he.global,mt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gt=e=>{e=he.merge.call({skipUndefined:!0},ht,e);const{fetch:t,Request:n,Response:r}=e,i=t?dt(t):"function"==typeof fetch,o=dt(n),a=dt(r);if(!i)return!1;const l=i&&dt(ft),s=i&&("function"==typeof pt?(c=new pt,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=o&&l&&mt(()=>{let e=!1;const t=new n(De.origin,{body:new ft,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),d=a&&l&&mt(()=>he.isReadableStream(new r("").body)),h={stream:d&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!h[e]&&(h[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new pe(`Response type '${e}' is not supported`,pe.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:i,method:a,data:l,signal:c,cancelToken:f,timeout:p,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:b,withCredentials:y="same-origin",fetchOptions:w}=at(e),E=t||fetch;v=v?(v+"").toLowerCase():"text";let x=st([c,f&&f.toAbortSignal()],p),R=null;const k=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let S;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(S=await(async(e,t)=>{const r=he.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e)){const t=new n(De.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return he.isArrayBufferView(e)||he.isArrayBuffer(e)?e.byteLength:(he.isURLSearchParams(e)&&(e+=""),he.isString(e)?(await s(e)).byteLength:void 0)})(t):r})(b,l))){let e,t=new n(i,{method:"POST",body:l,duplex:"half"});if(he.isFormData(l)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Qe(S,Je(et(g)));l=ut(t.body,65536,e,n)}}he.isString(y)||(y=y?"include":"omit");const t=o&&"credentials"in n.prototype;if(he.isFormData(l)){const e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}const c={...w,signal:x,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:l,duplex:"half",credentials:t?y:void 0};R=o&&new n(i,c);let f=await(o?E(R,w):E(i,c));const p=d&&("stream"===v||"response"===v);if(d&&(m||p&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=he.toFiniteNumber(f.headers.get("content-length")),[n,i]=m&&Qe(t,Je(et(m),!0))||[];f=new r(ut(f.body,65536,n,()=>{i&&i(),k&&k()}),e)}v=v||"text";let O=await h[he.findKey(h,v)||"text"](f,e);return!p&&k&&k(),await new Promise((t,n)=>{Xe(t,n,{data:O,headers:Ue.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:R})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new pe("Network Error",pe.ERR_NETWORK,e,R,t&&t.response),{cause:t.cause||t});throw pe.from(t,t&&t.code,e,R,t&&t.response)}}},vt=new Map,bt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a,l,s=o.length,c=vt;for(;s--;)a=o[s],l=c.get(a),void 0===l&&c.set(a,l=s?new Map:gt(t)),c=l;return l},yt=(bt(),{http:null,xhr:lt,fetch:{get:bt}});he.forEach(yt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const wt=e=>`- ${e}`,Et=e=>he.isFunction(e)||null===e||!1===e,xt=function(e,t){e=he.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(wt).join("\n"):" "+wt(e[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function kt(e){return Rt(e),e.headers=Ue.from(e.headers),e.data=$e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xt(e.adapter||Be.adapter,e)(e).then(function(t){return Rt(e),t.data=$e.call(e,e.transformResponse,t),t.headers=Ue.from(t.headers),t},function(t){return Ge(t)||(Rt(e),t&&t.response&&(t.response.data=$e.call(e,e.transformResponse,t.response),t.response.headers=Ue.from(t.response.headers))),Promise.reject(t)})}const St="1.15.2",Ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ct={};Ot.transitional=function(e,t,n){function r(e,t){return"[Axios v"+St+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new pe(r(i," has been removed"+(t?" in "+t:"")),pe.ERR_DEPRECATED);return t&&!Ct[i]&&(Ct[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},Ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Mt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new pe("option "+o+" must be "+n,pe.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new pe("Unknown option "+o,pe.ERR_BAD_OPTION)}},validators:Ot},At=Mt.validators;class Tt{constructor(e){this.defaults=e||{},this.interceptors={request:new Oe,response:new Oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),i=-1===r?"":n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ot(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Mt.assertOptions(n,{silentJSONParsing:At.transitional(At.boolean),forcedJSONParsing:At.transitional(At.boolean),clarifyTimeoutError:At.transitional(At.boolean),legacyInterceptorReqResOrdering:At.transitional(At.boolean)},!1),null!=r&&(he.isFunction(r)?t.paramsSerializer={serialize:r}:Mt.assertOptions(r,{encode:At.function,serialize:At.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Mt.assertOptions(t,{baseUrl:At.spelling("baseURL"),withXsrfToken:At.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&he.merge(i.common,i[t.method]);i&&he.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Ue.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||Ce;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const s=[];let c;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let u,d=0;if(!l){const e=[kt.bind(this),void 0];for(e.unshift(...a),e.push(...s),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Ye(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new _t(function(t){e=t}),cancel:e}}}const It=_t,Dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Dt).forEach(([e,t])=>{Dt[t]=e});const jt=Dt,Lt=function e(t){const n=new Pt(t),r=x(Pt.prototype.request,n);return he.extend(r,Pt.prototype,n,{allOwnKeys:!0}),he.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ot(t,n))},r}(Be);Lt.Axios=Pt,Lt.CanceledError=Ye,Lt.CancelToken=It,Lt.isCancel=Ge,Lt.VERSION=St,Lt.toFormData=ye,Lt.AxiosError=pe,Lt.Cancel=Lt.CanceledError,Lt.all=function(e){return Promise.all(e)},Lt.spread=function(e){return function(t){return e.apply(null,t)}},Lt.isAxiosError=function(e){return he.isObject(e)&&!0===e.isAxiosError},Lt.mergeConfig=ot,Lt.AxiosHeaders=Ue,Lt.formToJSON=e=>je(he.isHTMLForm(e)?new FormData(e):e),Lt.getAdapter=xt,Lt.HttpStatusCode=jt,Lt.default=Lt;const Nt=Lt,Bt=window.wp.i18n;var Ft=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M22.35 1.85A.35.35 0 0 0 22 1.5H2a.35.35 0 0 0-.35.35v11.3c0 .193.157.35.35.35h20a.35.35 0 0 0 .35-.35zm1.3 11.3A1.65 1.65 0 0 1 22 14.8H2a1.65 1.65 0 0 1-1.65-1.65V1.85C.35.939 1.089.2 2 .2h20c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M18.788 3.147a1 1 0 0 1 1.414-.008l.65.644a.5.5 0 0 1-.704.71l-.65-.643-.643.65a.5.5 0 0 1-.71-.704zM12.5 3.1a.65.65 0 0 1 0 1.3h-9a.65.65 0 0 1 0-1.3zm5 5.657a.6.6 0 1 1 0 1.199h-14a.6.6 0 1 1 0-1.2zm-4 2.312a.5.5 0 1 1 0 1h-10a.5.5 0 0 1 0-1zM23 6.2a.65.65 0 0 1 0 1.3H1a.65.65 0 0 1 0-1.3zm-.65 11.95a.35.35 0 0 0-.35-.35H2a.35.35 0 0 0-.35.35v4c0 .193.157.35.35.35h20a.35.35 0 0 0 .35-.35zm1.3 4A1.65 1.65 0 0 1 22 23.8H2a1.65 1.65 0 0 1-1.65-1.65v-4c0-.911.739-1.65 1.65-1.65h20c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M18.082 19.4a.5.5 0 0 1 .707-.007l.663.65q.003.004.016.005.013-.001.016-.005l.67-.644a.5.5 0 0 1 .693.721l-.67.644a1.026 1.026 0 0 1-1.425-.007l-.662-.65a.5.5 0 0 1-.008-.707m-5.582.1a.65.65 0 0 1 0 1.3h-9a.65.65 0 0 1 0-1.3z",fill:"#ff5b2e",className:"eab-block-icon"}))},Ht=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 236 158"},React.createElement("rect",{width:234.5,height:156.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("path",{fill:"#718491",d:"M209.945 67.852v1.246H25.493v-1.246h184.452Zm1.246-1.246V20.493c0-.689-.558-1.247-1.246-1.247H25.493c-.689 0-1.247.558-1.247 1.247v46.113c0 .688.558 1.246 1.247 1.246v1.246A2.493 2.493 0 0 1 23 66.606V20.493A2.493 2.493 0 0 1 25.492 18h184.453a2.493 2.493 0 0 1 2.492 2.493v46.113a2.493 2.493 0 0 1-2.492 2.492v-1.246c.688 0 1.246-.558 1.246-1.246Z"}),React.createElement("path",{fill:"#718491",d:"M209.945 18a2.492 2.492 0 0 1 2.492 2.492v14.956H23V20.492A2.493 2.493 0 0 1 25.492 18h184.453Z"}),React.createElement("path",{stroke:"#718491",d:"M209.945 18a2.492 2.492 0 0 1 2.492 2.492v14.956H23V20.492A2.493 2.493 0 0 1 25.492 18h184.453Z"}),React.createElement("path",{fill:"#fff",d:"M29.231 26.724c0-.688.558-1.246 1.247-1.246h120.891a1.246 1.246 0 0 1 0 2.492H30.478a1.246 1.246 0 0 1-1.247-1.246Z"}),React.createElement("g",{clipPath:"url(#a)"},React.createElement("path",{fill:"#fff",d:"M201.97 24.907a.842.842 0 0 1 .916.078l2.915 2.429a.539.539 0 0 1 0 .858.836.836 0 0 1-1.031 0l-2.4-2-2.398 2a.836.836 0 0 1-1.031 0 .539.539 0 0 1 0-.858l2.915-2.43.114-.077Z"})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("path",{d:"M30.478 41.648c0-.67.543-1.215 1.214-1.215h172.053c.671 0 1.215.544 1.215 1.215v.064c0 .67-.544 1.214-1.215 1.214H31.692c-.67 0-1.214-.544-1.214-1.214v-.064ZM30.478 47.88c0-.671.543-1.215 1.214-1.215h169.561c.67 0 1.214.544 1.214 1.214v.064c0 .67-.544 1.215-1.214 1.215H31.693c-.672 0-1.215-.544-1.215-1.215v-.064ZM30.478 54.11c0-.67.543-1.214 1.214-1.214h172.053c.671 0 1.215.544 1.215 1.215v.064c0 .67-.544 1.214-1.215 1.214H31.692c-.67 0-1.214-.544-1.214-1.214v-.064ZM30.478 60.342c0-.67.543-1.214 1.214-1.214h52.409c.67 0 1.214.544 1.214 1.214v.064c0 .67-.544 1.214-1.214 1.214H31.692c-.67 0-1.214-.543-1.214-1.214v-.064Z"})),React.createElement("rect",{width:189.438,height:17.448,x:23,y:75.284,fill:"#718491",rx:2.493}),React.createElement("rect",{width:189.438,height:17.448,x:23,y:75.284,stroke:"#718491",rx:2.493}),React.createElement("path",{fill:"#fff",d:"M29.231 84.008c0-.688.558-1.246 1.246-1.246H151.37a1.246 1.246 0 0 1 0 2.492H30.477a1.246 1.246 0 0 1-1.246-1.246Z"}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("path",{fill:"#fff",d:"M202.772 85.634a.84.84 0 0 1-.915-.078l-2.915-2.429a.537.537 0 0 1 0-.858.836.836 0 0 1 1.031 0l2.399 2 2.398-2a.836.836 0 0 1 1.031 0 .539.539 0 0 1 0 .858l-2.915 2.43-.114.077Z"})),React.createElement("rect",{width:189.438,height:17.448,x:23,y:98.918,fill:"#718491",rx:2.493}),React.createElement("rect",{width:189.438,height:17.448,x:23,y:98.918,stroke:"#718491",rx:2.493}),React.createElement("path",{fill:"#fff",d:"M29.231 107.642c0-.688.558-1.246 1.246-1.246H151.37a1.246 1.246 0 0 1 0 2.492H30.477a1.246 1.246 0 0 1-1.246-1.246Z"}),React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{fill:"#fff",d:"M201.97 109.268a.841.841 0 0 0 .916-.078l2.915-2.429a.539.539 0 0 0 0-.858.836.836 0 0 0-1.031 0l-2.4 2-2.398-2a.836.836 0 0 0-1.031 0 .539.539 0 0 0 0 .858l2.915 2.429.114.078Z"})),React.createElement("rect",{width:189.438,height:17.448,x:23,y:122.552,fill:"#718491",rx:2.493}),React.createElement("rect",{width:189.438,height:17.448,x:23,y:122.552,stroke:"#718491",rx:2.493}),React.createElement("path",{fill:"#fff",d:"M29.231 131.276c0-.688.558-1.246 1.246-1.246H151.37a1.246 1.246 0 0 1 0 2.492H30.477a1.246 1.246 0 0 1-1.246-1.246Z"}),React.createElement("g",{clipPath:"url(#d)"},React.createElement("path",{fill:"#fff",d:"M201.97 132.902a.841.841 0 0 0 .916-.078l2.915-2.429a.539.539 0 0 0 0-.858.836.836 0 0 0-1.031 0l-2.4 2-2.398-2a.836.836 0 0 0-1.031 0 .539.539 0 0 0 0 .858l2.915 2.429.114.078Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M198.728 22.985h7.478v7.478h-7.478z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M198.728 80.27h7.478v7.477h-7.478z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M198.728 103.903h7.478v7.478h-7.478z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M198.728 127.537h7.478v7.478h-7.478z"}))))},zt=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M14.05 2a.35.35 0 0 0-.35-.35h-12a.35.35 0 0 0-.35.35v20c0 .193.157.35.35.35h12a.35.35 0 0 0 .35-.35zm1.3 20a1.65 1.65 0 0 1-1.65 1.65h-12A1.65 1.65 0 0 1 .05 22V2C.05 1.089.789.35 1.7.35h12c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M2.897 5.217a1 1 0 0 1-.008-1.414l.644-.65a.5.5 0 0 1 .71.704l-.643.65.65.642a.5.5 0 0 1-.704.711zm-.047 6.288a.65.65 0 0 1 1.3 0v9a.65.65 0 0 1-1.3 0zm9.85-8.5a.5.5 0 0 1 0 1H8.3a.5.5 0 1 1 0-1zM11.3 4.8a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm.5 1.805a.5.5 0 0 1 0 1H8.3a.5.5 0 1 1 0-1zm.9 3a.5.5 0 0 1 0 1H8.3a.5.5 0 0 1 0-1zM11.3 11.4a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm.5 1.805a.5.5 0 1 1 0 1H8.3a.5.5 0 0 1 0-1zM5.65 23V1a.65.65 0 0 1 1.3 0v22a.65.65 0 0 1-1.3 0m17-21a.35.35 0 0 0-.35-.35h-3.6a.35.35 0 0 0-.35.35v20c0 .193.157.35.35.35h3.6a.35.35 0 0 0 .35-.35zm1.3 20c0 .911-.74 1.65-1.65 1.65h-3.6A1.65 1.65 0 0 1 17.05 22V2c0-.911.739-1.65 1.65-1.65h3.6c.91 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M19.764 3.14a.5.5 0 0 1 .706.013l.644.67a1.026 1.026 0 0 1-.007 1.425l-.65.662a.5.5 0 0 1-.715-.699l.65-.663q.005-.003.006-.016-.001-.013-.005-.016l-.644-.67a.5.5 0 0 1 .015-.706m.086 17.36v-9a.65.65 0 0 1 1.3 0v9a.65.65 0 0 1-1.3 0",fill:"#ff5b2e",className:"eab-block-icon"}))},Vt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 236 158"},React.createElement("rect",{width:234.5,height:156.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("rect",{width:120.78,height:104.92,x:26.64,y:139.39,fill:"#fff",stroke:"#718491",strokeWidth:1.22,rx:1.83,transform:"rotate(-90 26.64 139.39)"}),React.createElement("path",{fill:"#718491",d:"M26 20.44A2.44 2.44 0 0 1 28.44 18H46v122H28.44a2.44 2.44 0 0 1-2.44-2.44V20.44Z"}),React.createElement("path",{stroke:"#718491",d:"M26 20.44A2.44 2.44 0 0 1 28.44 18H46v122H28.44a2.44 2.44 0 0 1-2.44-2.44V20.44Z"}),React.createElement("rect",{width:70.76,height:2.44,x:34.78,y:133.9,fill:"#fff",rx:1.22,transform:"rotate(-90 34.78 133.9)"}),React.createElement("g",{clipPath:"url(#a)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.4,d:"m37.095 25.476-2.377 2.378 2.377 2.377"})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:69.54,height:2.44,x:54.09,y:83.28,rx:1.189}),React.createElement("rect",{width:70.76,height:2.44,x:54.09,y:89.38,rx:1.189}),React.createElement("rect",{width:69.54,height:2.44,x:54.09,y:95.48,rx:1.189}),React.createElement("rect",{width:53.68,height:2.44,x:54.09,y:101.58,rx:1.189})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:70.76,height:2.44,x:54.09,y:58.88,rx:1.189}),React.createElement("rect",{width:69.54,height:2.44,x:54.09,y:64.98,rx:1.189}),React.createElement("rect",{width:70.76,height:2.44,x:54.09,y:71.08,rx:1.189})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:70.76,height:2.44,x:54.09,y:28.38,rx:1.189}),React.createElement("rect",{width:69.54,height:2.44,x:54.09,y:34.48,rx:1.189}),React.createElement("rect",{width:70.76,height:2.44,x:54.09,y:40.58,rx:1.189}),React.createElement("rect",{width:53.68,height:2.44,x:54.09,y:46.68,rx:1.189})),React.createElement("rect",{width:122,height:20,x:138.37,y:140,fill:"#718491",rx:2.44,transform:"rotate(-90 138.37 140)"}),React.createElement("rect",{width:122,height:20,x:138.37,y:140,stroke:"#718491",rx:2.44,transform:"rotate(-90 138.37 140)"}),React.createElement("rect",{width:70.76,height:2.44,x:147.15,y:133.9,fill:"#fff",rx:1.22,transform:"rotate(-90 147.15 133.9)"}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.4,d:"m149.465 25.476-2.377 2.378 2.377 2.377"})),React.createElement("rect",{width:122,height:20,x:164.57,y:140,fill:"#718491",rx:2.44,transform:"rotate(-90 164.57 140)"}),React.createElement("rect",{width:122,height:20,x:164.57,y:140,stroke:"#718491",rx:2.44,transform:"rotate(-90 164.57 140)"}),React.createElement("rect",{width:75.64,height:2.44,x:173.35,y:133.9,fill:"#fff",rx:1.22,transform:"rotate(-90 173.35 133.9)"}),React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.4,d:"m175.665 25.476-2.377 2.378 2.377 2.377"})),React.createElement("rect",{width:122,height:20,x:190.77,y:140,fill:"#718491",rx:2.44,transform:"rotate(-90 190.77 140)"}),React.createElement("rect",{width:122,height:20,x:190.77,y:140,stroke:"#718491",rx:2.44,transform:"rotate(-90 190.77 140)"}),React.createElement("rect",{width:69.54,height:2.44,x:199.55,y:133.9,fill:"#fff",rx:1.22,transform:"rotate(-90 199.55 133.9)"}),React.createElement("g",{clipPath:"url(#d)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.4,d:"m201.865 25.476-2.377 2.378 2.377 2.377"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M32.34 31.42V24.1h7.32v7.32z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M144.71 31.42V24.1h7.32v7.32z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M170.91 31.42V24.1h7.32v7.32z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M197.11 31.42V24.1h7.32v7.32z"}))))},Wt=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M14.05 2a.35.35 0 0 0-.35-.35h-12a.35.35 0 0 0-.35.35v20c0 .193.157.35.35.35h12a.35.35 0 0 0 .35-.35zm1.3 20a1.65 1.65 0 0 1-1.65 1.65h-12A1.65 1.65 0 0 1 .05 22V2C.05 1.089.789.35 1.7.35h12c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M9.469 14.831a.8.8 0 0 1 1.08.077l.058.069L14.9 20.7l-.8.6-4.155-5.54-3.426 3.428a.8.8 0 0 1-.977.12L3.629 18.16.9 21.8l-.8-.6 2.837-3.784a.8.8 0 0 1 .916-.27l.136.065 1.933 1.16 3.48-3.48zM4.5 13.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0m1 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M22.65 2a.35.35 0 0 0-.35-.35h-3.6a.35.35 0 0 0-.35.35v20c0 .193.157.35.35.35h3.6a.35.35 0 0 0 .35-.35zm1.3 20c0 .911-.74 1.65-1.65 1.65h-3.6A1.65 1.65 0 0 1 17.05 22V2c0-.911.739-1.65 1.65-1.65h3.6c.91 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}))},Zt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},React.createElement("path",{fill:"#fff",d:"M1.75 17.417V13.75a1 1 0 1 1 2 0v3.667a.833.833 0 0 0 .833.833h12.834a.833.833 0 0 0 .833-.833V13.75a1 1 0 1 1 2 0v3.667a2.833 2.833 0 0 1-2.833 2.833H4.583a2.833 2.833 0 0 1-2.833-2.833ZM10.294 2.043a1 1 0 0 1 1.414 0l4.584 4.583a1 1 0 0 1-1.414 1.414L11 4.163 7.125 8.04a1 1 0 1 1-1.414-1.414l4.583-4.583Z"}),React.createElement("path",{fill:"#fff",d:"M10 13.75v-11a1 1 0 1 1 2 0v11a1 1 0 1 1-2 0Z"}))},qt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 236 158"},React.createElement("rect",{width:234.5,height:156.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("mask",{id:"a",fill:"#fff"},React.createElement("rect",{width:47.368,height:76.316,x:17.816,y:41,rx:1.526})),React.createElement("rect",{width:47.368,height:76.316,x:17.816,y:41,stroke:"#718491",strokeWidth:6.104,mask:"url(#a)",rx:1.526}),React.createElement("path",{fill:"#718491",d:"M26.647 99.088c-4.174 1.901-7.627-3.96-8.831-7.127v22.303a3.052 3.052 0 0 0 3.052 3.052h41.264a3.052 3.052 0 0 0 3.052-3.052V99.088c-9.868 2.11-8.552-11.931-18.064-17.421-9.29-5.362-15.254 15.046-20.473 17.421Z"}),React.createElement("ellipse",{cx:29.658,cy:68.841,fill:"#718491",rx:5.58,ry:5.529}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{fill:"#fff",d:"M71.763 41h92.105v76.316H71.763z"}),React.createElement("mask",{id:"d",fill:"#fff"},React.createElement("rect",{width:92.105,height:76.315,x:71.763,y:41,rx:1.569})),React.createElement("rect",{width:92.105,height:76.315,x:71.763,y:41,fill:"#fff",stroke:"#718491",strokeWidth:5.263,mask:"url(#d)",rx:1.569}),React.createElement("path",{fill:"#718491",stroke:"#718491",strokeWidth:2.632,d:"M119.725 77.487c1.578-.482 3.02-.61 4.33-.35 1.295.259 2.549.914 3.745 2.145 2.696 2.775 5.09 5.697 7.521 8.514 2.407 2.79 4.842 5.468 7.532 7.605 2.705 2.15 5.702 3.783 9.245 4.455 3.096.586 6.53.424 10.454-.673v14.994A1.822 1.822 0 0 1 160.73 116H74.902a1.823 1.823 0 0 1-1.823-1.823V93.229a22.578 22.578 0 0 0 4.432 3.485c3.19 1.895 7.258 3.11 11.75 1.96 1.472-.376 3.014-1.18 4.57-2.197 1.566-1.024 3.217-2.31 4.909-3.715 3.462-2.875 6.947-6.104 10.628-9.042 3.642-2.907 7.16-5.256 10.357-6.233Z"}),React.createElement("circle",{cx:90.18,cy:70.486,r:6.843,fill:"#718491",stroke:"#718491",strokeWidth:2.632}),React.createElement("path",{fill:"#718491",d:"M71.763 41h92.105v76.316H71.763z",opacity:.7})),React.createElement("g",{clipPath:"url(#e)"},React.createElement("g",{fill:"#fff",opacity:.9},React.createElement("rect",{width:7.895,height:7.895,x:113.869,y:57.013,rx:1.282}),React.createElement("rect",{width:58,height:3.5,x:88.816,y:68.855,rx:1.75}),React.createElement("rect",{width:36.842,height:2.632,x:99.395,y:77.618,rx:1.282}),React.createElement("rect",{width:21.053,height:2.632,x:107.29,y:82.882,rx:1.282})),React.createElement("rect",{width:31.579,height:10.526,x:102.026,y:90.776,fill:"#fff",rx:1.316}),React.createElement("rect",{width:18.421,height:2.632,x:108.605,y:94.724,fill:"#718491",rx:1.316}))),React.createElement("mask",{id:"f",fill:"#fff"},React.createElement("rect",{width:47.368,height:76.316,x:170.447,y:41,rx:1.526})),React.createElement("rect",{width:47.368,height:76.316,x:170.447,y:41,stroke:"#718491",strokeWidth:6.104,mask:"url(#f)",rx:1.526}),React.createElement("path",{fill:"#718491",d:"M179.647 99.148c-4.175 1.862-7.627-3.879-8.832-6.982v21.786a3.053 3.053 0 0 0 3.053 3.053h41.264a3.053 3.053 0 0 0 3.052-3.053V99.148c-9.869 2.066-8.854-10.876-18.064-17.067-8.91-5.987-15.255 14.74-20.473 17.067Z"}),React.createElement("ellipse",{cx:182.292,cy:68.274,fill:"#718491",rx:5.523,ry:5.472}),React.createElement("defs",null,React.createElement("clipPath",{id:"b"},React.createElement("rect",{width:92.105,height:76.316,x:71.763,y:41,fill:"#fff",rx:2.632})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M71.763 41h92.105v76.316H71.763z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M83.606 57.013h68.42v44.29h-68.42z"}))))},Kt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},React.createElement("path",{stroke:"#FF5B2E",fill:"#fff",strokeWidth:1.5,d:"M6.5 1H2a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h4.5m11-22H22a1 1 0 0 1 1 1v20a1 1 0 0 1-1 1h-4.5"}),React.createElement("g",{fill:"#FF5B2E"},React.createElement("path",{d:"M5.5 8.513a.5.5 0 0 0-.5.5v6.027a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5V9.013a.5.5 0 0 0-.5-.5h-13Zm12.648 5.622a.5.5 0 0 1-.5.5H6.405a.5.5 0 0 1-.5-.5v-2.513a.5.5 0 0 1 .5-.5h11.243a.5.5 0 0 1 .5.5v2.513ZM5 5.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5v1.608a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V5.5ZM5 16.892a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5V18.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-1.608Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M5 5h14v14H5z"}))))},Ut=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M15.55 1.8a.35.35 0 0 0-.35-.35H8.8a.35.35 0 0 0-.35.35v16.5c0 .193.157.35.35.35h6.4a.35.35 0 0 0 .35-.35zm1.3 16.5a1.65 1.65 0 0 1-1.65 1.65H8.8a1.65 1.65 0 0 1-1.65-1.65V1.8C7.15.889 7.889.15 8.8.15h6.4c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M12.84 9.97a.8.8 0 0 1 1.178.011l.062.08 2.33 3.345-.82.572-2.17-3.115-1.35 1.868a.8.8 0 0 1-1.075.207l-1.143-.722-1.442 2.07-.82-.572 1.55-2.226.048-.063a.8.8 0 0 1 1.036-.157l1.145.724 1.406-1.942zM11.5 7.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0m1 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-7.85 8.3V4.3a.35.35 0 0 0-.35-.35H2v-1.3h2.3c.911 0 1.65.739 1.65 1.65v11.5a1.65 1.65 0 0 1-1.65 1.65H2v-1.3h2.3a.35.35 0 0 0 .35-.35m13.4 0V4.3c0-.911.739-1.65 1.65-1.65H22v1.3h-2.3a.35.35 0 0 0-.35.35v11.5c0 .193.157.35.35.35H22v1.3h-2.3a1.65 1.65 0 0 1-1.65-1.65M10 22.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M22.046 8.446a.5.5 0 0 1 .707 0l.897.897a1 1 0 0 1 0 1.414l-.896.896a.5.5 0 1 1-.708-.707l.897-.896-.897-.896a.5.5 0 0 1 0-.708m-20.808 0a.5.5 0 0 1 .707.708l-.809.807a.126.126 0 0 0 0 .178l.809.808a.5.5 0 0 1-.707.707l-.809-.808a1.126 1.126 0 0 1 0-1.592z",fill:"#ff5b2e",className:"eab-block-icon"}))},$t=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 236 158"},React.createElement("rect",{width:234.5,height:156.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("mask",{id:"a",fill:"#fff"},React.createElement("rect",{width:36.842,height:76.316,x:35.105,y:29.895,rx:1.526})),React.createElement("rect",{width:36.842,height:76.316,x:35.105,y:29.895,stroke:"#718491",strokeWidth:6.104,mask:"url(#a)",rx:1.526}),React.createElement("path",{fill:"#718491",d:"M41.974 87.834c-3.247 1.916-5.932-3.992-6.868-7.185v22.51a3.052 3.052 0 0 0 3.052 3.052h30.737a3.052 3.052 0 0 0 3.053-3.052V87.834c-7.676 2.127-6.652-12.029-14.05-17.564-7.226-5.406-11.865 15.169-15.924 17.564Z"}),React.createElement("ellipse",{cx:46.7,cy:57.735,fill:"#718491",rx:5.58,ry:5.529}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{fill:"#fff",d:"M78.526 22h78.947v92.105H78.526z"}),React.createElement("mask",{id:"d",fill:"#fff"},React.createElement("rect",{width:78.947,height:92.105,x:78.526,y:22,rx:1.569})),React.createElement("rect",{width:78.947,height:92.105,x:78.526,y:22,fill:"#fff",stroke:"#718491",strokeWidth:5.263,mask:"url(#d)",rx:1.569}),React.createElement("path",{fill:"#718491",d:"M93.245 96.592c-6.958 2.1-12.712-4.376-14.719-7.876v24.882a3.139 3.139 0 0 0 3.14 3.139h72.669a3.14 3.14 0 0 0 3.139-3.139V96.592c-15.388 6.126-20.741-7.876-30.107-19.254C118 65.961 101.943 93.967 93.245 96.592Z"}),React.createElement("circle",{cx:96.944,cy:51.486,r:8.159,fill:"#718491"})),React.createElement("rect",{width:62.526,height:36.211,x:86.737,y:69.684,fill:"#000",fillOpacity:.6,rx:2.632}),React.createElement("g",{clipPath:"url(#e)"},React.createElement("g",{fill:"#fff",opacity:.9},React.createElement("rect",{width:7.895,height:7.895,x:114.053,y:74.632,rx:1.282}),React.createElement("rect",{width:42.105,height:2.632,x:96.947,y:86.474,rx:1.316})),React.createElement("rect",{width:23.684,height:7.895,x:106.158,y:93.053,fill:"#fff",rx:1.316}),React.createElement("rect",{width:18.421,height:2.632,x:108.789,y:95.684,fill:"#718491",rx:1.316}))),React.createElement("mask",{id:"f",fill:"#fff"},React.createElement("rect",{width:36.842,height:76.316,x:164.053,y:29.895,rx:1.526})),React.createElement("rect",{width:36.842,height:76.316,x:164.053,y:29.895,stroke:"#718491",strokeWidth:6.104,mask:"url(#f)",rx:1.526}),React.createElement("path",{fill:"#718491",d:"M170.922 87.275c-3.247 1.837-5.933-3.827-6.869-6.889v21.457a3.052 3.052 0 0 0 3.052 3.052h30.738a3.053 3.053 0 0 0 3.052-3.052V87.275c-7.676 2.04-6.886-10.732-14.05-16.84-6.93-5.908-11.865 14.544-15.923 16.84Z"}),React.createElement("ellipse",{cx:176.226,cy:57.169,fill:"#718491",rx:5.523,ry:5.472}),React.createElement("path",{stroke:"#718491",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3.947,d:"M210.105 75.947 218 68.053l-7.895-7.895M25.895 60.158 18 68.053l7.895 7.894"}),React.createElement("rect",{width:10.526,height:10.526,x:96.947,y:124.632,fill:"#9EA9B2",rx:5.263}),React.createElement("rect",{width:10.526,height:10.526,x:112.737,y:124.632,fill:"#718491",rx:5.263}),React.createElement("rect",{width:10.526,height:10.526,x:128.526,y:124.632,fill:"#9EA9B2",rx:5.263}),React.createElement("defs",null,React.createElement("clipPath",{id:"b"},React.createElement("rect",{width:78.947,height:92.105,x:78.526,y:22,fill:"#fff",rx:2.632})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M78.526 22h78.947v92.105H78.526z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M93 74.632h50v26.316H93z"}))))},Gt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 236 158"},React.createElement("rect",{width:234.5,height:156.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("g",null,React.createElement("rect",{width:169.009,height:82.826,x:33.56,y:18.56,fill:"#fff",stroke:"#718491",strokeWidth:1.119,rx:1.679}),React.createElement("path",{fill:"#718491",d:"M200.89 17.965a2.239 2.239 0 0 1 2.239 2.238v11.194H33V20.203a2.239 2.239 0 0 1 2.238-2.238H200.89Z"}),React.createElement("path",{stroke:"#718491",d:"M200.89 17.965a2.239 2.239 0 0 1 2.239 2.238v11.194H33V20.203a2.239 2.239 0 0 1 2.238-2.238H200.89Z"}),React.createElement("rect",{width:110.807,height:2.239,x:38.597,y:23.561,fill:"#fff",rx:1.119}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.6,d:"m196.717 25.823-2.5-2.5-2.5 2.5"})),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:76.184,height:57.117,x:39.716,y:38.147,rx:1.298})),React.createElement("rect",{width:76.184,height:57.117,x:39.716,y:38.147,stroke:"#718491",strokeWidth:5.192,mask:"url(#c)",rx:1.298}),React.createElement("path",{fill:"#718491",d:"M53.92 80.359c-6.715 1.554-12.267-3.238-14.204-5.828v18.137a2.596 2.596 0 0 0 2.596 2.597h70.992a2.596 2.596 0 0 0 2.596-2.597v-12.31c-14.849 4.534-20.014-5.827-29.053-14.246-9.039-8.418-24.534 12.304-32.927 14.247Z"}),React.createElement("circle",{cx:54.95,cy:60.215,r:6.419,fill:"#718491"}),React.createElement("g",{fill:"#9EA9B2",opacity:.9},React.createElement("rect",{width:15.67,height:2.239,x:121.422,y:42.624,rx:1.091}),React.createElement("rect",{width:16.789,height:2.239,x:140.449,y:42.624,rx:1.091})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:74.991,height:2.239,x:121.422,y:50.459,rx:1.091}),React.createElement("rect",{width:72.752,height:2.239,x:121.422,y:56.055,rx:1.091}),React.createElement("rect",{width:72.752,height:2.239,x:121.422,y:61.651,rx:1.091}),React.createElement("rect",{width:72.752,height:2.239,x:121.422,y:67.248,rx:1.091}),React.createElement("rect",{width:49.248,height:2.239,x:121.422,y:72.844,rx:1.091})),React.createElement("rect",{width:24.064,height:8.395,x:121.702,y:82.078,fill:"#fff",stroke:"#9EA9B2",strokeWidth:.56,rx:.839}),React.createElement("rect",{width:15.67,height:2.239,x:125.898,y:85.156,fill:"#718491",opacity:.9,rx:1.119})),React.createElement("rect",{width:170.128,height:13.431,x:33,y:107.541,fill:"#718491",rx:2.239}),React.createElement("rect",{width:170.128,height:13.431,x:33,y:107.541,stroke:"#718491",rx:2.239}),React.createElement("rect",{width:110.807,height:2.239,x:38.597,y:113.138,fill:"#fff",rx:1.119}),React.createElement("g",{clipPath:"url(#d)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.6,d:"m191.717 112.899 2.5 2.5 2.5-2.5"})),React.createElement("rect",{width:170.128,height:13.431,x:33,y:126.569,fill:"#718491",rx:2.239}),React.createElement("rect",{width:170.128,height:13.431,x:33,y:126.569,stroke:"#718491",rx:2.239}),React.createElement("rect",{width:110.807,height:2.239,x:38.597,y:132.165,fill:"#fff",rx:1.119}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.6,d:"m196.717 131.927-2.5 2.5-2.5-2.5"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M33 18h170.128v83.945H33z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M190.816 21.323h6.716v6.716h-6.716z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M190.816 110.899h6.716v6.716h-6.716z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M190.816 129.927h6.716v6.716h-6.716z"}))))},Yt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M22.65 2a.35.35 0 0 0-.35-.35H1.7a.35.35 0 0 0-.35.35v12c0 .193.157.35.35.35h20.6a.35.35 0 0 0 .35-.35V2Zm1.3 12c0 .911-.74 1.65-1.65 1.65H1.7A1.65 1.65 0 0 1 .05 14V2C.05 1.089.789.35 1.7.35h20.6c.91 0 1.65.739 1.65 1.65v12Z"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M8.55 9.3a.15.15 0 0 0-.15-.15H4a.15.15 0 0 0-.15.15v2.4c0 .083.067.15.15.15h4.4a.15.15 0 0 0 .15-.15V9.3Zm1.3 2.4c0 .8-.65 1.45-1.45 1.45H4c-.8 0-1.45-.65-1.45-1.45V9.3c0-.8.65-1.45 1.45-1.45h4.4c.8 0 1.45.65 1.45 1.45v2.4ZM18.988 2.897a1 1 0 0 1 1.414-.008l.65.644a.5.5 0 0 1-.704.71l-.65-.643-.643.65a.5.5 0 0 1-.71-.704l.643-.65ZM12.2 2.85a.65.65 0 0 1 0 1.3h-9a.65.65 0 0 1 0-1.3h9ZM20.2 8.9a.6.6 0 1 1 0 1.2h-8.5a.6.6 0 1 1 0-1.2h8.5ZM18.7 11a.5.5 0 1 1 0 1h-7a.5.5 0 0 1 0-1h7ZM23.3 5.35a.65.65 0 0 1 0 1.3H.7a.65.65 0 0 1 0-1.3h22.6ZM22.65 19a.35.35 0 0 0-.35-.35H1.7a.35.35 0 0 0-.35.35v3c0 .193.157.35.35.35h20.6a.35.35 0 0 0 .35-.35v-3Zm1.3 3c0 .911-.74 1.65-1.65 1.65H1.7A1.65 1.65 0 0 1 .05 22v-3c0-.911.739-1.65 1.65-1.65h20.6c.91 0 1.65.739 1.65 1.65v3Z"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M18.343 19.75a.5.5 0 0 1 .707-.007l.663.65c.002.002.006.005.015.005.01 0 .015-.003.017-.005l.669-.644a.5.5 0 0 1 .693.721l-.67.644a1.026 1.026 0 0 1-1.425-.007l-.662-.65a.5.5 0 0 1-.007-.707ZM12.2 19.85a.65.65 0 0 1 0 1.3h-9a.65.65 0 0 1 0-1.3h9Z"}))},Xt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{enableBackground:"new 0 0 24 24"},xmlSpace:"preserve",fill:"currentColor"},React.createElement("g",null,React.createElement("path",{d:"M12,11.8c-2.6,0-4.8-2.1-4.8-4.8S9.4,2.2,12,2.2s4.8,2.1,4.8,4.8S14.6,11.8,12,11.8z M12,3.8c-1.8,0-3.2,1.5-3.2,3.2 s1.5,3.2,3.2,3.2s3.2-1.5,3.2-3.2S13.8,3.8,12,3.8z"})),React.createElement("g",null,React.createElement("path",{d:"M17,21.8H7c-1.5,0-2.8-1.2-2.8-2.8c0-3.2,2.6-5.8,5.8-5.8h4c3.2,0,5.8,2.6,5.8,5.8C19.8,20.5,18.5,21.8,17,21.8z M10,14.8 c-2.3,0-4.2,1.9-4.2,4.2c0,0.7,0.6,1.2,1.2,1.2h10c0.7,0,1.2-0.6,1.2-1.2c0-2.3-1.9-4.2-4.2-4.2H10z"})))},Jt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{enableBackground:"new 0 0 24 24"},xmlSpace:"preserve",fill:"currentColor"},React.createElement("g",null,React.createElement("path",{d:"M18,4.8c-0.4,0-0.8-0.3-0.8-0.8V2c0-0.4,0.3-0.8,0.8-0.8s0.8,0.3,0.8,0.8v2C18.8,4.4,18.4,4.8,18,4.8z M6,4.8 C5.6,4.8,5.2,4.4,5.2,4V2c0-0.4,0.3-0.8,0.8-0.8S6.8,1.6,6.8,2v2C6.8,4.4,6.4,4.8,6,4.8z"})),React.createElement("g",null,React.createElement("path",{d:"M12,18c-0.6,0-1-0.4-1-1s0.4-1,1-1h0c0.6,0,1,0.4,1,1S12.6,18,12,18z M8,18c-0.6,0-1-0.4-1-1s0.4-1,1-1h0c0.6,0,1,0.4,1,1 S8.6,18,8,18z M16,14c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h0c0.6,0,1,0.4,1,1C17,13.6,16.6,14,16,14z M12,14c-0.6,0-1-0.4-1-1 c0-0.6,0.4-1,1-1h0c0.6,0,1,0.4,1,1C13,13.6,12.6,14,12,14z M8,14c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h0c0.6,0,1,0.4,1,1 C9,13.6,8.6,14,8,14z"})),React.createElement("g",null,React.createElement("path",{d:"M20.5,8.8h-17C3.1,8.8,2.8,8.4,2.8,8s0.3-0.8,0.8-0.8h17c0.4,0,0.8,0.3,0.8,0.8S20.9,8.8,20.5,8.8z"})),React.createElement("g",null,React.createElement("path",{d:"M13,22.8H11c-4.2,0-6.4,0-7.8-1.6c-1.5-1.6-1.5-3.9-1.5-8.4v-0.5c0-4.5,0-6.8,1.5-8.4C4.7,2.2,6.8,2.2,11,2.2H13 c4.2,0,6.4,0,7.8,1.6c1.5,1.6,1.5,3.9,1.5,8.4v0.5c0,4.5,0,6.8-1.5,8.4C19.3,22.8,17.2,22.8,13,22.8z M11,3.8c-3.8,0-5.7,0-6.7,1.1 C3.2,6,3.2,8.1,3.2,12.2v0.5c0,4.2,0,6.2,1.1,7.4c1,1.1,2.9,1.1,6.7,1.1H13c3.8,0,5.7,0,6.7-1.1c1.1-1.1,1.1-3.2,1.1-7.4v-0.5 c0-4.2,0-6.2-1.1-7.4c-1-1.1-2.9-1.1-6.7-1.1H11z"})),React.createElement("g",null,React.createElement("path",{d:"M21,8.8H3C2.6,8.8,2.2,8.4,2.2,8S2.6,7.2,3,7.2h18c0.4,0,0.8,0.3,0.8,0.8S21.4,8.8,21,8.8z"})))},Qt=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"Layer_1",x:"0px",y:"0px",width:"14px",height:"14px",viewBox:"0 0 24 24",style:{enableBackground:"new 0 0 24 24"},xmlSpace:"preserve",fill:"currentColor"},React.createElement("g",null,React.createElement("path",{d:"M2,19.8c-0.4,0-0.8-0.3-0.8-0.8V7.5c0-1.5,0-2.3,0.3-3c0.4-0.9,1.1-1.6,2-2c0.7-0.3,1.5-0.3,3-0.3H7c0.8,0,1.6,0.4,2.1,1 l1.6,2H16c1.5,0,2.3,0,3,0.4c0.6,0.3,1.1,0.8,1.4,1.4c0.4,0.7,0.4,1.5,0.4,3v1c0,0.4-0.3,0.8-0.8,0.8s-0.8-0.3-0.8-0.8v-1 c0-1.2,0-1.9-0.2-2.3c-0.2-0.3-0.4-0.6-0.8-0.8c-0.4-0.2-1.1-0.2-2.3-0.2h-5.6c0,0,0,0,0,0H7C6.6,6.8,6.2,6.4,6.2,6S6.6,5.2,7,5.2 h1.9L8,4.2C7.8,3.9,7.4,3.8,7,3.8H6.5c-1.3,0-2,0-2.4,0.2c-0.5,0.2-1,0.6-1.2,1.2C2.8,5.5,2.8,6.2,2.8,7.5V19 C2.8,19.4,2.4,19.8,2,19.8z"})),React.createElement("g",null,React.createElement("path",{d:"M14.9,21.8H6.9c-2.9,0-4.4,0-5.3-1.2c-0.8-1.2-0.2-2.7,0.8-5.3l0.7,0.3l-0.7-0.3l0.3-0.7c0.8-1.9,1.2-3,2.1-3.6 c1-0.6,2.1-0.6,4.1-0.6h8.1c2.9,0,4.4,0,5.2,1.2c0.8,1.2,0.2,2.7-0.8,5.3l-0.3,0.7c-0.8,1.9-1.2,3-2.1,3.6 C18.1,21.8,17,21.8,14.9,21.8z M9.1,11.8c-1.8,0-2.7,0-3.3,0.4c-0.6,0.4-0.9,1.2-1.6,2.9l-0.3,0.7l0,0l0,0c-0.8,2.1-1.3,3.4-1,3.9 c0.4,0.6,1.7,0.6,4,0.6h8.1c1.8,0,2.7,0,3.3-0.4c0.6-0.4,0.9-1.2,1.6-2.9l0.3-0.7c0.8-2.1,1.3-3.4,1-3.9c-0.4-0.6-1.7-0.6-4-0.6 H9.1z"})))},en=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M22.35 3.8a.35.35 0 0 0-.35-.35H2a.35.35 0 0 0-.35.35v16.5c0 .193.157.35.35.35h20a.35.35 0 0 0 .35-.35V3.8Zm1.3 16.5c0 .911-.739 1.65-1.65 1.65H2A1.65 1.65 0 0 1 .35 20.3V3.8c0-.911.739-1.65 1.65-1.65h20c.911 0 1.65.739 1.65 1.65v16.5Z"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M6.5 4.8a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1h3ZM6.5 12.8a.5.5 0 1 1 0 1h-3a.5.5 0 0 1 0-1h3ZM6.5 15.3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1 0-1h3ZM6.5 17.8a.5.5 0 1 1 0 1h-3a.5.5 0 0 1 0-1h3Z"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",fillRule:"evenodd",d:"M1 7.3h9v4H1v-4Zm5 2a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 .5-.5Zm1.265-.886a.3.3 0 0 1 .42-.05l.57.45c.15.12.244.291.245.481a.616.616 0 0 1-.238.484l-.565.455a.3.3 0 0 1-.377-.468l.565-.454a.037.037 0 0 0 .008-.01c-.002-.003-.005-.013-.01-.016l-.569-.45a.3.3 0 0 1-.05-.422Z",clipRule:"evenodd"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M20.3 5.3a.5.5 0 0 1 0 1h-7.8a.5.5 0 0 1 0-1h7.8ZM20.3 7.3a.5.5 0 0 1 0 1h-7.8a.5.5 0 0 1 0-1h7.8ZM18.3 9.3a.5.5 0 0 1 0 1h-5.8a.5.5 0 0 1 0-1h5.8ZM20.3 12.3a.5.5 0 1 1 0 1h-7.8a.5.5 0 0 1 0-1h7.8ZM20.3 14.3a.5.5 0 1 1 0 1h-7.8a.5.5 0 0 1 0-1h7.8ZM18.3 16.3a.5.5 0 1 1 0 1h-5.8a.5.5 0 0 1 0-1h5.8ZM9.35 21.3V2.8a.65.65 0 0 1 1.3 0v18.5a.65.65 0 0 1-1.3 0Z"}))},tn=function(){return React.createElement("svg",{viewBox:"0 0 236 158",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:.75,y:.75,width:234.5,height:156.5,rx:3.25,stroke:"#9EA9B2",strokeWidth:1.5}),React.createElement("g",{clipPath:"url(#clip0_10226_36789)"},React.createElement("rect",{x:18,y:21.0001,width:200,height:116.216,rx:2.7027,fill:"white"}),React.createElement("mask",{id:"path-4-inside-1_10226_36789",fill:"white"},React.createElement("path",{d:"M19.3516 8.16226H100.433V150.054H19.3516V8.16226Z"})),React.createElement("path",{d:"M19.3516 8.16226H100.433V150.054H19.3516V8.16226Z",fill:"#F0F0F0"}),React.createElement("path",{d:"M100.433 8.16226H99.0813V150.054H100.433H101.784V8.16226H100.433Z",fill:"#718491",mask:"url(#path-4-inside-1_10226_36789)"}),React.createElement("rect",{x:19.3516,y:27.0811,width:81.0811,height:10.8108,rx:2.7027,stroke:"#718491"}),React.createElement("rect",{x:26.1084,y:31.1352,width:52.7027,height:2.7027,rx:1.35135,fill:"#718491"}),React.createElement("rect",{x:19.3516,y:44.6487,width:81.0811,height:16.2162,fill:"#718491"}),React.createElement("rect",{x:19.3516,y:44.6487,width:81.0811,height:16.2162,stroke:"#718491"}),React.createElement("rect",{x:26.1084,y:51.4055,width:48.6486,height:2.7027,rx:1.35135,fill:"white"}),React.createElement("g",{clipPath:"url(#clip1_10226_36789)"},React.createElement("path",{d:"M88.2006 50.227L90.834 52.8604L88.2006 55.4938",stroke:"white",strokeWidth:2.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement("rect",{x:19.3516,y:67.6217,width:81.0811,height:10.8108,rx:2.7027,stroke:"#718491"}),React.createElement("rect",{x:26.1084,y:71.6757,width:52.7027,height:2.7027,rx:1.35135,fill:"#718491"}),React.createElement("rect",{x:19.3516,y:85.1893,width:81.0811,height:10.8108,rx:2.7027,stroke:"#718491"}),React.createElement("rect",{x:26.1084,y:89.2433,width:48.6486,height:2.7027,rx:1.35135,fill:"#718491"}),React.createElement("rect",{x:19.3516,y:102.757,width:81.0811,height:10.8108,rx:2.7027,stroke:"#718491"}),React.createElement("rect",{x:26.1084,y:106.811,width:52.7027,height:2.7027,rx:1.35135,fill:"#718491"}),React.createElement("rect",{x:19.3516,y:120.324,width:81.0811,height:10.8108,rx:2.7027,stroke:"#718491"}),React.createElement("rect",{x:26.1084,y:124.378,width:41.8919,height:2.7027,rx:1.35135,fill:"#718491"}),React.createElement("g",{opacity:.9},React.createElement("rect",{x:111.243,y:103.433,width:79.7297,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:110.189,width:95.9459,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:116.946,width:59.4595,height:2.7027,rx:1.3167,fill:"#718491"})),React.createElement("g",{opacity:.9},React.createElement("rect",{x:111.243,y:71.0001,width:95.9459,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:77.7569,width:79.7297,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:84.5137,width:95.9459,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:91.2704,width:59.4595,height:2.7027,rx:1.3167,fill:"#718491"})),React.createElement("g",{opacity:.9},React.createElement("rect",{x:111.243,y:38.5677,width:95.9459,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:45.3244,width:95.9459,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:52.0812,width:79.7297,height:2.7027,rx:1.3167,fill:"#718491"}),React.createElement("rect",{x:111.243,y:58.838,width:59.4595,height:2.7027,rx:1.3167,fill:"#718491"}))),React.createElement("rect",{x:18.6757,y:21.6757,width:198.649,height:114.865,rx:2.02703,stroke:"#718491",strokeWidth:1.35135}),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_10226_36789"},React.createElement("rect",{x:18,y:21.0001,width:200,height:116.216,rx:2.7027,fill:"white"})),React.createElement("clipPath",{id:"clip1_10226_36789"},React.createElement("rect",{width:8.10811,height:8.10811,fill:"white",transform:"translate(85.5679 48.7028)"}))))},nn=function(){return React.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#ToolbarPlusIcon_a)"},React.createElement("path",{d:"M16 7c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9m0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7m1-11h-2v3h-3v2h3v3h2v-3h3v-2h-3zm-1-5c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9m0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7m1-11h-2v3h-3v2h3v3h2v-3h3v-2h-3z",fill:"#1e1e1e"})),React.createElement("defs",null,React.createElement("clipPath",{id:"ToolbarPlusIcon_a"},React.createElement("rect",{width:32,height:32,rx:2,fill:"#fff"}))))},rn=function(){return React.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#ToolbarBlockDuplicateIcon)"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5V9a.5.5 0 0 1 .5-.5M7 9a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H10v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V12z",fill:"#1e1e1e"})),React.createElement("defs",null,React.createElement("clipPath",{id:"ToolbarBlockDuplicateIcon"},React.createElement("rect",{width:32,height:32,rx:2,fill:"#fff"}))))},on=function(){return React.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#RemoveIcon)"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 9.5a2.25 2.25 0 0 0-2.122 1.5h4.244A2.25 2.25 0 0 0 16 9.5M16 8a3.75 3.75 0 0 0-3.675 3H9v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5l.818-8.998H23V11h-3.325A3.75 3.75 0 0 0 16 8m4.224 4.5h-8.448l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137z",fill:"#1e1e1e"})),React.createElement("defs",null,React.createElement("clipPath",{id:"RemoveIcon"},React.createElement("rect",{width:32,height:32,rx:2,fill:"#fff"}))))},an=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 236 158"},React.createElement("rect",{width:234.5,height:156.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("g",{clipPath:"url(#a)"},React.createElement("rect",{width:169.009,height:82.826,x:33.56,y:18.56,fill:"#fff",stroke:"#718491",strokeWidth:1.119,rx:1.679}),React.createElement("path",{fill:"#718491",d:"M200.89 17.965a2.239 2.239 0 0 1 2.239 2.238v11.194H33.001V20.203a2.238 2.238 0 0 1 2.238-2.238H200.89Z"}),React.createElement("path",{stroke:"#718491",d:"M200.89 17.965a2.239 2.239 0 0 1 2.239 2.238v11.194H33.001V20.203a2.238 2.238 0 0 1 2.238-2.238H200.89Z"}),React.createElement("rect",{width:110.807,height:2.239,x:38.597,y:23.561,fill:"#fff",rx:1.119}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"m196.517 25.723-2.4-2.4-2.4 2.4"})),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:76.184,height:57.117,x:39.716,y:38,rx:1.298})),React.createElement("rect",{width:76.184,height:57.117,x:39.716,y:38,stroke:"#718491",strokeWidth:5.192,mask:"url(#c)",rx:1.298}),React.createElement("path",{fill:"#718491",d:"M53.92 80.212c-6.715 1.554-12.267-3.238-14.204-5.828v18.138a2.596 2.596 0 0 0 2.596 2.596h70.992a2.596 2.596 0 0 0 2.596-2.596v-12.31c-14.849 4.533-20.014-5.828-29.053-14.246-9.039-8.419-24.534 12.303-32.927 14.246Z"}),React.createElement("circle",{cx:54.95,cy:60.068,r:6.419,fill:"#718491"}),React.createElement("path",{fill:"#718491",d:"m124.5 42 1.029 2.084 2.3.334-1.665 1.623.393 2.29-2.057-1.081-2.057 1.082.393-2.291-1.665-1.623 2.3-.334L124.5 42ZM132.5 42l1.029 2.084 2.3.334-1.665 1.623.393 2.29-2.057-1.081-2.057 1.082.393-2.291-1.665-1.623 2.3-.334L132.5 42ZM140.5 42l1.029 2.084 2.3.334-1.665 1.623.393 2.29-2.057-1.081-2.057 1.082.393-2.291-1.665-1.623 2.3-.334L140.5 42ZM148.5 42l1.029 2.084 2.3.334-1.665 1.623.393 2.29-2.057-1.081-2.057 1.082.393-2.291-1.665-1.623 2.3-.334L148.5 42ZM156.5 42l1.029 2.084 2.3.334-1.665 1.623.393 2.29-2.057-1.081-2.057 1.082.393-2.291-1.665-1.623 2.3-.334L156.5 42ZM146.875 57.882v.874c0 .38-.041.706-.122.981a1.78 1.78 0 0 1-.35.673c-.15.174-.33.302-.538.385a1.849 1.849 0 0 1-.693.125c-.204 0-.393-.025-.569-.076a1.43 1.43 0 0 1-.836-.666 2.159 2.159 0 0 1-.229-.61 3.72 3.72 0 0 1-.08-.812v-.874c0-.38.041-.704.122-.974.083-.273.2-.496.35-.67.153-.173.333-.3.541-.381a1.85 1.85 0 0 1 .694-.125c.203 0 .392.026.565.08.176.05.334.13.475.239.141.108.261.248.361.42.099.168.176.37.229.606.053.234.08.502.08.805Zm-1.003 1.006v-1.141c0-.183-.01-.342-.031-.479a1.353 1.353 0 0 0-.087-.347.724.724 0 0 0-.145-.236.533.533 0 0 0-.198-.131.695.695 0 0 0-.246-.042.669.669 0 0 0-.302.066.563.563 0 0 0-.218.212 1.111 1.111 0 0 0-.139.381 3.13 3.13 0 0 0-.045.576v1.14c0 .183.009.344.028.483.02.139.05.258.09.357.041.097.09.177.145.24.058.06.124.103.198.131a.728.728 0 0 0 .545-.024.583.583 0 0 0 .221-.215c.063-.1.109-.229.139-.389.03-.16.045-.353.045-.582ZM142.793 57.882v.874c0 .38-.041.706-.122.981a1.78 1.78 0 0 1-.35.673c-.15.174-.329.302-.537.385-.209.084-.44.125-.694.125-.204 0-.393-.025-.569-.076a1.43 1.43 0 0 1-.836-.666 2.19 2.19 0 0 1-.229-.61 3.724 3.724 0 0 1-.079-.812v-.874c0-.38.04-.704.121-.974.083-.273.2-.496.35-.67.153-.173.333-.3.541-.381.208-.084.44-.125.694-.125.203 0 .392.026.565.08.176.05.334.13.475.239.141.108.262.248.361.42.1.168.176.37.229.606.053.234.08.502.08.805Zm-1.002 1.006v-1.141c0-.183-.011-.342-.032-.479a1.398 1.398 0 0 0-.086-.347.743.743 0 0 0-.146-.236.533.533 0 0 0-.198-.131.695.695 0 0 0-.246-.042.669.669 0 0 0-.302.066.563.563 0 0 0-.218.212c-.06.094-.107.221-.139.381a3.13 3.13 0 0 0-.045.576v1.14c0 .183.009.344.028.483.021.139.051.258.09.357.042.097.09.177.146.24.057.06.123.103.197.131a.732.732 0 0 0 .545-.024.579.579 0 0 0 .222-.215c.062-.1.108-.229.138-.389.03-.16.046-.353.046-.582ZM137.429 60.369c0-.148.051-.272.153-.371a.57.57 0 0 1 .412-.15c.171 0 .308.05.409.15a.49.49 0 0 1 .157.371.49.49 0 0 1-.157.371.559.559 0 0 1-.409.15.57.57 0 0 1-.412-.15.497.497 0 0 1-.153-.371ZM136.665 57.882v.874c0 .38-.04.706-.121.981a1.794 1.794 0 0 1-.35.673 1.39 1.39 0 0 1-.538.385 1.849 1.849 0 0 1-.693.125c-.204 0-.394-.025-.569-.076a1.43 1.43 0 0 1-.836-.666 2.159 2.159 0 0 1-.229-.61 3.72 3.72 0 0 1-.08-.812v-.874c0-.38.041-.704.122-.974.083-.273.2-.496.35-.67.153-.173.333-.3.541-.381a1.85 1.85 0 0 1 .694-.125c.203 0 .391.026.565.08.176.05.334.13.475.239.141.108.261.248.361.42.099.168.175.37.229.606.053.234.079.502.079.805Zm-1.002 1.006v-1.141c0-.183-.01-.342-.031-.479a1.441 1.441 0 0 0-.087-.347.725.725 0 0 0-.146-.236.521.521 0 0 0-.197-.131.695.695 0 0 0-.246-.042.666.666 0 0 0-.302.066.559.559 0 0 0-.219.212c-.06.094-.106.221-.138.381a3.13 3.13 0 0 0-.045.576v1.14c0 .183.009.344.027.483.021.139.051.258.09.357a.902.902 0 0 0 .146.24c.058.06.124.103.198.131a.724.724 0 0 0 .544-.024.579.579 0 0 0 .222-.215c.063-.1.109-.229.139-.389.03-.16.045-.353.045-.582ZM132.584 57.882v.874c0 .38-.04.706-.121.981a1.78 1.78 0 0 1-.351.673c-.15.174-.329.302-.537.385a1.85 1.85 0 0 1-.694.125c-.203 0-.393-.025-.569-.076a1.44 1.44 0 0 1-.475-.246 1.562 1.562 0 0 1-.36-.42 2.13 2.13 0 0 1-.229-.61 3.72 3.72 0 0 1-.08-.812v-.874c0-.38.04-.704.121-.974.084-.273.2-.496.351-.67.152-.173.333-.3.541-.381.208-.084.439-.125.693-.125.204 0 .392.026.566.08.175.05.334.13.475.239.141.108.261.248.36.42.1.168.176.37.229.606.053.234.08.502.08.805Zm-1.002 1.006v-1.141c0-.183-.011-.342-.031-.479a1.441 1.441 0 0 0-.087-.347.725.725 0 0 0-.146-.236.537.537 0 0 0-.197-.131.7.7 0 0 0-.247-.042.661.661 0 0 0-.301.066.559.559 0 0 0-.219.212c-.06.094-.106.221-.139.381a3.13 3.13 0 0 0-.045.576v1.14c0 .183.009.344.028.483.021.139.051.258.09.357.042.097.09.177.146.24.058.06.124.103.198.131a.722.722 0 0 0 .544-.024.579.579 0 0 0 .222-.215c.062-.1.109-.229.139-.389.03-.16.045-.353.045-.582ZM127.538 55.791v5.06h-.999v-3.909l-1.2.382v-.787l2.091-.746h.108ZM123.112 55v1.023h-.541V55h.541Zm-.066 5.663v.933h-.541v-.933h.541Zm.382-1.137a.722.722 0 0 0-.073-.337.658.658 0 0 0-.229-.246 2.004 2.004 0 0 0-.423-.208 5.946 5.946 0 0 1-.794-.367 1.548 1.548 0 0 1-.531-.49c-.127-.196-.191-.444-.191-.745 0-.287.068-.535.205-.746.136-.21.325-.372.565-.485.243-.116.525-.174.846-.174.245 0 .467.037.666.111a1.378 1.378 0 0 1 .843.829c.076.201.114.431.114.69h-.995c0-.138-.015-.261-.045-.367a.737.737 0 0 0-.132-.267.509.509 0 0 0-.201-.16.6.6 0 0 0-.26-.055.653.653 0 0 0-.347.083.487.487 0 0 0-.197.225.797.797 0 0 0-.059.32c0 .117.02.22.062.308a.672.672 0 0 0 .225.243c.107.072.252.145.437.222.301.115.565.24.791.374.227.134.404.299.531.493s.19.441.19.742c0 .298-.069.553-.208.763a1.327 1.327 0 0 1-.582.479c-.25.108-.539.162-.867.162-.213 0-.425-.027-.635-.083a1.71 1.71 0 0 1-.572-.277 1.341 1.341 0 0 1-.409-.507c-.102-.212-.153-.473-.153-.783h.999c0 .168.022.31.066.423a.72.72 0 0 0 .173.267c.074.065.157.11.25.139a.971.971 0 0 0 .281.041.738.738 0 0 0 .364-.08.52.52 0 0 0 .218-.218.663.663 0 0 0 .077-.32Z"}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:75.413,height:2.239,x:121,y:67.596,rx:1.091}),React.createElement("rect",{width:49.248,height:2.239,x:121,y:73.193,rx:1.091})),React.createElement("path",{fill:"#D8DADB",d:"M121 81.431h25.743v8.954H121z"}),React.createElement("path",{fill:"#718491",d:"M125.717 84.079c.151 0 .275.124.275.275v1.279h1.276c.152 0 .276.123.276.275a.277.277 0 0 1-.276.275h-1.276v1.279a.276.276 0 0 1-.275.275.276.276 0 0 1-.276-.275v-1.279h-1.28a.277.277 0 0 1-.276-.275c0-.152.124-.275.276-.275h1.28v-1.279c0-.151.124-.275.276-.275Z"}),React.createElement("rect",{width:7.702,height:2.201,x:130.295,y:84.808,fill:"#718491",rx:1.1}),React.createElement("path",{stroke:"#718491",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.55,d:"M140.747 85.908h3.108"}),React.createElement("path",{fill:"#718491",d:"M151.22 81.431h34.771v8.954H151.22z"}),React.createElement("rect",{width:26.862,height:2.239,x:155.174,y:84.789,fill:"#fff",rx:1.119})),React.createElement("rect",{width:170.128,height:13.431,x:33.001,y:107.541,fill:"#718491",rx:2.239}),React.createElement("rect",{width:170.128,height:13.431,x:33.001,y:107.541,stroke:"#718491",rx:2.239}),React.createElement("rect",{width:110.807,height:2.239,x:38.597,y:113.138,fill:"#fff",rx:1.119}),React.createElement("g",{clipPath:"url(#d)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"m191.717 112.899 2.4 2.4 2.4-2.4"})),React.createElement("rect",{width:170.128,height:13.431,x:33.001,y:126.569,fill:"#718491",rx:2.239}),React.createElement("rect",{width:170.128,height:13.431,x:33.001,y:126.569,stroke:"#718491",rx:2.239}),React.createElement("rect",{width:110.807,height:2.239,x:38.597,y:132.165,fill:"#fff",rx:1.119}),React.createElement("g",{clipPath:"url(#e)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"m196.517 131.927-2.4 2.4-2.4-2.4"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M33 18h170.128v83.945H33z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M190.817 21.323h6.716v6.716h-6.716z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M190.817 110.899h6.716v6.716h-6.716z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M190.817 129.927h6.716v6.716h-6.716z"}))))},ln=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M22.65 1.7a.35.35 0 0 0-.35-.35H1.7a.35.35 0 0 0-.35.35v13c0 .193.157.35.35.35h20.6a.35.35 0 0 0 .35-.35v-13Zm1.3 13c0 .911-.74 1.65-1.65 1.65H1.7A1.65 1.65 0 0 1 .05 14.7v-13C.05.789.789.05 1.7.05h20.6c.91 0 1.65.739 1.65 1.65v13Z"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M9.35 9A.35.35 0 0 0 9 8.65H4a.35.35 0 0 0-.35.35v3.5c0 .193.157.35.35.35h5a.35.35 0 0 0 .35-.35V9Zm1.3 3.5c0 .911-.739 1.65-1.65 1.65H4a1.65 1.65 0 0 1-1.65-1.65V9c0-.911.739-1.65 1.65-1.65h5c.911 0 1.65.739 1.65 1.65v3.5Z"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M5.8 9.3a.5.5 0 0 1 0 1h-1a.5.5 0 0 1 0-1h1ZM18.988 2.597a1 1 0 0 1 1.414-.008l.65.644a.5.5 0 0 1-.704.71l-.65-.643-.643.65a.5.5 0 0 1-.71-.704l.643-.65ZM12.2 2.55a.65.65 0 0 1 0 1.3h-9a.65.65 0 0 1 0-1.3h9ZM23.3 5.05a.65.65 0 0 1 0 1.3H.7a.65.65 0 0 1 0-1.3h22.6ZM20.8 12.2a.5.5 0 1 1 0 1h-8.3a.5.5 0 0 1 0-1h8.3ZM13.485 8l.459.889 1.026.142-.743.692.176.977-.918-.461-.918.461.175-.977L12 9.031l1.026-.142.459-.889ZM16.755 8l.459.889 1.026.142-.742.692.175.977-.918-.461-.918.461.175-.977-.742-.692 1.026-.142.459-.889ZM20.025 8l.459.889 1.026.142-.743.692.176.977-.918-.461-.918.461.175-.977-.742-.692 1.026-.142.459-.889ZM22.65 19.3a.35.35 0 0 0-.35-.35H1.7a.35.35 0 0 0-.35.35v3c0 .193.157.35.35.35h20.6a.35.35 0 0 0 .35-.35v-3Zm1.3 3c0 .911-.74 1.65-1.65 1.65H1.7A1.65 1.65 0 0 1 .05 22.3v-3c0-.911.739-1.65 1.65-1.65h20.6c.91 0 1.65.739 1.65 1.65v3Z"}),React.createElement("path",{fill:"#FF5B2E",className:"eab-block-icon",d:"M18.343 20.05a.5.5 0 0 1 .707-.007l.663.65c.002.002.006.005.015.005.01 0 .015-.003.017-.005l.669-.644a.5.5 0 0 1 .693.721l-.67.644a1.026 1.026 0 0 1-1.425-.007l-.662-.65a.5.5 0 0 1-.007-.707ZM12.2 20.15a.65.65 0 0 1 0 1.3h-9a.65.65 0 0 1 0-1.3h9Z"}))},sn=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},React.createElement("rect",{x:.799805,y:4.5,width:10.1,height:8.15,rx:.6,stroke:"#FF5B2E",strokeWidth:1.3,fill:"none"}),React.createElement("path",{d:"M8.25 6.63919L8.5716 6.31435C8.66874 6.21623 8.82703 6.21543 8.92515 6.31257L9.24999 6.63417",stroke:"#FF5B2E",strokeWidth:.5,strokeLinecap:"round"}),React.createElement("path",{d:"M2.6499 6.44043H6.7499",stroke:"#FF5B2E",strokeWidth:.8,strokeLinecap:"round"}),React.createElement("path",{d:"M2.5498 9.63965H8.84981",stroke:"#FF5B2E",strokeWidth:.6,strokeLinecap:"round"}),React.createElement("path",{d:"M2.5498 10.7461H7.5498",stroke:"#FF5B2E",strokeWidth:.5,strokeLinecap:"round"}),React.createElement("path",{d:"M0.799805 8H10.8998",stroke:"#FF5B2E",strokeWidth:.8,strokeLinecap:"round"}),React.createElement("rect",{x:.799805,y:15.7246,width:10.1,height:3.85,rx:.6,stroke:"#FF5B2E",strokeWidth:1.3,fill:"none"}),React.createElement("path",{d:"M8.25 17.5395L8.5716 17.8644C8.66874 17.9625 8.82703 17.9633 8.92515 17.8661L9.24999 17.5445",stroke:"#FF5B2E",strokeWidth:.5,strokeLinecap:"round"}),React.createElement("path",{d:"M2.6499 17.7393H6.7499",stroke:"#FF5B2E",strokeWidth:.8,strokeLinecap:"round"}),React.createElement("path",{d:"M13.7407 5.3C13.7407 4.85817 14.0989 4.5 14.5407 4.5H22.3999C22.8417 4.5 23.1999 4.85817 23.1999 5.3V18.7365C23.1999 19.1783 22.8417 19.5365 22.3999 19.5365H14.5407C14.0989 19.5365 13.7407 19.1783 13.7407 18.7365V5.3Z",stroke:"#FF5B2E",strokeWidth:1.3,fill:"none"}),React.createElement("path",{d:"M13.7397 18.4798L15.6513 15.8236C15.7163 15.7332 15.8403 15.7088 15.9347 15.7679L17.3106 16.6282C17.3954 16.6812 17.5058 16.6675 17.5751 16.5954L19.9833 14.0855C20.0747 13.9902 20.2301 14.0012 20.3073 14.1083L23.1997 18.1277",stroke:"#FF5B2E",fill:"none"}),React.createElement("circle",{cx:16.5919,cy:12.8463,r:.802113,stroke:"#FF5B2E",strokeWidth:.9}))},cn=function(){return React.createElement("svg",{viewBox:"0 0 236 158",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:.75,y:.75,width:234.5,height:156.5,rx:3.25,stroke:"#9EA9B2",strokeWidth:1.5}),React.createElement("rect",{x:18.6579,y:23.111,width:90.7895,height:52.6316,rx:1.97368,fill:"white",stroke:"#8796A1",strokeWidth:1.31579}),React.createElement("path",{d:"M107.474 22.4531C108.927 22.4531 110.105 23.6316 110.105 25.085V38.2422H18V25.085C18 23.6316 19.1785 22.4531 20.6318 22.4531H107.474Z",fill:"#718491"}),React.createElement("path",{d:"M107.474 22.4531C108.927 22.4531 110.105 23.6316 110.105 25.085V38.2422H18V25.085C18 23.6316 19.1785 22.4531 20.6318 22.4531H107.474Z",stroke:"#718491"}),React.createElement("rect",{x:24.5791,y:29.0322,width:50,height:2.63158,rx:1.31579,fill:"white"}),React.createElement("path",{d:"M102.042 31.5289L99.4782 28.9648L96.9141 31.5289",stroke:"white",strokeWidth:1.28205,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("g",{opacity:.9},React.createElement("rect",{x:21.6357,y:46.1377,width:84.8338,height:2.63158,rx:1.28205,fill:"#718491"}),React.createElement("rect",{x:21.6357,y:52.7168,width:72.3684,height:2.63158,rx:1.28205,fill:"#718491"}),React.createElement("rect",{x:21.6357,y:59.2959,width:84.8338,height:2.63158,rx:1.28205,fill:"#718491"}),React.createElement("rect",{x:21.6357,y:65.875,width:57.8947,height:2.63158,rx:1.28205,fill:"#718491"})),React.createElement("rect",{x:18,y:80.3477,width:92.1053,height:15.7895,rx:2.63158,fill:"#718491"}),React.createElement("rect",{x:18,y:80.3477,width:92.1053,height:15.7895,rx:2.63158,stroke:"#718491"}),React.createElement("rect",{x:24.5791,y:86.9268,width:50,height:2.63158,rx:1.31579,fill:"white"}),React.createElement("path",{d:"M102.042 89.4235L99.4782 86.8594L96.9141 89.4235",stroke:"white",strokeWidth:1.28205,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("rect",{x:18,y:100.085,width:92.1053,height:15.7895,rx:2.63158,fill:"#718491"}),React.createElement("rect",{x:18,y:100.085,width:92.1053,height:15.7895,rx:2.63158,stroke:"#718491"}),React.createElement("rect",{x:24.5791,y:106.664,width:50,height:2.63158,rx:1.31579,fill:"white"}),React.createElement("path",{d:"M102.042 109.161L99.4782 106.597L96.9141 109.161",stroke:"white",strokeWidth:1.28205,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("rect",{x:18,y:119.821,width:92.1053,height:15.7895,rx:2.63158,fill:"#718491"}),React.createElement("rect",{x:18,y:119.821,width:92.1053,height:15.7895,rx:2.63158,stroke:"#718491"}),React.createElement("rect",{x:24.5791,y:126.4,width:50,height:2.63158,rx:1.31579,fill:"white"}),React.createElement("path",{d:"M102.042 128.897L99.4782 126.333L96.9141 128.897",stroke:"white",strokeWidth:1.28205,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("mask",{id:"path-19-inside-1_12779_15534",fill:"white"},React.createElement("rect",{x:118,y:22.4531,width:100,height:113.158,rx:2.63158})),React.createElement("rect",{x:118,y:22.4531,width:100,height:113.158,rx:2.63158,fill:"#F0F0F0",stroke:"#718491",strokeWidth:10.5263,mask:"url(#path-19-inside-1_12779_15534)"}),React.createElement("path",{d:"M142.337 63.1055C146.412 63.1057 149.717 66.407 149.717 70.4746C149.717 74.5456 146.408 77.8543 142.337 77.8545C138.269 77.8545 134.968 74.5496 134.968 70.4746C134.968 66.4033 138.266 63.1055 142.337 63.1055Z",fill:"#718491",stroke:"#718491",strokeWidth:4.98796}),React.createElement("path",{d:"M175.631 88.1055C177.672 88.1056 179.882 89.0944 182.497 91.125C185.107 93.1518 187.791 95.9477 190.819 99.1113C197.206 105.783 205.034 114.071 215.506 116.615V129.17H121.81V108.099C122.743 108.954 123.588 109.906 124.475 110.914C126.909 113.685 129.787 117.073 135.594 117.073C137.237 117.073 138.836 116.502 140.295 115.729C141.771 114.948 143.273 113.867 144.767 112.641C147.741 110.196 150.968 106.924 154.191 103.658C158.065 99.7335 161.971 95.782 165.773 92.7988C169.659 89.7506 172.962 88.1055 175.631 88.1055Z",fill:"#718491",stroke:"#718491",strokeWidth:4.98796}))},un=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M20.85 2a.35.35 0 0 0-.35-.35h-17a.35.35 0 0 0-.35.35v20c0 .193.157.35.35.35h17a.35.35 0 0 0 .35-.35zm1.3 20a1.65 1.65 0 0 1-1.65 1.65h-17A1.65 1.65 0 0 1 1.85 22V2c0-.911.739-1.65 1.65-1.65h17c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e"}),React.createElement("path",{d:"M11.5 6.3a.5.5 0 0 1 0 1h-6a.5.5 0 0 1 0-1zm0 2.8a.5.5 0 0 1 0 1h-6a.5.5 0 0 1 0-1zm1.5 2.8a.5.5 0 1 1 0 1H5.5a.5.5 0 0 1 0-1zm-1.5-8.4a.5.5 0 0 1 0 1h-6a.5.5 0 0 1 0-1zm5.647 5.988h-1.4q.005-.534.087-.914.088-.381.287-.686.2-.31.54-.633.268-.252.48-.474a2 2 0 0 0 .34-.475q.122-.252.122-.568 0-.357-.117-.598a.78.78 0 0 0-.334-.363 1.05 1.05 0 0 0-.545-.129q-.27 0-.51.111a.9.9 0 0 0-.386.346q-.147.229-.158.598H14q.018-.768.363-1.278.345-.516.932-.767.586-.258 1.312-.258.804 0 1.372.27a1.9 1.9 0 0 1 .873.773q.304.51.304 1.23 0 .516-.199.926-.2.405-.527.756-.329.35-.71.71-.333.297-.45.638a2.5 2.5 0 0 0-.123.785M15.6 11.31q0-.351.234-.586.24-.234.645-.234.404 0 .638.234.24.235.24.586 0 .34-.24.574-.234.235-.639.235-.404 0-.644-.235a.78.78 0 0 1-.234-.574M18 16a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5zm1 3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 13 19v-3a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 19 16z",fill:"#ff5b2e"}),React.createElement("path",{d:"M16.795 16.441a.4.4 0 0 1 .61.518l-1.31 1.549a.54.54 0 0 1-.788.04l-.683-.655a.4.4 0 0 1 .552-.578l.485.465z",fill:"#ff5b2e"}))},dn=function(){return React.createElement("svg",{viewBox:"0 0 236 158",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:.75,y:.75,width:234.5,height:156.5,rx:3.25,stroke:"#9ea9b2",strokeWidth:1.5}),React.createElement("rect",{x:63.61,y:18.61,width:108.58,height:120.78,rx:1.87,stroke:"#9ea9b2",strokeWidth:1.22}),React.createElement("rect",{x:81.3,y:26.54,width:73.2,height:4.88,rx:2.44,fill:"#718491"}),React.createElement("rect",{x:71.54,y:36.3,width:92.72,height:2.44,rx:1.22,fill:"#718491"}),React.createElement("rect",{x:71.54,y:46.06,width:36.6,height:3.66,rx:1.83,fill:"#718491"}),React.createElement("rect",{x:72.15,y:53.99,width:91.5,height:13.42,rx:1.83,stroke:"#718491",strokeWidth:1.22}),React.createElement("rect",{x:71.54,y:72.9,width:36.6,height:3.66,rx:1.83,fill:"#718491"}),React.createElement("rect",{x:72.15,y:80.83,width:91.5,height:28.06,rx:1.83,stroke:"#718491",strokeWidth:1.22}),React.createElement("mask",{id:"FaqFormBlockPreview",fill:"#fff"},React.createElement("path",{d:"m156.72 108.662 6.702-6.702.838.838-6.702 6.702z"})),React.createElement("path",{d:"m156.72 108.662-.863-.862-.863.862.863.863zm6.702-6.702.863-.863-.863-.862-.863.862zm.838.838.862.862.863-.862-.863-.863zm-6.702 6.702-.863.863.863.862.862-.862zm-.838-.838.862.863 6.703-6.702-.863-.863-.863-.863-6.702 6.703zm6.702-6.702-.863.863.838.837.863-.862.862-.863-.837-.838zm.838.838-.863-.863-6.702 6.702.863.863.862.863 6.702-6.703zm-6.702 6.702.862-.863-.838-.837-.862.862-.863.863.838.838z",fill:"#718491",mask:"url(#FaqFormBlockPreview)"}),React.createElement("rect",{x:71.54,y:116.82,width:92.72,height:14.64,rx:2.44,fill:"#718491"}),React.createElement("rect",{x:93.5,y:122.92,width:48.8,height:2.44,rx:1.22,fill:"#fff"}))},hn=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:.7,y:15.3,width:22.6,height:8,rx:1,stroke:"#ff5b2e",strokeWidth:1.3}),React.createElement("path",{d:"M3.2 17.8h5",stroke:"#ff5b2e",strokeWidth:.8,strokeLinecap:"round"}),React.createElement("path",{d:"M3.2 19.3h14",stroke:"#ff5b2e",strokeLinecap:"round"}),React.createElement("path",{d:"M3.2 21h4M9 21h4",stroke:"#ff5b2e",strokeWidth:.8,strokeLinecap:"round"}),React.createElement("rect",{x:.7,y:.7,width:22.6,height:12,rx:1,stroke:"#ff5b2e",strokeWidth:1.3}),React.createElement("path",{d:"m1 10 4.3-2.793a.3.3 0 0 1 .372.036l2.15 2.085a.3.3 0 0 0 .38.031l7.554-5.24a.3.3 0 0 1 .344.002L23 9",stroke:"#ff5b2e",strokeWidth:1.3}),React.createElement("circle",{cx:8.5,cy:4,r:1,stroke:"#ff5b2e"}))},fn=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M14.35 2a.35.35 0 0 0-.35-.35H2a.35.35 0 0 0-.35.35v20c0 .193.157.35.35.35h12a.35.35 0 0 0 .35-.35zm1.3 20A1.65 1.65 0 0 1 14 23.65H2A1.65 1.65 0 0 1 .35 22V2C.35 1.089 1.089.35 2 .35h12c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e"}),React.createElement("path",{d:"M10.16 14.8a.5.5 0 0 1 0 1h-4.3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-8.3a.5.5 0 0 1 0-1zM4.745 8.6l.459.889 1.026.142-.743.692.176.977-.918-.461-.918.461.176-.977-.743-.692 1.026-.142zm3.27 0 .459.889L9.5 9.63l-.743.692.176.977-.918-.461-.918.461.175-.977-.742-.692 1.026-.142zm3.27 0 .459.889 1.026.142-.742.692.175.977-.918-.461-.918.461.175-.977-.742-.692 1.026-.142zM22.35 2a.35.35 0 0 0-.35-.35h-3a.35.35 0 0 0-.35.35v20c0 .193.157.35.35.35h3a.35.35 0 0 0 .35-.35zm1.3 20A1.65 1.65 0 0 1 22 23.65h-3A1.65 1.65 0 0 1 17.35 22V2c0-.911.739-1.65 1.65-1.65h3c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e"}))},pn=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:1,y:1,width:22,height:22,rx:1,stroke:"#FF5B2E",strokeWidth:1.3}),React.createElement("path",{d:"M3.5 3.5H9.5",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}),React.createElement("path",{d:"M19.5 3.5H20.5",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}),React.createElement("path",{d:"M3.5 17.4H9.5",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}),React.createElement("path",{d:"M19.5 17.4H20.5",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}),React.createElement("rect",{x:1,y:6,width:22,height:8.8,stroke:"#FF5B2E",strokeWidth:1.3}),React.createElement("path",{d:"M6.5 12.2H13.5",stroke:"#FF5B2E",strokeLinecap:"round"}),React.createElement("path",{d:"M19.5 12.2H20.5",stroke:"#FF5B2E",strokeLinecap:"round"}),React.createElement("path",{d:"M18.7 9.29791L19.3432 8.64823C19.5375 8.45199 19.8541 8.45041 20.0503 8.64469L20.7 9.28788",stroke:"#FF5B2E",strokeWidth:.8,strokeLinecap:"round"}),React.createElement("path",{d:"M3.5 8.90001H9.5",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}),React.createElement("path",{d:"M15.2 8.90001H16.2",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}),React.createElement("path",{d:"M18.7 19.9L19.3432 20.5497C19.5375 20.7459 19.8541 20.7475 20.0503 20.5532L20.7 19.91",stroke:"#FF5B2E",strokeWidth:.8,strokeLinecap:"round"}),React.createElement("path",{d:"M3.5 20.3H9.5",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}),React.createElement("path",{d:"M15.2 20.3H16.2",stroke:"#FF5B2E",strokeWidth:1.2,strokeLinecap:"round"}))},mn=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M18.292 10.496a7.796 7.796 0 1 0-15.591 0 7.796 7.796 0 0 0 15.591 0m1.4 0a9.196 9.196 0 1 1-18.392 0 9.196 9.196 0 0 1 18.392 0",fill:"#ff5b2e"}),React.createElement("path",{d:"M17.164 16.52a.7.7 0 1 0-.99.99l4.986 4.985a.7.7 0 0 0 .99-.99zm-6.097-4.302h-1.4q.005-.534.087-.914.088-.381.287-.686.2-.31.54-.633.268-.251.48-.474.216-.228.34-.475.123-.252.123-.568 0-.358-.118-.598a.78.78 0 0 0-.334-.363 1.05 1.05 0 0 0-.545-.129q-.27 0-.51.111a.9.9 0 0 0-.386.346q-.147.228-.158.598H7.92q.018-.768.363-1.278.345-.516.932-.767.586-.258 1.312-.258.804 0 1.372.27a1.9 1.9 0 0 1 .873.773q.304.51.304 1.23 0 .516-.199.926a3.1 3.1 0 0 1-.527.756q-.328.35-.71.71-.333.297-.45.638a2.5 2.5 0 0 0-.123.785M9.52 14.04q0-.351.234-.586.24-.234.645-.234t.638.234q.24.235.24.586 0 .34-.24.574-.234.235-.639.235-.404 0-.644-.235a.78.78 0 0 1-.234-.574",fill:"#ff5b2e"}))},gn=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M9.2 12a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0m4.2 0a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0m4.2 0a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0M5.495 15.505a.7.7 0 0 1-.99.99L.858 12.85a1.2 1.2 0 0 1 0-1.698l3.647-3.646a.7.7 0 0 1 .99.99L1.99 12zm13.01 0a.7.7 0 0 0 .99.99l3.647-3.646a1.2 1.2 0 0 0 0-1.698l-3.647-3.646a.7.7 0 0 0-.99.99L22.01 12z",fill:"#ff5b2e"}))},vn=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M22.65 8a.35.35 0 0 0-.35-.35H1.7a.35.35 0 0 0-.35.35v8c0 .193.157.35.35.35h20.6a.35.35 0 0 0 .35-.35zm1.3 8c0 .911-.74 1.65-1.65 1.65H1.7A1.65 1.65 0 0 1 .05 16V8c0-.911.739-1.65 1.65-1.65h20.6c.91 0 1.65.739 1.65 1.65z",fill:"#ff5b2e"}),React.createElement("path",{d:"M12 11.35a.65.65 0 0 1 0 1.3H5a.65.65 0 0 1 0-1.3zm5.058-1.706a1.21 1.21 0 0 1 1.683-.008l.907.871a.5.5 0 0 1-.694.72l-.906-.87a.213.213 0 0 0-.29 0l-.898.882a.5.5 0 0 1-.7-.715zm-.001 4.713a1.21 1.21 0 0 0 1.683.008l.907-.871a.5.5 0 0 0-.694-.72l-.906.87a.213.213 0 0 1-.29 0l-.898-.882a.5.5 0 0 0-.7.715z",fill:"#ff5b2e"}))},bn=[{label:"None",value:"all",type:"order_by"},{label:"ID",value:"ID",type:"order_by"},{label:"Date",value:"date",type:"order_by"},{label:"Random",value:"rand",type:"order_by"},{label:"Title",value:"title",type:"order_by"},{label:"Modified",value:"modified",type:"order_by"},{label:"Menu Order",value:"menu_order",type:"order_by",pro:!0},{label:"Drag & Drop",value:"post__in",type:"order_by",pro:!0}],yn=[{value:"none",label:"None"},{value:"fadeIn",label:"fadeIn"},{value:"fadeInUp",label:"fadeInUp"},{value:"fadeInLeft",label:"fadeInLeft",pro:!0},{value:"fadeInDownBig",label:"fadeInDownBig",pro:!0},{value:"shake",label:"shake",pro:!0},{value:"swing",label:"swing",pro:!0},{value:"rollIn",label:"rollIn",pro:!0},{value:"bounce",label:"bounce",pro:!0},{value:"wobble",label:"wobble",pro:!0},{value:"slideInDown",label:"slideInDown",pro:!0},{value:"slideInLeft",label:"slideInLeft",pro:!0},{value:"slideInUp",label:"slideInUp",pro:!0},{value:"zoomIn",label:"zoomIn",pro:!0},{value:"zoomInDown",label:"zoomInDown",pro:!0},{value:"zoomInUp",label:"zoomInUp",pro:!0},{value:"zoomInLeft",label:"zoomInLeft",pro:!0},{value:"bounceIn",label:"bounceIn",pro:!0},{value:"bounceInDown",label:"bounceInDown",pro:!0},{value:"bounceInUp",label:"bounceInUp",pro:!0},{value:"jello",label:"jello",pro:!0},{value:"rubberBand",label:"rubberBand",pro:!0}],wn=[{label:React.createElement("span",{className:"sp-eab-border-none"},"None"),value:"none"},{label:React.createElement("span",{className:"sp-eab-border-solid"},"Solid"),value:"solid"},{label:React.createElement("span",{className:"sp-eab-border-dashed"},"Dashed"),value:"dashed"},{label:React.createElement("span",{className:"sp-eab-border-dotted"},"Dotted"),value:"dotted"},{label:React.createElement("span",{className:"sp-eab-border-double"},"Double"),value:"double"}],En={"sp-easy-accordion-pro/faq-search":{icon:React.createElement(mn,null),title:(0,Bt.__)("FAQ Search","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/faq-searchchild-block/",demoLink:""},"sp-easy-accordion-pro/ajax-pagination":{icon:React.createElement(gn,null),title:(0,Bt.__)("Ajax Pagination","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/ajax-pagination-child-block/",demoLink:""},"sp-easy-accordion-pro/toggle-all":{icon:React.createElement(vn,null),title:(0,Bt.__)("Toggle All Button","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/toggle-all-buttonchild-block/",demoLink:""},"sp-easy-accordion-pro/accordion-item":{icon:React.createElement(Ft,null),title:(0,Bt.__)("Accordion Single Item","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/accordion-single-item/",demoLink:""},"sp-easy-accordion-pro/image-accordion-item":{icon:React.createElement(Wt,null),title:(0,Bt.__)("Single (Image) Accordion Item","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/single-image-accordion-item/",demoLink:""},"sp-easy-accordion-pro/vertical-accordion":{icon:React.createElement(Ft,null),title:(0,Bt.__)("FAQ / Vertical Accordion","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/vertical-accordion/",demoLink:"https://easyaccordion.io/blocks/#demoId15"},"sp-easy-accordion-pro/horizontal-accordion":{icon:React.createElement(zt,null),title:(0,Bt.__)("Horizontal Accordion","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/horizontal-accordion/",demoLink:"https://easyaccordion.io/blocks/#demoId9"},"sp-easy-accordion-pro/image-accordion":{icon:React.createElement(Wt,null),title:(0,Bt.__)("Image Accordion","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/image-accordion/",demoLink:"https://easyaccordion.io/blocks/#demoId11"},"sp-easy-accordion-pro/accordion-slider":{icon:React.createElement(Ut,null),title:(0,Bt.__)("Accordion Slider","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/accordion-slider/",demoLink:"https://easyaccordion.io/blocks/#demoId13"},"sp-easy-accordion-pro/sidebar-tab-accordion":{icon:React.createElement(en,null),title:(0,Bt.__)("Sidebar Tab Accordion","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/sidebar-tab-accordion/",demoLink:"https://easyaccordion.io/blocks/#demoId119"},"sp-easy-accordion-pro/post-accordion":{icon:React.createElement(Yt,null),title:(0,Bt.__)("Post Accordion 01","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/post-accordion-01/",demoLink:"https://easyaccordion.io/blocks/#demoId121"},"sp-easy-accordion-pro/product-accordion":{icon:React.createElement(ln,null),title:(0,Bt.__)("Product Accordion 01","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/product-accordion-01/",demoLink:"https://easyaccordion.io/blocks/#demoId123"},"sp-easy-accordion-pro/post-accordion-block-two":{icon:React.createElement(hn,null),title:(0,Bt.__)("Post Accordion 02","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/post-accordion-02/",demoLink:"https://easyaccordion.io/blocks/#demoId122"},"sp-easy-accordion-pro/post-accordion-two":{icon:React.createElement(hn,null),title:(0,Bt.__)("Post Accordion 02","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/post-accordion-02/",demoLink:"https://easyaccordion.io/blocks/#demoId122"},"sp-easy-accordion-pro/product-accordion-two":{icon:React.createElement(fn,null),title:(0,Bt.__)("Product Accordion 02","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/product-accordion-02/",demoLink:"https://easyaccordion.io/blocks/#demoId124"},"sp-easy-accordion-pro/menu-accordion":{icon:React.createElement(pn,null),title:(0,Bt.__)("Category or Menu Accordion","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/category-or-menu-accordion/",demoLink:"https://easyaccordion.io/blocks/#demoId125"},"sp-easy-accordion-pro/media-accordion":{icon:React.createElement(sn,null),title:(0,Bt.__)("Media Accordion","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/media-accordion/",demoLink:"https://easyaccordion.io/blocks/#demoId120"},"sp-easy-accordion-pro/user-faq-form":{icon:React.createElement(un,null),title:(0,Bt.__)("User FAQ Forms","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/user-faq-forms/",demoLink:"https://easyaccordion.io/blocks/#demoId126"},"sp-easy-accordion-pro/user-faq-forms":{icon:React.createElement(un,null),title:(0,Bt.__)("User FAQ Forms","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/user-faq-forms/",demoLink:"https://easyaccordion.io/blocks/#demoId126"},"sp-easy-accordion-pro/shortcode":{icon:React.createElement(Kt,null),title:(0,Bt.__)("Easy Accordion Shortcode","easy-accordion-free"),docLink:"https://easyaccordion.io/docs/easy-accordion-shortcode/",demoLink:""}},xn=[{set:1,expand:"eab-icon-angle-down-solid",collapse:"eab-icon-angle-up-solid"},{set:2,expand:"eab-icon-plus-regular",collapse:"eab-icon-minus-solid-1"},{set:3,expand:"eab-icon-plus-solid",collapse:"eab-icon-minus-solid"},{set:4,expand:"eab-icon-triangle-down",collapse:"eab-icon-triangle-up"},{set:5,expand:"eab-icon-double-angle-down",collapse:"eab-icon-double-angle-up"},{set:6,expand:"eab-icon-arrow-down-regular",collapse:"eab-icon-arrow-up-regular"},{set:7,expand:"eab-icon-dots",collapse:"eab-icon-dots"},{set:8,expand:"eab-icon-check-mark",collapse:"eab-icon-cross"},{set:9,expand:"eab-icon-angle-down-light",collapse:"eab-icon-angle-up-light",pro:!0},{set:10,expand:"eab-icon-angle-down-regular",collapse:"eab-icon-angle-up-regular",pro:!0},{set:11,expand:"eab-icon-plus-light",collapse:"eab-icon-minus-light",pro:!0},{set:12,expand:"eab-icon-angle-down-circle",collapse:"eab-icon-angle-up-circle",pro:!0},{set:13,expand:"eab-icon-plus-circle-border",collapse:"eab-icon-minus-circle-border",pro:!0},{set:14,expand:"eab-icon-plus-radius-border",collapse:"eab-icon-minus-radius-border",pro:!0},{set:15,expand:"eab-icon-plus-fill",collapse:"eab-icon-minus-fill",pro:!0},{set:16,expand:"eab-icon-disclosure-q",collapse:"eab-icon-disclosure-a",pro:!0}],Rn={"vertical-accordion":[{label:"Template One",value:"vertical-one",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,fill:"#fff",rx:2.275}),React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,stroke:"#9EA9B2",strokeWidth:1.05,rx:2.275}),React.createElement("path",{fill:"#718491",d:"M111.801 35.7v.7H8.201v-.7h103.6Zm.7-.7V9.1a.7.7 0 0 0-.7-.7H8.201a.7.7 0 0 0-.7.7V35a.7.7 0 0 0 .7.7v.7A1.4 1.4 0 0 1 6.8 35V9.1a1.4 1.4 0 0 1 1.4-1.4h103.6a1.4 1.4 0 0 1 1.4 1.4V35a1.4 1.4 0 0 1-1.4 1.4v-.7a.7.7 0 0 0 .7-.7Z"}),React.createElement("path",{fill:"#718491",d:"M111.801 7.7a1.4 1.4 0 0 1 1.4 1.4v8.4H6.801V9.1a1.4 1.4 0 0 1 1.4-1.4h103.6Z"}),React.createElement("path",{stroke:"#718491",d:"M111.801 7.7a1.4 1.4 0 0 1 1.4 1.4v8.4H6.801V9.1a1.4 1.4 0 0 1 1.4-1.4h103.6Z"}),React.createElement("path",{fill:"#fff",d:"M10.3 12.6a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H11a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.221 11.48a.474.474 0 0 1 .515.043l1.637 1.365a.303.303 0 0 1 0 .482.47.47 0 0 1-.579 0l-1.348-1.124-1.347 1.123a.47.47 0 0 1-.579 0 .303.303 0 0 1 0-.481l1.637-1.365.064-.044Z"})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("path",{d:"M11 20.982c0-.376.305-.682.682-.682h96.636c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H11.682a.682.682 0 0 1-.682-.682v-.036ZM11 24.482c0-.376.305-.682.682-.682h95.236c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H11.682a.682.682 0 0 1-.682-.682v-.036ZM11 27.982c0-.376.305-.682.682-.682h96.636c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H11.682a.682.682 0 0 1-.682-.682v-.036ZM11 31.482c0-.376.305-.682.682-.682h29.436c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H11.682a.682.682 0 0 1-.682-.682v-.036Z"})),React.createElement("rect",{width:106.4,height:9.8,x:6.801,y:39.9,fill:"#718491",rx:1.4}),React.createElement("rect",{width:106.4,height:9.8,x:6.801,y:39.9,stroke:"#718491",rx:1.4}),React.createElement("path",{fill:"#fff",d:"M10.3 44.8a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H11a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.671 45.613a.472.472 0 0 1-.514-.043l-1.637-1.365a.302.302 0 0 1 0-.482.47.47 0 0 1 .579 0l1.348 1.123 1.346-1.123a.471.471 0 0 1 .58 0 .303.303 0 0 1 0 .482l-1.638 1.365-.064.043Z"})),React.createElement("rect",{width:106.4,height:9.8,x:6.801,y:53.2,fill:"#718491",rx:1.4}),React.createElement("rect",{width:106.4,height:9.8,x:6.801,y:53.2,stroke:"#718491",rx:1.4}),React.createElement("path",{fill:"#fff",d:"M10.3 58.1a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H11a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.221 58.913a.474.474 0 0 0 .515-.044l1.637-1.364a.303.303 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.348 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .303.303 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("rect",{width:106.4,height:9.8,x:6.801,y:66.5,fill:"#718491",rx:1.4}),React.createElement("rect",{width:106.4,height:9.8,x:6.801,y:66.5,stroke:"#718491",rx:1.4}),React.createElement("path",{fill:"#fff",d:"M10.3 71.4a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H11a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.221 72.213a.474.474 0 0 0 .515-.044l1.637-1.364a.303.303 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.348 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .303.303 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M105.5 10.5h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M105.5 42.7h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M105.5 56h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M105.5 69.3h4.2v4.2h-4.2z"}))))}},{label:"Template Two",value:"vertical-two",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,fill:"#fff",rx:2.275}),React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,stroke:"#9EA9B2",strokeWidth:1.05,rx:2.275}),React.createElement("path",{fill:"#718491",d:"M113.201 35.35v.7H6.801v-.7h106.4Zm0-26.6v.7H6.801v-.7h106.4ZM8.201 14.419a.84.84 0 0 1 .84-.84h67.62a.84.84 0 0 1 0 1.68H9.041a.84.84 0 0 1-.84-.84Z"}),React.createElement("g",null,React.createElement("path",{fill:"#718491",d:"M108.622 13.298a.472.472 0 0 1 .514.043l1.637 1.365c.16.133.16.349 0 .482a.47.47 0 0 1-.579 0l-1.348-1.123-1.346 1.123a.47.47 0 0 1-.58 0 .303.303 0 0 1 0-.482l1.638-1.364.064-.044Z"})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("path",{d:"M8.201 20c0-.376.306-.682.682-.682H110.42c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H8.883a.682.682 0 0 1-.682-.682V20ZM8.201 23.5c0-.376.306-.682.682-.682H109.72c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H8.883a.682.682 0 0 1-.682-.682V23.5ZM8.201 27c0-.376.306-.682.682-.682H110.42c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H8.883a.682.682 0 0 1-.682-.682V27ZM8.201 30.5c0-.376.306-.682.682-.682H38.32c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H8.883a.682.682 0 0 1-.682-.682V30.5Z"})),React.createElement("mask",{id:"b",fill:"#fff"},React.createElement("path",{d:"M6.8 36.05h106.401v9.8H6.801v-9.8Z"})),React.createElement("path",{fill:"#718491",d:"M113.201 45.85v-.7H6.801v1.4h106.4v-.7Z",mask:"url(#b)"}),React.createElement("path",{fill:"#718491",d:"M8.201 40.95a.84.84 0 0 1 .84-.84h67.62a.84.84 0 1 1 0 1.68H9.041a.84.84 0 0 1-.84-.84Z"}),React.createElement("g",null,React.createElement("path",{fill:"#718491",d:"M109.323 41.763a.472.472 0 0 0 .514-.044l1.637-1.364a.302.302 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.347 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .302.302 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("mask",{id:"d",fill:"#fff"},React.createElement("path",{d:"M6.8 45.85h106.401v9.8H6.801v-9.8Z"})),React.createElement("path",{fill:"#718491",d:"M113.201 55.65v-.7H6.801v1.4h106.4v-.7Z",mask:"url(#d)"}),React.createElement("path",{fill:"#718491",d:"M8.201 50.75a.84.84 0 0 1 .84-.84h67.62a.84.84 0 1 1 0 1.68H9.041a.84.84 0 0 1-.84-.84Z"}),React.createElement("g",null,React.createElement("path",{fill:"#718491",d:"M109.323 51.563a.472.472 0 0 0 .514-.044l1.637-1.364a.302.302 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.347 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .302.302 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("mask",{id:"f",fill:"#fff"},React.createElement("path",{d:"M6.8 55.65h106.401v9.8H6.801v-9.8Z"})),React.createElement("path",{fill:"#718491",d:"M113.201 65.45v-.7H6.801v1.4h106.4v-.7Z",mask:"url(#f)"}),React.createElement("path",{fill:"#718491",d:"M8.201 60.55a.84.84 0 0 1 .84-.84h67.62a.84.84 0 1 1 0 1.68H9.041a.84.84 0 0 1-.84-.84Z"}),React.createElement("g",null,React.createElement("path",{fill:"#718491",d:"M109.323 61.363a.472.472 0 0 0 .514-.044l1.637-1.364a.302.302 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.347 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .302.302 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("mask",{id:"h",fill:"#fff"},React.createElement("path",{d:"M6.8 65.45h106.401v9.8H6.801v-9.8Z"})),React.createElement("path",{fill:"#718491",d:"M113.201 75.25v-.7H6.801v1.4h106.4v-.7Z",mask:"url(#h)"}),React.createElement("path",{fill:"#718491",d:"M8.201 70.35a.84.84 0 0 1 .84-.84h67.62a.84.84 0 1 1 0 1.68H9.041a.84.84 0 0 1-.84-.84Z"}),React.createElement("g",null,React.createElement("path",{fill:"#718491",d:"M109.323 71.163a.472.472 0 0 0 .514-.044l1.637-1.364a.302.302 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.347 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .302.302 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M106.9 12.318h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M107.602 38.85h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M107.602 48.65h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"g"},React.createElement("path",{fill:"#fff",d:"M107.602 58.45h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"i"},React.createElement("path",{fill:"#fff",d:"M107.602 68.25h4.2v4.2h-4.2z"}))))}},{label:"Template Three",value:"vertical-three",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,fill:"#fff",rx:2.275}),React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,stroke:"#9EA9B2",strokeWidth:1.05,rx:2.275}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("path",{d:"M19.4 21.315c0-.377.306-.682.682-.682h86.836c.377 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H20.082a.682.682 0 0 1-.682-.682v-.036ZM19.4 24.815c0-.377.306-.682.682-.682h84.036c.377 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H20.082a.682.682 0 0 1-.682-.682v-.036ZM19.4 28.315c0-.377.306-.682.682-.682h86.836c.377 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H20.082a.682.682 0 0 1-.682-.682v-.036ZM19.4 31.815c0-.377.306-.682.682-.682h29.436c.377 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H20.082a.682.682 0 0 1-.682-.682v-.036Z"})),React.createElement("path",{fill:"#8796A1",d:"M7.5 8.05h8.4v28H7.5v-28Z"}),React.createElement("path",{fill:"#8796A1",d:"M7.5 8.05h8.4v8.4H7.5z"}),React.createElement("path",{fill:"#fff",d:"m13.405 13.785-.555-.533v-.022c.086-.106.15-.213.213-.362.086-.192.128-.405.128-.64 0-.234-.042-.447-.128-.639a1.351 1.351 0 0 0-.34-.49c-.15-.15-.32-.256-.49-.32a1.557 1.557 0 0 0-.64-.128c-.213 0-.427.043-.618.128a2.073 2.073 0 0 0-.512.32c-.15.15-.256.298-.341.49a1.559 1.559 0 0 0-.128.64c0 .234.043.447.128.64.085.191.192.361.341.51.15.15.32.257.512.342.191.085.405.128.64.128.233 0 .447-.043.639-.128.106-.043.213-.107.32-.17h.02l.256.255.555-.021Zm-1.215-.576c-.17.107-.363.15-.576.15a.915.915 0 0 1-.533-.15.95.95 0 0 1-.383-.383 1.281 1.281 0 0 1-.15-.576c0-.213.043-.405.128-.554a.904.904 0 0 1 .363-.384c.149-.085.34-.15.533-.15.213 0 .404.044.554.15.149.107.277.235.362.405.085.17.128.362.128.576 0 .234-.064.426-.17.597h-.022l-.426-.427h-.554s-.022.022 0 .022l.746.724c0-.021 0-.021 0 0Z"}),React.createElement("path",{stroke:"#718491",strokeWidth:.7,d:"M8.201 8.05h103.6c.58 0 1.05.47 1.05 1.05v7.35H7.151V9.1c0-.58.47-1.05 1.05-1.05Z"}),React.createElement("path",{fill:"#718491",d:"M19.4 12.25a.7.7 0 0 1 .7-.7h65.8a.7.7 0 1 1 0 1.4H20.1a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",{clipPath:"url(#a)"},React.createElement("path",{fill:"#718491",d:"M107.221 13.063a.474.474 0 0 0 .515-.044l1.637-1.364a.303.303 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.348 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .303.303 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("path",{fill:"#718491",d:"M111.801 35.866v.709H8.201v-.709h103.6Zm.7-.708V8.942a.705.705 0 0 0-.7-.709H8.201c-.387 0-.7.318-.7.709v26.216c0 .391.313.708.7.708v.709c-.773 0-1.4-.635-1.4-1.417V8.942c0-.783.627-1.417 1.4-1.417h103.6c.773 0 1.4.634 1.4 1.417v26.216c0 .782-.627 1.417-1.4 1.417v-.709c.386 0 .7-.317.7-.708Z"}),React.createElement("path",{fill:"#fff",d:"M12.886 23.802h.512c.043 0 .064-.043.043-.064l-1.514-3.261c-.021-.043-.064-.043-.085 0l-1.513 3.261c-.022.021 0 .064.042.064h.512c.021 0 .043 0 .043-.021l.34-.768c0-.021.022-.021.043-.021h1.13c.021 0 .043 0 .043.021l.34.768c.043 0 .043.021.065.021Zm-.618-1.3h-.746c-.042 0-.064-.043-.042-.064l.362-.874c.021-.043.064-.043.085 0l.363.874c.021.042 0 .064-.022.064Z"}),React.createElement("path",{fill:"#8796A1",d:"M7.5 41.125h8.4v8.4H7.5z"}),React.createElement("path",{fill:"#fff",d:"m13.405 46.86-.555-.533v-.021c.086-.107.15-.213.213-.363.086-.191.128-.405.128-.64 0-.234-.042-.447-.128-.639a1.351 1.351 0 0 0-.34-.49c-.15-.149-.32-.256-.49-.32a1.557 1.557 0 0 0-.64-.127c-.213 0-.427.042-.618.128a2.073 2.073 0 0 0-.512.32c-.15.148-.256.298-.341.49a1.559 1.559 0 0 0-.128.639c0 .234.043.447.128.64.085.191.192.362.341.51.15.15.32.257.512.342.191.085.405.128.64.128.233 0 .447-.043.639-.128.106-.043.213-.107.32-.17h.02l.256.255.555-.021Zm-1.215-.576c-.17.107-.363.15-.576.15a.916.916 0 0 1-.533-.15.95.95 0 0 1-.383-.383 1.281 1.281 0 0 1-.15-.576c0-.213.043-.405.128-.554a.904.904 0 0 1 .363-.384c.149-.085.34-.149.533-.149.213 0 .404.043.554.15.149.106.277.234.362.404.085.17.128.363.128.576 0 .234-.064.426-.17.597h-.022l-.426-.427h-.554s-.022.022 0 .022l.746.724c0-.02 0-.02 0 0Z"}),React.createElement("rect",{width:105.7,height:8.4,x:7.151,y:41.125,stroke:"#718491",strokeWidth:.7,rx:1.05}),React.createElement("path",{fill:"#718491",d:"M19.4 45.325a.7.7 0 0 1 .7-.7h65.8a.7.7 0 1 1 0 1.4H20.1a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("path",{fill:"#718491",d:"M107.221 46.138a.474.474 0 0 0 .515-.044l1.637-1.364a.303.303 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.348 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .303.303 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("path",{fill:"#8796A1",d:"M7.5 54.425h8.4v8.4H7.5z"}),React.createElement("path",{fill:"#fff",d:"m13.405 60.16-.555-.533v-.022c.086-.106.15-.213.213-.362.086-.192.128-.405.128-.64 0-.234-.042-.447-.128-.639a1.351 1.351 0 0 0-.34-.49c-.15-.15-.32-.256-.49-.32a1.557 1.557 0 0 0-.64-.128c-.213 0-.427.043-.618.128a2.073 2.073 0 0 0-.512.32c-.15.15-.256.298-.341.49a1.559 1.559 0 0 0-.128.64c0 .234.043.447.128.64.085.191.192.361.341.51.15.15.32.257.512.342.191.085.405.128.64.128.233 0 .447-.043.639-.128.106-.043.213-.107.32-.17h.02l.256.255.555-.021Zm-1.215-.576c-.17.107-.363.15-.576.15a.915.915 0 0 1-.533-.15.95.95 0 0 1-.383-.384 1.281 1.281 0 0 1-.15-.575c0-.213.043-.405.128-.554a.904.904 0 0 1 .363-.384c.149-.085.34-.15.533-.15.213 0 .404.044.554.15.149.107.277.235.362.405.085.17.128.363.128.576 0 .234-.064.426-.17.596h-.022l-.426-.426h-.554s-.022.021 0 .021l.746.725c0-.021 0-.021 0 0Z"}),React.createElement("rect",{width:105.7,height:8.4,x:7.151,y:54.425,stroke:"#718491",strokeWidth:.7,rx:1.05}),React.createElement("path",{fill:"#718491",d:"M19.4 58.625a.7.7 0 0 1 .7-.7h65.8a.7.7 0 1 1 0 1.4H20.1a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{fill:"#718491",d:"M107.221 59.438a.474.474 0 0 0 .515-.044l1.637-1.364a.303.303 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.348 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .303.303 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("path",{fill:"#8796A1",d:"M7.5 67.725h8.4v8.4H7.5z"}),React.createElement("path",{fill:"#fff",d:"m13.405 73.46-.555-.533v-.021c.086-.107.15-.213.213-.363.086-.191.128-.405.128-.639 0-.234-.042-.448-.128-.64a1.351 1.351 0 0 0-.34-.49c-.15-.149-.32-.255-.49-.32a1.557 1.557 0 0 0-.64-.127c-.213 0-.427.042-.618.128a2.073 2.073 0 0 0-.512.32c-.15.148-.256.298-.341.49a1.559 1.559 0 0 0-.128.639c0 .234.043.448.128.64.085.191.192.362.341.511.15.15.32.256.512.341.191.085.405.128.64.128.233 0 .447-.043.639-.128.106-.043.213-.106.32-.17h.02l.256.255.555-.021Zm-1.215-.575c-.17.106-.363.149-.576.149a.916.916 0 0 1-.533-.15.95.95 0 0 1-.383-.383 1.281 1.281 0 0 1-.15-.576c0-.213.043-.405.128-.554a.904.904 0 0 1 .363-.384c.149-.085.34-.149.533-.149.213 0 .404.043.554.15.149.106.277.234.362.404.085.17.128.363.128.576 0 .234-.064.426-.17.597h-.022l-.426-.427h-.554s-.022.022 0 .022l.746.725c0-.022 0-.022 0 0Z"}),React.createElement("rect",{width:105.7,height:8.4,x:7.151,y:67.725,stroke:"#718491",strokeWidth:.7,rx:1.05}),React.createElement("path",{fill:"#718491",d:"M19.4 71.925a.7.7 0 0 1 .7-.7h65.8a.7.7 0 1 1 0 1.4H20.1a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",{clipPath:"url(#d)"},React.createElement("path",{fill:"#718491",d:"M107.221 72.738a.474.474 0 0 0 .515-.043l1.637-1.365a.303.303 0 0 0 0-.482.47.47 0 0 0-.579 0l-1.348 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .303.303 0 0 0 0 .482l1.637 1.365.064.043Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M105.5 10.15h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M105.5 43.225h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M105.5 56.525h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M105.5 69.825h4.2v4.2h-4.2z"}))))},onlyPro:!0},{label:"Template Four",value:"vertical-four",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,fill:"#fff",rx:2.275}),React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,stroke:"#9EA9B2",strokeWidth:1.05,rx:2.275}),React.createElement("path",{fill:"#718491",d:"M19.6 8.82c0-.812.626-1.47 1.4-1.47h88.9c.773 0 1.4.658 1.4 1.47v26.46c0 .812-.627 1.47-1.4 1.47H21c-.774 0-1.4-.658-1.4-1.47V8.82Z"}),React.createElement("path",{fill:"#718491",d:"M109.9 35.975v.717H21v-.717h88.9Zm.7-.718V9.427a.71.71 0 0 0-.7-.717H21c-.387 0-.7.32-.7.717v25.83c0 .397.313.718.7.718v.717c-.774 0-1.4-.642-1.4-1.435V9.427c0-.792.626-1.435 1.4-1.435h88.9c.773 0 1.4.643 1.4 1.435v25.83c0 .793-.627 1.435-1.4 1.435v-.717a.71.71 0 0 0 .7-.718Z"}),React.createElement("path",{fill:"#718491",d:"M109.899 7.38a1.4 1.4 0 0 1 1.401 1.4v6.795H19.6V8.78a1.4 1.4 0 0 1 1.4-1.4h88.899Z"}),React.createElement("path",{stroke:"#718491",d:"M109.899 7.38a1.4 1.4 0 0 1 1.401 1.4v6.795H19.6V8.78a1.4 1.4 0 0 1 1.4-1.4h88.899Z"}),React.createElement("path",{fill:"#fff",d:"M23.1 11.477a.7.7 0 0 1 .7-.7H91a.7.7 0 1 1 0 1.4H23.8a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M105.321 10.356a.472.472 0 0 1 .514.044l1.638 1.365a.303.303 0 0 1 0 .481.47.47 0 0 1-.58 0l-1.347-1.123-1.347 1.123a.47.47 0 0 1-.579 0 .302.302 0 0 1 0-.481l1.637-1.365.064-.044Z"})),React.createElement("g",{opacity:.9},React.createElement("mask",{id:"b",width:84,height:18,x:23.799,y:15.172,fill:"#000",maskUnits:"userSpaceOnUse"},React.createElement("path",{fill:"#fff",d:"M23.799 15.172h84v18h-84z"}),React.createElement("path",{d:"M23.799 16.172h83.3v16.1h-83.3v-16.1Z"})),React.createElement("path",{fill:"#fff",fillOpacity:.8,d:"M23.799 16.172v.35h83.3v-.7h-83.3v.35Z",mask:"url(#b)"}),React.createElement("path",{fill:"#fff",d:"M23.799 21.054c0-.377.305-.682.682-.682h81.936c.376 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H24.481a.682.682 0 0 1-.682-.682v-.036ZM23.799 24.554c0-.377.305-.682.682-.682h79.836c.376 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H24.481a.682.682 0 0 1-.682-.682v-.036ZM23.799 28.054c0-.377.305-.682.682-.682h81.936c.376 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H24.481a.682.682 0 0 1-.682-.682v-.036ZM23.799 31.554c0-.377.305-.682.682-.682h29.436c.377 0 .682.305.682.682v.036a.682.682 0 0 1-.682.682H24.48a.682.682 0 0 1-.682-.682v-.036Z"})),React.createElement("rect",{width:91.7,height:9.8,x:19.6,y:40.25,fill:"#718491",rx:1.4}),React.createElement("rect",{width:91.7,height:9.8,x:19.6,y:40.25,stroke:"#718491",rx:1.4}),React.createElement("path",{fill:"#fff",d:"M23.1 45.15a.7.7 0 0 1 .7-.7H91a.7.7 0 1 1 0 1.4H23.8a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M105.771 45.963a.472.472 0 0 1-.514-.044l-1.638-1.364a.303.303 0 0 1 0-.482.47.47 0 0 1 .579 0l1.348 1.123 1.347-1.123a.47.47 0 0 1 .579 0c.16.133.16.349 0 .482l-1.637 1.364-.064.044Z"})),React.createElement("rect",{width:91.7,height:9.8,x:19.6,y:53.55,fill:"#718491",rx:1.4}),React.createElement("rect",{width:91.7,height:9.8,x:19.6,y:53.55,stroke:"#718491",rx:1.4}),React.createElement("path",{fill:"#fff",d:"M23.1 58.45a.7.7 0 0 1 .7-.7h63a.7.7 0 1 1 0 1.4h-63a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M105.321 59.263a.472.472 0 0 0 .514-.044l1.638-1.364a.303.303 0 0 0 0-.482.471.471 0 0 0-.58 0l-1.347 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .302.302 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("rect",{width:91.7,height:9.8,x:19.6,y:66.85,fill:"#718491",rx:1.4}),React.createElement("rect",{width:91.7,height:9.8,x:19.6,y:66.85,stroke:"#718491",rx:1.4}),React.createElement("path",{fill:"#fff",d:"M23.1 71.75a.7.7 0 0 1 .7-.7h70.7a.7.7 0 1 1 0 1.4H23.8a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M105.321 72.563a.472.472 0 0 0 .514-.044l1.638-1.364a.303.303 0 0 0 0-.482.471.471 0 0 0-.58 0l-1.347 1.123-1.347-1.123a.47.47 0 0 0-.579 0 .302.302 0 0 0 0 .482l1.637 1.364.064.044Z"})),React.createElement("path",{fill:"#BBC2C7",d:"M10.498 10.15h1.4v66.5h-1.4v-66.5Z"}),React.createElement("path",{fill:"#718491",d:"M10.498 10.15h1.4v17.5h-1.4v-17.5Z"}),React.createElement("path",{fill:"#718491",d:"M13.998 24.85a2.8 2.8 0 1 1-5.6 0 2.8 2.8 0 0 1 5.6 0Z"}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M103.6 9.377h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M103.6 43.05h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M103.6 56.35h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M103.6 69.65h4.2v4.2h-4.2z"}))))},onlyPro:!0},{label:"Template Five",value:"vertical-five",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,fill:"#fff",rx:2.275}),React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,stroke:"#9EA9B2",strokeWidth:1.05,rx:2.275}),React.createElement("path",{fill:"#fff",d:"M10.3 7.7h102.901v28.7h-102.9V7.7Z"}),React.createElement("path",{fill:"#718491",d:"M113.201 7.7v28.7h-102.9V7.7h102.9Zm-102.2 28h101.5V8.4h-101.5v27.3Z"}),React.createElement("path",{fill:"#718491",d:"M10.301 8.05h102.9v8.96h-102.9z"}),React.createElement("path",{stroke:"#718491",d:"M10.301 8.05h102.9v8.96h-102.9z"}),React.createElement("path",{fill:"#fff",d:"M17.3 12.53a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H18a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.671 13.343a.472.472 0 0 1-.514-.043l-1.637-1.365a.302.302 0 0 1 0-.482.47.47 0 0 1 .579 0l1.348 1.123 1.346-1.123a.47.47 0 0 1 .58 0 .303.303 0 0 1 0 .482l-1.638 1.365-.064.043Z"})),React.createElement("path",{fill:"#32383C",d:"M6.8 8.69h7v7h-7z"}),React.createElement("path",{fill:"#fff",d:"M10.778 10.944v2.493h-.48v-1.905l-.476.183v-.4l.903-.371h.053Z"}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("path",{d:"M15.9 21.332c0-.376.306-.682.682-.682h91.736c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H16.582a.682.682 0 0 1-.682-.682v-.036ZM15.9 24.832c0-.376.306-.682.682-.682h89.636c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H16.582a.682.682 0 0 1-.682-.682v-.036ZM15.9 28.332c0-.376.306-.682.682-.682h91.736c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H16.582a.682.682 0 0 1-.682-.682v-.036ZM15.9 31.832c0-.376.306-.682.682-.682h29.436c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H16.582a.682.682 0 0 1-.682-.682v-.036Z"})),React.createElement("path",{fill:"#718491",d:"M10.301 40.6h102.9v8.96h-102.9z"}),React.createElement("path",{stroke:"#718491",d:"M10.301 40.6h102.9v8.96h-102.9z"}),React.createElement("path",{fill:"#fff",d:"M17.3 45.08a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H18a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.671 45.893a.472.472 0 0 1-.514-.044l-1.637-1.364a.302.302 0 0 1 0-.482.47.47 0 0 1 .579 0l1.348 1.123 1.346-1.123a.47.47 0 0 1 .58 0 .303.303 0 0 1 0 .482l-1.638 1.364-.064.044Z"})),React.createElement("path",{fill:"#32383C",d:"M6.8 41.45h7v7h-7z"}),React.createElement("path",{fill:"#fff",d:"M11.054 45.814v.398H9.588v-.34l.674-.856c.064-.089.115-.168.152-.236a1.02 1.02 0 0 0 .078-.183.609.609 0 0 0-.002-.343.257.257 0 0 0-.076-.123.178.178 0 0 0-.123-.045.206.206 0 0 0-.147.055.335.335 0 0 0-.088.15.766.766 0 0 0-.027.214h-.48c0-.148.03-.284.09-.409a.737.737 0 0 1 .258-.297.71.71 0 0 1 .402-.111c.152 0 .28.029.383.085a.552.552 0 0 1 .234.245.82.82 0 0 1 .08.377c0 .082-.01.163-.032.241a1.238 1.238 0 0 1-.092.233c-.04.076-.09.154-.15.234-.057.08-.122.162-.194.248l-.325.463h.851Z"}),React.createElement("path",{fill:"#718491",d:"M10.301 53.76h102.9v8.96h-102.9z"}),React.createElement("path",{stroke:"#718491",d:"M10.301 53.76h102.9v8.96h-102.9z"}),React.createElement("path",{fill:"#fff",d:"M17.3 58.24a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H18a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.671 59.053a.472.472 0 0 1-.514-.043l-1.637-1.365a.302.302 0 0 1 0-.482.47.47 0 0 1 .579 0l1.348 1.123 1.346-1.123a.47.47 0 0 1 .58 0 .303.303 0 0 1 0 .482l-1.638 1.365-.064.043Z"})),React.createElement("path",{fill:"#32383C",d:"M6.8 54.61h7v7h-7z"}),React.createElement("path",{fill:"#fff",d:"M10.037 57.89h.234c.06 0 .109-.013.147-.04a.246.246 0 0 0 .086-.12.557.557 0 0 0 .002-.345.24.24 0 0 0-.079-.113.206.206 0 0 0-.133-.043.224.224 0 0 0-.2.13.34.34 0 0 0-.031.15h-.48c0-.136.03-.255.092-.357a.646.646 0 0 1 .253-.236.731.731 0 0 1 .352-.085c.145 0 .272.027.381.08a.59.59 0 0 1 .257.24.76.76 0 0 1 .047.62.62.62 0 0 1-.338.338.718.718 0 0 1-.279.052h-.31v-.27Zm0 .389v-.262h.311c.118 0 .22.015.306.046a.551.551 0 0 1 .345.334.748.748 0 0 1 .043.26c0 .116-.02.22-.058.31a.646.646 0 0 1-.162.231.722.722 0 0 1-.243.144.915.915 0 0 1-.566.005.676.676 0 0 1-.23-.132.628.628 0 0 1-.163-.224.784.784 0 0 1-.06-.32h.48c0 .062.01.117.032.166a.29.29 0 0 0 .09.113c.038.027.08.041.128.041a.248.248 0 0 0 .24-.162.453.453 0 0 0 .032-.178.554.554 0 0 0-.034-.214.238.238 0 0 0-.1-.12.298.298 0 0 0-.157-.038h-.234Z"}),React.createElement("path",{fill:"#718491",d:"M10.301 66.92h102.9v8.96h-102.9z"}),React.createElement("path",{stroke:"#718491",d:"M10.301 66.92h102.9v8.96h-102.9z"}),React.createElement("path",{fill:"#fff",d:"M17.3 71.4a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H18a.7.7 0 0 1-.7-.7Z"}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M107.671 72.213a.472.472 0 0 1-.514-.043l-1.637-1.365a.302.302 0 0 1 0-.482.47.47 0 0 1 .579 0l1.348 1.124 1.346-1.124a.471.471 0 0 1 .58 0 .303.303 0 0 1 0 .482l-1.638 1.365-.064.043Z"})),React.createElement("path",{fill:"#32383C",d:"M6.8 67.77h7v7h-7z"}),React.createElement("path",{fill:"#fff",d:"M11.07 71.578v.398H9.553l-.023-.312.846-1.638h.38l-.388.728-.37.824h1.074Zm-.211-1.552v2.489h-.48v-2.489h.48Z"}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M105.5 10.43h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M105.5 42.98h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M105.5 56.14h4.2v4.2h-4.2z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M105.5 69.3h4.2v4.2h-4.2z"}))))},onlyPro:!0},{label:"Template Six",value:"vertical-six",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,fill:"#fff",rx:2.275}),React.createElement("rect",{width:118.95,height:82.95,x:.525,y:.525,stroke:"#9EA9B2",strokeWidth:1.05,rx:2.275}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M6.8 7.7h106.401v28.7H6.801V7.7Z"}),React.createElement("path",{fill:"#718491",d:"M113.201 7.7v28.7H6.801V7.7h106.4Zm-105.7 28h105V8.4h-105v27.3Z"}),React.createElement("path",{fill:"#718491",d:"M7 7.7h106.4v8.4H7z"}),React.createElement("path",{stroke:"#718491",d:"M7 7.7h106.4v8.4H7z"}),React.createElement("path",{fill:"#32383C",d:"M7 7.7h5.815l2.585 4.2-2.585 4.2H7V7.7Z"}),React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:.42,d:"M9.8 11.9h2.1"}),React.createElement("path",{fill:"#fff",d:"M18.2 11.9a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H18.9a.7.7 0 0 1-.7-.7Z"}),React.createElement("path",{fill:"#718491",d:"M11.2 20.982c0-.376.309-.682.691-.682h96.616c.382 0 .692.306.692.682v.036c0 .377-.31.682-.692.682H11.891a.687.687 0 0 1-.692-.682v-.036ZM11.2 24.482c0-.376.305-.682.681-.682h94.536c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H11.881a.682.682 0 0 1-.682-.682v-.036ZM11.2 27.982c0-.376.309-.682.691-.682h96.616c.382 0 .692.306.692.682v.036c0 .377-.31.682-.692.682H11.891a.687.687 0 0 1-.692-.682v-.036ZM11.2 31.482c0-.376.305-.682.681-.682h29.436c.377 0 .682.306.682.682v.036a.682.682 0 0 1-.682.682H11.881a.682.682 0 0 1-.682-.682v-.036Z"})),React.createElement("path",{fill:"#718491",d:"M7 40.6h106.4v9.1H7z"}),React.createElement("path",{stroke:"#718491",d:"M7 40.6h106.4v9.1H7z"}),React.createElement("path",{fill:"#32383C",d:"M7 40.6h6.3l2.8 4.55-2.8 4.55H7v-9.1Z"}),React.createElement("path",{fill:"#fff",d:"M11.173 43.75a.21.21 0 0 1 .21.21v.837h.925a.21.21 0 0 1 0 .42h-.925v.843a.21.21 0 0 1-.42 0v-.843h-.93a.21.21 0 0 1 0-.42h.93v-.837a.21.21 0 0 1 .21-.21ZM18.9 45.15a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H19.6a.7.7 0 0 1-.7-.7Z"}),React.createElement("path",{fill:"#718491",d:"M7 53.9h106.4V63H7z"}),React.createElement("path",{stroke:"#718491",d:"M7 53.9h106.4V63H7z"}),React.createElement("path",{fill:"#32383C",d:"M7 53.9h6.3l2.8 4.55L13.3 63H7v-9.1Z"}),React.createElement("path",{fill:"#fff",d:"M11.173 57.05a.21.21 0 0 1 .21.21v.837h.925a.21.21 0 0 1 0 .42h-.925v.843a.21.21 0 0 1-.42 0v-.843h-.93a.21.21 0 0 1 0-.42h.93v-.837a.21.21 0 0 1 .21-.21ZM18.9 58.45a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H19.6a.7.7 0 0 1-.7-.7Z"}),React.createElement("path",{fill:"#718491",d:"M7 67.2h106.4v9.1H7z"}),React.createElement("path",{stroke:"#718491",d:"M7 67.2h106.4v9.1H7z"}),React.createElement("path",{fill:"#32383C",d:"M7 67.2h6.3l2.8 4.55-2.8 4.55H7v-9.1Z"}),React.createElement("path",{fill:"#fff",d:"M11.173 70.35a.21.21 0 0 1 .21.21v.837h.925a.21.21 0 0 1 0 .42h-.925v.843a.21.21 0 0 1-.42 0v-.843h-.93a.21.21 0 0 1 0-.42h.93v-.837a.21.21 0 0 1 .21-.21ZM18.9 71.75a.7.7 0 0 1 .7-.7h67.9a.7.7 0 1 1 0 1.4H19.6a.7.7 0 0 1-.7-.7Z"}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M7 7.7h106.4v28.7H7z"}))))},onlyPro:!0}],"horizontal-accordion":[{label:"Template One",value:"horizontal-one",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.953,height:82.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:82.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("rect",{width:69.07,height:57.907,x:7.325,y:76.535,fill:"#fff",stroke:"#718491",strokeWidth:.698,rx:1.047,transform:"rotate(-90 7.325 76.535)"}),React.createElement("path",{fill:"#718491",d:"M6.977 8.511c0-.77.624-1.395 1.395-1.395h6.977v69.767H8.372c-.77 0-1.395-.624-1.395-1.395V8.511Z"}),React.createElement("path",{stroke:"#718491",d:"M6.977 8.511c0-.77.624-1.395 1.395-1.395h6.977v69.767H8.372c-.77 0-1.395-.624-1.395-1.395V8.511Z"}),React.createElement("rect",{width:46.744,height:1.395,x:10.465,y:73.395,fill:"#fff",rx:.698,transform:"rotate(-90 10.465 73.395)"}),React.createElement("g",{clipPath:"url(#a)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m11.695 11.485-1.36 1.359 1.36 1.36"})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:58.744,rx:.68}),React.createElement("rect",{width:41.163,height:1.395,x:19.535,y:62.232,rx:.68}),React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:65.721,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:19.535,y:69.209,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:44.791,rx:.68}),React.createElement("rect",{width:41.163,height:1.395,x:19.535,y:48.279,rx:.68}),React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:51.767,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:27.349,rx:.68}),React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:30.837,rx:.68}),React.createElement("rect",{width:41.163,height:1.395,x:19.535,y:34.325,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:19.535,y:37.814,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:13.395,rx:.68}),React.createElement("rect",{width:41.861,height:1.395,x:19.535,y:16.884,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:19.535,y:20.372,rx:.68})),React.createElement("rect",{width:69.767,height:8.372,x:69.069,y:76.883,fill:"#718491",rx:1.395,transform:"rotate(-90 69.07 76.883)"}),React.createElement("rect",{width:69.767,height:8.372,x:69.069,y:76.883,stroke:"#718491",rx:1.395,transform:"rotate(-90 69.07 76.883)"}),React.createElement("rect",{width:50.233,height:1.395,x:72.558,y:73.395,fill:"#fff",rx:.698,transform:"rotate(-90 72.558 73.395)"}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m72.428 14.204 1.36-1.36-1.36-1.36"})),React.createElement("rect",{width:69.767,height:8.372,x:80.93,y:76.883,fill:"#718491",rx:1.395,transform:"rotate(-90 80.93 76.883)"}),React.createElement("rect",{width:69.767,height:8.372,x:80.93,y:76.883,stroke:"#718491",rx:1.395,transform:"rotate(-90 80.93 76.883)"}),React.createElement("rect",{width:41.163,height:1.395,x:84.418,y:73.395,fill:"#fff",rx:.698,transform:"rotate(-90 84.418 73.395)"}),React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m84.289 11.485 1.36 1.359-1.36 1.36"})),React.createElement("rect",{width:69.767,height:8.372,x:92.79,y:76.883,fill:"#718491",rx:1.395,transform:"rotate(-90 92.79 76.883)"}),React.createElement("rect",{width:69.767,height:8.372,x:92.79,y:76.883,stroke:"#718491",rx:1.395,transform:"rotate(-90 92.79 76.883)"}),React.createElement("rect",{width:52.326,height:1.395,x:96.278,y:73.395,fill:"#fff",rx:.698,transform:"rotate(-90 96.278 73.395)"}),React.createElement("g",{clipPath:"url(#d)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m96.15 11.485 1.359 1.359-1.36 1.36"})),React.createElement("rect",{width:69.767,height:8.372,x:104.651,y:76.883,fill:"#718491",rx:1.395,transform:"rotate(-90 104.651 76.883)"}),React.createElement("rect",{width:69.767,height:8.372,x:104.651,y:76.883,stroke:"#718491",rx:1.395,transform:"rotate(-90 104.651 76.883)"}),React.createElement("rect",{width:47.442,height:1.395,x:108.14,y:73.395,fill:"#fff",rx:.698,transform:"rotate(-90 108.14 73.395)"}),React.createElement("g",{clipPath:"url(#e)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m108.011 11.485 1.359 1.359-1.359 1.36"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M9.07 14.79v-4.185h4.185v4.185z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M71.162 14.79v-4.185h4.186v4.185z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M83.022 14.79v-4.185h4.186v4.185z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M94.883 14.79v-4.185h4.186v4.185z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M106.744 14.79v-4.185h4.186v4.185z"}))))}},{label:"Template Two",value:"horizontal-two",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:84,fill:"none",viewBox:"0 0 120 84"},React.createElement("rect",{width:118.953,height:82.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:82.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("rect",{width:69.07,height:60,x:8.024,y:76.535,fill:"#fff",stroke:"#718491",strokeWidth:.698,rx:1.047,transform:"rotate(-90 8.024 76.535)"}),React.createElement("path",{fill:"#718491",d:"M7.675 8.511c0-.77.625-1.395 1.395-1.395h10.465v69.767H9.07c-.77 0-1.395-.624-1.395-1.395V8.511Z"}),React.createElement("path",{stroke:"#718491",d:"M7.675 8.511c0-.77.625-1.395 1.395-1.395h10.465v69.767H9.07c-.77 0-1.395-.624-1.395-1.395V8.511Z"}),React.createElement("rect",{width:6.977,height:6.977,x:10.116,y:66.418,fill:"#fff",rx:.698}),React.createElement("path",{fill:"#32383C",d:"M13.943 68.329v2.485h-.478v-1.9l-.474.183v-.399l.9-.37h.052Z"}),React.createElement("rect",{width:40.465,height:1.395,x:12.907,y:63.628,fill:"#fff",rx:.698,transform:"rotate(-90 12.907 63.628)"}),React.createElement("g",{clipPath:"url(#a)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m14.138 11.485-1.36 1.359 1.36 1.36"})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:39.767,height:1.395,x:23.373,y:58.744,rx:.68}),React.createElement("rect",{width:40.465,height:1.395,x:23.373,y:62.232,rx:.68}),React.createElement("rect",{width:39.767,height:1.395,x:23.373,y:65.721,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:23.373,y:69.209,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:40.465,height:1.395,x:23.373,y:44.791,rx:.68}),React.createElement("rect",{width:39.767,height:1.395,x:23.373,y:48.279,rx:.68}),React.createElement("rect",{width:40.465,height:1.395,x:23.373,y:51.767,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:40.465,height:1.395,x:23.373,y:27.349,rx:.68}),React.createElement("rect",{width:39.767,height:1.395,x:23.373,y:30.837,rx:.68}),React.createElement("rect",{width:40.465,height:1.395,x:23.373,y:34.325,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:23.373,y:37.814,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:39.07,height:1.395,x:23.373,y:13.395,rx:.68}),React.createElement("rect",{width:39.07,height:1.395,x:23.373,y:16.884,rx:.68}),React.createElement("rect",{width:23.721,height:1.395,x:23.373,y:20.372,rx:.68})),React.createElement("rect",{width:69.767,height:11.163,x:71.861,y:76.883,fill:"#718491",rx:1.395,transform:"rotate(-90 71.861 76.883)"}),React.createElement("rect",{width:69.767,height:11.163,x:71.861,y:76.883,stroke:"#718491",rx:1.395,transform:"rotate(-90 71.861 76.883)"}),React.createElement("rect",{width:6.977,height:6.977,x:73.954,y:66.418,fill:"#fff",rx:.698}),React.createElement("path",{fill:"#32383C",d:"M78.183 70.417v.397h-1.461v-.34l.67-.853a2.01 2.01 0 0 0 .152-.235c.037-.068.063-.129.079-.182a.61.61 0 0 0-.002-.342.257.257 0 0 0-.077-.123.177.177 0 0 0-.122-.044.205.205 0 0 0-.147.054.334.334 0 0 0-.087.15.765.765 0 0 0-.027.213h-.478c0-.147.03-.283.09-.407a.735.735 0 0 1 .257-.296.707.707 0 0 1 .4-.111c.151 0 .278.028.382.085a.55.55 0 0 1 .233.244c.054.104.08.23.08.376a.9.9 0 0 1-.032.24 1.227 1.227 0 0 1-.092.232c-.04.076-.09.154-.148.233-.058.08-.123.162-.194.247l-.324.462h.848Z"}),React.createElement("rect",{width:40.465,height:1.395,x:76.745,y:63.628,fill:"#fff",rx:.698,transform:"rotate(-90 76.745 63.628)"}),React.createElement("g",{clipPath:"url(#b)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m77.976 11.485-1.36 1.359 1.36 1.36"})),React.createElement("rect",{width:69.767,height:11.163,x:86.512,y:76.883,fill:"#718491",rx:1.395,transform:"rotate(-90 86.512 76.883)"}),React.createElement("rect",{width:69.767,height:11.163,x:86.512,y:76.883,stroke:"#718491",rx:1.395,transform:"rotate(-90 86.512 76.883)"}),React.createElement("rect",{width:6.977,height:6.977,x:88.605,y:66.418,fill:"#fff",rx:.698}),React.createElement("path",{fill:"#32383C",d:"M91.801 69.354h.234a.248.248 0 0 0 .146-.04.245.245 0 0 0 .085-.12.557.557 0 0 0 .002-.344.24.24 0 0 0-.078-.113.205.205 0 0 0-.133-.042.221.221 0 0 0-.2.13.338.338 0 0 0-.03.15h-.479c0-.137.03-.256.092-.357a.644.644 0 0 1 .252-.235.729.729 0 0 1 .351-.085c.144 0 .271.027.38.08a.59.59 0 0 1 .256.239.756.756 0 0 1 .047.618.62.62 0 0 1-.337.337.715.715 0 0 1-.278.051h-.31v-.269Zm0 .387v-.261h.31c.117 0 .219.015.305.046a.55.55 0 0 1 .344.332.746.746 0 0 1 .043.26c0 .115-.02.218-.058.31a.644.644 0 0 1-.162.229.718.718 0 0 1-.242.143.912.912 0 0 1-.563.005.671.671 0 0 1-.23-.131.625.625 0 0 1-.162-.223.782.782 0 0 1-.06-.319h.477c0 .062.01.117.032.166a.288.288 0 0 0 .09.112.247.247 0 0 0 .366-.12.452.452 0 0 0 .033-.178.553.553 0 0 0-.034-.213.237.237 0 0 0-.099-.12.297.297 0 0 0-.156-.038H91.8Z"}),React.createElement("rect",{width:43.256,height:1.395,x:91.395,y:63.628,fill:"#fff",rx:.698,transform:"rotate(-90 91.395 63.628)"}),React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m92.626 11.485-1.36 1.359 1.36 1.36"})),React.createElement("rect",{width:69.767,height:11.163,x:101.163,y:76.883,fill:"#718491",rx:1.395,transform:"rotate(-90 101.163 76.883)"}),React.createElement("rect",{width:69.767,height:11.163,x:101.163,y:76.883,stroke:"#718491",rx:1.395,transform:"rotate(-90 101.163 76.883)"}),React.createElement("rect",{width:6.977,height:6.977,x:103.256,y:66.418,fill:"#fff",rx:.698}),React.createElement("path",{fill:"#32383C",d:"M107.505 69.88v.397h-1.514l-.022-.311.843-1.632h.378l-.386.725-.368.821h1.069Zm-.211-1.546v2.48h-.478v-2.48h.478Z"}),React.createElement("rect",{width:39.767,height:1.395,x:106.047,y:63.628,fill:"#fff",rx:.698,transform:"rotate(-90 106.047 63.628)"}),React.createElement("g",{clipPath:"url(#d)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m107.278 11.485-1.36 1.359 1.36 1.36"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M11.512 14.79v-4.185h4.186v4.185z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M75.35 14.79v-4.185h4.186v4.185z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M90 14.79v-4.185h4.186v4.185z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M104.651 14.79v-4.185h4.186v4.185z"}))))},onlyPro:!0}],"image-accordion":[{label:"Template One",value:"image-accordion-one",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M6.977 4.186h106.047V39.07H6.977z"}),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:106.047,height:34.884,x:6.977,y:4.186,rx:.689})),React.createElement("rect",{width:106.047,height:34.884,x:6.977,y:4.186,fill:"#fff",stroke:"#718491",strokeWidth:2.31,mask:"url(#c)",rx:.689}),React.createElement("path",{fill:"#718491",d:"M26.748 29.966c-9.347.95-17.075-1.978-19.771-3.56v11.286c0 .76.616 1.377 1.377 1.377h103.292c.76 0 1.377-.616 1.377-1.377v-7.726c-20.67 2.768-27.86-3.56-40.441-8.7-12.582-5.142-34.151 7.513-45.834 8.7Z"}),React.createElement("circle",{cx:26.438,cy:15.846,r:4.137,fill:"#718491"}),React.createElement("path",{fill:"#000",d:"M6.977 4.186h106.047V39.07H6.977z",opacity:.6})),React.createElement("g",null,React.createElement("g",{fill:"#fff",opacity:.9},React.createElement("rect",{width:3.464,height:3.464,x:58.244,y:11.19,rx:.563}),React.createElement("rect",{width:41.861,height:2.093,x:39.047,y:16.386,rx:1.047}),React.createElement("rect",{width:16.167,height:1.155,x:51.895,y:20.789,rx:.563}),React.createElement("rect",{width:9.238,height:1.155,x:55.357,y:23.098,rx:.563})),React.createElement("rect",{width:13.857,height:4.619,x:53.049,y:26.563,fill:"#fff",rx:.577}),React.createElement("rect",{width:8.083,height:1.155,x:55.935,y:28.295,fill:"#718491",rx:.577}))),React.createElement("mask",{id:"e",fill:"#fff"},React.createElement("rect",{width:106.047,height:16.744,x:6.977,y:42.558,rx:.335})),React.createElement("rect",{width:106.047,height:16.744,x:6.977,y:42.558,fill:"#D8DADB",stroke:"#718491",strokeWidth:1.339,rx:.335}),React.createElement("path",{fill:"#718491",d:"M26.748 55.303c-9.347.417-17.075-2.98-19.771-3.675v7.005c0 .37.3.67.67.67h104.706c.37 0 .67-.3.67-.67v-5.61c-22.093.463-22.66-4.027-43.953-5.232-20.8-1.176-30.639 6.991-42.322 7.512Z"}),React.createElement("ellipse",{cx:27.552,cy:48.327,fill:"#718491",rx:2.864,ry:2.838}),React.createElement("mask",{id:"f",fill:"#fff"},React.createElement("rect",{width:106.047,height:16.744,x:6.977,y:62.791,rx:.335})),React.createElement("rect",{width:106.047,height:16.744,x:6.977,y:62.791,fill:"#D8DADB",stroke:"#718491",strokeWidth:1.339,rx:.335}),React.createElement("path",{fill:"#718491",d:"M26.748 75.536c-9.347.417-17.075-2.98-19.771-3.675v7.004c0 .37.3.67.67.67h104.706c.37 0 .67-.3.67-.67v-5.61c-22.093.464-22.66-4.027-43.953-5.231-20.8-1.177-30.639 6.99-42.322 7.512Z"}),React.createElement("ellipse",{cx:27.552,cy:68.56,fill:"#718491",rx:2.864,ry:2.838}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("rect",{width:106.047,height:34.884,x:6.977,y:4.186,fill:"#fff",rx:1.155})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M6.977 4.186h106.047V39.07H6.977z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M39.047 11.19h41.86v19.992h-41.86z"}))))}},{label:"Template Two",value:"image-accordion-two",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M6.977 4.186h106.047V39.07H6.977z"}),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:106.047,height:34.883,x:6.977,y:4.186,rx:.689})),React.createElement("rect",{width:106.047,height:34.883,x:6.977,y:4.186,fill:"#fff",stroke:"#718491",strokeWidth:2.31,rx:.689}),React.createElement("path",{fill:"#718491",d:"M26.748 29.966c-9.347.95-17.075-1.977-19.771-3.56v11.286c0 .761.616 1.378 1.377 1.378h103.292c.76 0 1.377-.617 1.377-1.378v-7.726c-20.67 2.769-27.86-3.56-40.441-8.7C60 16.124 38.43 28.78 26.748 29.966Z"}),React.createElement("circle",{cx:26.436,cy:15.846,r:4.137,fill:"#718491"}),React.createElement("rect",{width:78.139,height:25.116,x:20.906,y:8.628,fill:"#000",opacity:.6,rx:.698})),React.createElement("g",null,React.createElement("g",{fill:"#fff",opacity:.9},React.createElement("rect",{width:3.464,height:3.464,x:58.244,y:11.539,rx:.563}),React.createElement("rect",{width:41.861,height:1.395,x:39.047,y:16.735,rx:.698}),React.createElement("rect",{width:16.167,height:1.155,x:51.895,y:20.44,rx:.563}),React.createElement("rect",{width:9.238,height:1.155,x:55.357,y:22.75,rx:.563})),React.createElement("rect",{width:13.857,height:4.619,x:53.049,y:26.214,fill:"#fff",rx:.577}),React.createElement("rect",{width:8.083,height:1.155,x:55.935,y:27.946,fill:"#718491",rx:.577}))),React.createElement("rect",{width:105.377,height:16.074,x:7.311,y:42.893,fill:"#D8DADB",stroke:"#718491",strokeWidth:.67,rx:.363}),React.createElement("path",{fill:"#718491",d:"M26.748 55.303c-8.492.379-15.65-2.391-18.909-3.422a.665.665 0 0 0-.862.647v6.077c0 .385.312.697.697.697h104.651a.698.698 0 0 0 .698-.697v-4.87a.712.712 0 0 0-.726-.698c-21.382.35-22.17-4.055-43.227-5.246-20.8-1.176-30.639 6.99-42.322 7.512Z"}),React.createElement("ellipse",{cx:27.552,cy:48.327,fill:"#718491",rx:2.864,ry:2.838}),React.createElement("path",{fill:"#000",fillOpacity:.62,d:"M6.977 54.419H41.86V60H7.674a.698.698 0 0 1-.697-.698V54.42Z"}),React.createElement("rect",{width:27.907,height:1.395,x:10.465,y:56.512,fill:"#fff",opacity:.9,rx:.698}),React.createElement("rect",{width:105.377,height:16.074,x:7.311,y:63.125,fill:"#D8DADB",stroke:"#718491",strokeWidth:.67,rx:.363}),React.createElement("path",{fill:"#718491",d:"M26.748 75.535c-8.492.38-15.65-2.39-18.909-3.421a.665.665 0 0 0-.862.647v6.076c0 .385.312.698.697.698h104.651a.698.698 0 0 0 .698-.698v-4.869a.712.712 0 0 0-.726-.699c-21.382.35-22.17-4.054-43.227-5.246-20.8-1.176-30.639 6.991-42.322 7.513Z"}),React.createElement("ellipse",{cx:27.552,cy:68.559,fill:"#718491",rx:2.864,ry:2.838}),React.createElement("path",{fill:"#000",fillOpacity:.62,d:"M6.977 74.651H41.86v5.582H7.674a.698.698 0 0 1-.697-.698V74.65Z"}),React.createElement("rect",{width:27.907,height:1.395,x:10.465,y:76.744,fill:"#fff",opacity:.9,rx:.698}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("rect",{width:106.047,height:34.884,x:6.977,y:4.186,fill:"#fff",rx:1.155})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M6.977 4.186h106.047V39.07H6.977z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M39.047 11.54h41.86v19.293h-41.86z"}))))},onlyPro:!0},{label:"Template Three",value:"image-accordion-three",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.875,height:88.875,x:.563,y:.563,fill:"#fff",rx:2.438}),React.createElement("rect",{width:118.875,height:88.875,x:.563,y:.563,stroke:"#9EA9B2",strokeWidth:1.125,rx:2.438}),React.createElement("path",{fill:"#fff",d:"M35.582 24.145c0-.494.373-.895.832-.895h47.173c.46 0 .832.4.832.895v41.71c0 .494-.372.895-.832.895H36.414c-.46 0-.832-.4-.832-.895v-41.71Z"}),React.createElement("path",{fill:"#718491",d:"M36.977 65.25h46.047v-40.5H36.977v40.5Zm47.442.605c0 .463-.327.844-.746.89l-.086.004H36.414c-.46 0-.832-.4-.832-.894v-41.71c0-.494.373-.895.832-.895h47.173l.085.004c.42.046.747.427.747.89v41.711Z"}),React.createElement("path",{fill:"#718491",d:"M44.687 55.398c-4.304 1.184-7.863-2.466-9.105-4.439v14.002c0 .988.745 1.79 1.664 1.79h45.509c.92 0 1.664-.802 1.664-1.79v-9.563c-9.519 3.452-12.83-4.439-18.624-10.85-5.794-6.411-15.727 9.37-21.108 10.85ZM49.673 40.057c0 2.569-1.936 4.65-4.326 4.65-2.389 0-4.325-2.081-4.325-4.65 0-2.568 1.936-4.65 4.325-4.65 2.39 0 4.326 2.082 4.326 4.65Z"}),React.createElement("rect",{width:48.837,height:43.5,x:35.582,y:23.25,fill:"#000",opacity:.6,rx:.75}),React.createElement("path",{fill:"#fff",d:"M57.906 32.98c0-.403.305-.73.68-.73h2.827c.375 0 .68.327.68.73v3.04c0 .403-.305.73-.68.73h-2.827c-.375 0-.68-.327-.68-.73v-3.04ZM44.65 40.125c0-.621.469-1.125 1.047-1.125h28.605c.577 0 1.046.504 1.046 1.125s-.469 1.125-1.046 1.125H45.697c-.578 0-1.047-.504-1.047-1.125ZM50.232 44.98c0-.403.304-.73.68-.73h18.175c.375 0 .68.327.68.73v.04c0 .403-.305.73-.68.73H50.912c-.376 0-.68-.327-.68-.73v-.04ZM54.418 47.98c0-.403.304-.73.68-.73H64.9c.375 0 .68.327.68.73v.04c0 .403-.305.73-.68.73h-9.803c-.376 0-.68-.327-.68-.73v-.04ZM51.627 52.5c0-.414.313-.75.698-.75h15.349c.385 0 .697.336.697.75V57c0 .414-.312.75-.697.75h-15.35c-.384 0-.697-.336-.697-.75v-4.5Z"}),React.createElement("path",{fill:"#718491",d:"M55.115 54.75c0-.414.313-.75.698-.75h8.372c.386 0 .698.336.698.75s-.312.75-.698.75h-8.372c-.385 0-.698-.336-.698-.75Z"}),React.createElement("path",{fill:"#D8DADB",d:"M87.906 24.12c0-.48.362-.87.81-.87h23.497c.447 0 .81.39.81.87v41.76c0 .48-.363.87-.81.87H88.715c-.447 0-.809-.39-.809-.87V24.12Z"}),React.createElement("path",{fill:"#718491",d:"M89.524 65.01h21.88V24.99h-21.88v40.02Zm23.499.87c0 .48-.363.87-.81.87H88.716l-.084-.004c-.407-.045-.726-.416-.726-.866V24.12c0-.45.319-.821.726-.866l.084-.004h23.497c.447 0 .81.39.81.87v41.76Z"}),React.createElement("path",{fill:"#718491",d:"M92.589 56.173c-2.214 1.061-4.044-2.211-4.683-3.98v12.418c0 .961.725 1.74 1.619 1.74h21.879c.894 0 1.619-.779 1.619-1.74v-8.438c-5.233 1.178-4.695-6.2-9.579-9.728-4.724-3.413-8.088 8.401-10.855 9.728ZM97.115 38.796c0 1.723-1.311 3.12-2.929 3.12-1.617 0-2.928-1.397-2.928-3.12 0-1.722 1.311-3.119 2.928-3.119 1.618 0 2.929 1.397 2.929 3.12Z"}),React.createElement("path",{fill:"#D8DADB",d:"M6.977 24.12c0-.48.362-.87.809-.87h23.498c.447 0 .809.39.809.87v41.76c0 .48-.362.87-.81.87H7.787c-.447 0-.81-.39-.81-.87V24.12Z"}),React.createElement("path",{fill:"#718491",d:"M8.595 65.01h21.88V24.99H8.595v40.02Zm23.498.87c0 .48-.363.87-.81.87H7.786l-.083-.004c-.408-.045-.726-.416-.726-.866V24.12c0-.45.318-.821.726-.866l.083-.004h23.497c.447 0 .81.39.81.87v41.76Z"}),React.createElement("path",{fill:"#718491",d:"M11.66 56.173c-2.214 1.061-4.045-2.211-4.683-3.98v12.418c0 .961.724 1.74 1.618 1.74h21.88c.893 0 1.618-.779 1.618-1.74v-8.438c-5.233 1.178-4.695-6.2-9.578-9.728-4.724-3.413-8.089 8.401-10.856 9.728ZM16.185 38.796c0 1.723-1.311 3.12-2.928 3.12s-2.929-1.397-2.929-3.12c0-1.722 1.312-3.119 2.929-3.119 1.617 0 2.928 1.397 2.928 3.12Z"}))},onlyPro:!0},{label:"Template Four",value:"image-accordion-four",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.875,height:88.875,x:.563,y:.563,fill:"#fff",rx:2.438}),React.createElement("rect",{width:118.875,height:88.875,x:.563,y:.563,stroke:"#9EA9B2",strokeWidth:1.125,rx:2.438}),React.createElement("path",{fill:"#D8DADB",d:"M35.582 24.145c0-.494.373-.895.832-.895h47.173c.46 0 .832.4.832.895v41.71c0 .494-.372.895-.832.895H36.414c-.46 0-.832-.4-.832-.895v-41.71Z"}),React.createElement("path",{fill:"#718491",d:"M36.977 65.25h46.047v-40.5H36.977v40.5Zm47.442.605c0 .463-.327.844-.746.89l-.086.004H36.414c-.46 0-.832-.4-.832-.894v-41.71c0-.494.373-.895.832-.895h47.173l.085.004c.42.046.747.427.747.89v41.711Z"}),React.createElement("path",{fill:"#718491",d:"M44.687 55.398c-4.304 1.184-7.863-2.466-9.105-4.439v14.002c0 .988.745 1.79 1.664 1.79h45.509c.92 0 1.664-.802 1.664-1.79v-9.563c-9.519 3.452-12.83-4.439-18.624-10.85-5.794-6.411-15.727 9.37-21.108 10.85ZM49.673 40.057c0 2.569-1.936 4.65-4.326 4.65-2.389 0-4.325-2.081-4.325-4.65 0-2.568 1.936-4.65 4.325-4.65 2.39 0 4.326 2.082 4.326 4.65Z"}),React.createElement("path",{fill:"#000",fillOpacity:.62,d:"M41.861 30.75a1.5 1.5 0 0 1 1.5-1.5h33.28a1.5 1.5 0 0 1 1.5 1.5v28.5a1.5 1.5 0 0 1-1.5 1.5H43.36a1.5 1.5 0 0 1-1.5-1.5v-28.5Z"}),React.createElement("path",{fill:"#fff",d:"M57.906 32.98c0-.403.305-.73.68-.73h2.827c.375 0 .68.327.68.73v3.04c0 .403-.305.73-.68.73h-2.827c-.375 0-.68-.327-.68-.73v-3.04ZM44.65 40.125c0-.621.469-1.125 1.047-1.125h28.605c.577 0 1.046.504 1.046 1.125s-.469 1.125-1.046 1.125H45.697c-.578 0-1.047-.504-1.047-1.125ZM50.232 44.98c0-.403.304-.73.68-.73h18.175c.375 0 .68.327.68.73v.04c0 .403-.305.73-.68.73H50.912c-.376 0-.68-.327-.68-.73v-.04ZM54.418 47.98c0-.403.304-.73.68-.73H64.9c.375 0 .68.327.68.73v.04c0 .403-.305.73-.68.73h-9.803c-.376 0-.68-.327-.68-.73v-.04ZM51.627 52.5c0-.414.313-.75.698-.75h15.349c.385 0 .697.336.697.75V57c0 .414-.312.75-.697.75h-15.35c-.384 0-.697-.336-.697-.75v-4.5Z"}),React.createElement("path",{fill:"#718491",d:"M55.115 54.75c0-.414.313-.75.698-.75h8.372c.386 0 .698.336.698.75s-.312.75-.698.75h-8.372c-.385 0-.698-.336-.698-.75Z"}),React.createElement("path",{fill:"#D8DADB",d:"M87.906 24.12c0-.48.362-.87.81-.87h23.497c.447 0 .81.39.81.87v41.76c0 .48-.363.87-.81.87H88.715c-.447 0-.809-.39-.809-.87V24.12Z"}),React.createElement("path",{fill:"#718491",d:"M89.524 65.01h21.88V24.99h-21.88v40.02Zm23.499.87c0 .48-.363.87-.81.87H88.716l-.084-.004c-.407-.045-.726-.416-.726-.866V24.12c0-.45.319-.821.726-.866l.084-.004h23.497c.447 0 .81.39.81.87v41.76Z"}),React.createElement("path",{fill:"#718491",d:"M92.589 56.173c-2.214 1.061-4.044-2.211-4.683-3.98v12.418c0 .961.725 1.74 1.619 1.74h21.879c.894 0 1.619-.779 1.619-1.74v-8.438c-5.233 1.178-4.695-6.2-9.579-9.728-4.724-3.413-8.088 8.401-10.855 9.728ZM97.115 38.796c0 1.723-1.311 3.12-2.929 3.12-1.617 0-2.928-1.397-2.928-3.12 0-1.722 1.311-3.119 2.928-3.119 1.618 0 2.929 1.397 2.929 3.12Z"}),React.createElement("path",{fill:"#000",fillOpacity:.62,d:"M105.35 66.75V43.5h7.674v23.25h-7.674Z"}),React.createElement("rect",{width:15.75,height:2.093,x:108.139,y:63,fill:"#fff",rx:1.047,transform:"rotate(-90 108.139 63)"}),React.createElement("path",{fill:"#D8DADB",d:"M6.977 24.12c0-.48.362-.87.809-.87h23.498c.447 0 .809.39.809.87v41.76c0 .48-.362.87-.81.87H7.787c-.447 0-.81-.39-.81-.87V24.12Z"}),React.createElement("path",{fill:"#718491",d:"M8.595 65.01h21.88V24.99H8.595v40.02Zm23.498.87c0 .48-.363.87-.81.87H7.786l-.083-.004c-.408-.045-.726-.416-.726-.866V24.12c0-.45.318-.821.726-.866l.083-.004h23.497c.447 0 .81.39.81.87v41.76Z"}),React.createElement("path",{fill:"#718491",d:"M11.66 56.173c-2.214 1.061-4.045-2.211-4.683-3.98v12.418c0 .961.724 1.74 1.618 1.74h21.88c.893 0 1.618-.779 1.618-1.74v-8.438c-5.233 1.178-4.695-6.2-9.578-9.728-4.724-3.413-8.089 8.401-10.856 9.728ZM16.185 38.796c0 1.723-1.311 3.12-2.928 3.12s-2.929-1.397-2.929-3.12c0-1.722 1.312-3.119 2.929-3.119 1.617 0 2.928 1.397 2.928 3.12Z"}),React.createElement("path",{fill:"#000",fillOpacity:.62,d:"M24.418 66.75V43.5h7.674v23.25h-7.674Z"}),React.createElement("rect",{width:15.75,height:2.093,x:27.209,y:63,fill:"#fff",rx:1.047,transform:"rotate(-90 27.209 63)"}))},onlyPro:!0}],"accordion-slider":[{label:"Template One",value:"accordion-slider-one",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:172,height:128,fill:"none"},React.createElement("rect",{width:170.5,height:126.5,x:.75,y:.75,fill:"#fff",rx:3.25}),React.createElement("rect",{width:170.5,height:126.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("path",{fill:"#9EA9B2",d:"M77 97a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#444D54",d:"M84 97a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#9EA9B2",d:"M91 97a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M18 35.16c0-.64.52-1.16 1.16-1.16h29.68c.64 0 1.16.52 1.16 1.16v49.68c0 .64-.52 1.16-1.16 1.16H19.16c-.64 0-1.16-.52-1.16-1.16V35.16Z"}),React.createElement("path",{fill:"#718491",d:"M20.32 83.68h27.36V36.32H20.32v47.36ZM50 84.84c0 .64-.52 1.16-1.16 1.16H19.16l-.119-.006A1.16 1.16 0 0 1 18 84.84V35.16c0-.6.456-1.095 1.041-1.154l.12-.006H48.84c.64 0 1.16.52 1.16 1.16v49.68Z"}),React.createElement("path",{fill:"#718491",d:"M23.966 73.356c-2.82 1.268-5.152-2.643-5.966-4.757v14.604a2.32 2.32 0 0 0 2.32 2.32h27.36a2.32 2.32 0 0 0 2.32-2.32v-9.847c-6.667 1.408-5.981-7.411-12.203-11.629-6.02-4.08-10.305 10.043-13.83 11.629ZM29.748 52.583c0 2.05-1.677 3.713-3.747 3.713s-3.747-1.663-3.747-3.713 1.678-3.712 3.747-3.712c2.07 0 3.747 1.662 3.747 3.712Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M53.5 32.193c0-.659.534-1.193 1.193-1.193h62.614c.659 0 1.193.534 1.193 1.193v55.614c0 .658-.534 1.192-1.193 1.192H54.693a1.193 1.193 0 0 1-1.193-1.192V32.193Z"}),React.createElement("path",{fill:"#718491",d:"M55.82 86.68h60.36V33.32H55.82v53.36Zm62.68 1.127c0 .617-.469 1.125-1.07 1.186l-.122.006H54.692a1.192 1.192 0 0 1-1.192-1.192V32.192c0-.658.534-1.192 1.192-1.192h62.616l.122.006c.601.061 1.07.57 1.07 1.186v55.615Z"}),React.createElement("path",{fill:"#718491",d:"M65.619 73.864c-5.73 1.578-10.466-3.288-12.119-5.918v18.669A2.385 2.385 0 0 0 55.886 89h60.229a2.385 2.385 0 0 0 2.385-2.385V73.864c-12.669 4.603-17.076-5.918-24.788-14.466C86 50.849 72.78 71.89 65.619 73.864ZM72.472 53.41a5.975 5.975 0 1 1-11.95 0 5.975 5.975 0 0 1 11.95 0Z"}),React.createElement("rect",{width:57,height:32,x:57.5,y:53,fill:"#000",opacity:.6,rx:1.5}),React.createElement("path",{fill:"#fff",d:"M82.5 58.974c0-.538.436-.974.974-.974h4.052c.538 0 .974.436.974.974v4.052a.974.974 0 0 1-.974.974h-4.052a.974.974 0 0 1-.974-.974v-4.052ZM63.5 68.5A1.5 1.5 0 0 1 65 67h41a1.5 1.5 0 0 1 0 3H65a1.5 1.5 0 0 1-1.5-1.5ZM71.5 74.974c0-.538.436-.974.974-.974h26.052c.538 0 .974.436.974.974v.052a.974.974 0 0 1-.974.974H72.474a.974.974 0 0 1-.974-.974v-.052ZM77.5 78.974c0-.538.436-.974.974-.974h14.052c.538 0 .974.436.974.974v.052a.974.974 0 0 1-.974.974H78.474a.974.974 0 0 1-.974-.974v-.052Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M122 35.16c0-.64.519-1.16 1.16-1.16h29.68c.641 0 1.16.52 1.16 1.16v49.68c0 .64-.519 1.16-1.16 1.16h-29.68a1.16 1.16 0 0 1-1.16-1.16V35.16Z"}),React.createElement("path",{fill:"#718491",d:"M124.319 83.68h27.362V36.32h-27.362v47.36ZM154 84.84c0 .64-.52 1.16-1.16 1.16h-29.68l-.119-.006A1.16 1.16 0 0 1 122 84.84V35.16c0-.6.456-1.095 1.041-1.154l.119-.006h29.68c.64 0 1.16.52 1.16 1.16v49.68Z"}),React.createElement("path",{fill:"#718491",d:"M127.966 73.356c-2.82 1.268-5.152-2.643-5.966-4.757v14.604a2.32 2.32 0 0 0 2.32 2.32h27.36a2.32 2.32 0 0 0 2.32-2.32v-9.847c-6.667 1.408-5.981-7.411-12.203-11.629-6.019-4.08-10.305 10.043-13.831 11.629ZM133.748 52.583c0 2.05-1.677 3.713-3.747 3.713-2.069 0-3.747-1.663-3.747-3.713s1.678-3.712 3.747-3.712c2.07 0 3.747 1.662 3.747 3.712ZM158.006 55.436a.75.75 0 0 1 1.058.07l3.5 4a.75.75 0 0 1 0 .988l-3.5 4a.75.75 0 1 1-1.128-.988L161.003 60l-3.067-3.506a.75.75 0 0 1 .07-1.058ZM13.994 55.436a.75.75 0 0 0-1.058.07l-3.5 4a.75.75 0 0 0 0 .988l3.5 4a.75.75 0 0 0 1.129-.988L10.997 60l3.068-3.506a.75.75 0 0 0-.07-1.058Z"}))}},{label:"Template Two",value:"accordion-slider-two",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:172,height:128,fill:"none"},React.createElement("rect",{width:170.5,height:126.5,x:.75,y:.75,fill:"#fff",rx:3.25}),React.createElement("rect",{width:170.5,height:126.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("path",{fill:"#9EA9B2",d:"M77 97a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#444D54",d:"M84 97a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#9EA9B2",d:"M91 97a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M18 32.193c0-.659.534-1.193 1.193-1.193h63.614c.659 0 1.193.534 1.193 1.193v55.614c0 .658-.534 1.192-1.193 1.192H19.193A1.193 1.193 0 0 1 18 87.807V32.193Z"}),React.createElement("path",{fill:"#718491",d:"M20.32 86.68h61.36V33.32H20.32v53.36ZM84 87.807c0 .617-.47 1.125-1.07 1.186l-.122.006H19.192A1.192 1.192 0 0 1 18 87.807V32.192c0-.658.534-1.192 1.192-1.192h63.616l.122.006c.6.061 1.07.57 1.07 1.186v55.615Z"}),React.createElement("path",{fill:"#718491",d:"M30.305 73.864C24.488 75.442 19.678 70.576 18 67.946v18.669A2.385 2.385 0 0 0 20.386 89h61.229A2.385 2.385 0 0 0 84 86.615v-12.75c-12.864 4.602-17.339-5.919-25.17-14.467C51 50.85 37.576 71.89 30.306 73.864ZM37.286 52.974c0 3.29-2.725 5.956-6.086 5.956-3.362 0-6.087-2.666-6.087-5.956 0-3.29 2.725-5.956 6.087-5.956 3.361 0 6.086 2.667 6.086 5.956Z"}),React.createElement("path",{fill:"#000",fillOpacity:.6,d:"M22 63.5a1.5 1.5 0 0 1 1.5-1.5h55a1.5 1.5 0 0 1 1.5 1.5v20a1.5 1.5 0 0 1-1.5 1.5h-55a1.5 1.5 0 0 1-1.5-1.5v-20Z"}),React.createElement("path",{fill:"#fff",d:"M26 66.974c0-.538.436-.974.974-.974h4.052c.538 0 .974.436.974.974v4.052a.974.974 0 0 1-.974.974h-4.052a.974.974 0 0 1-.974-.974v-4.052ZM26 75.974c0-.538.436-.974.974-.974h48.052c.538 0 .974.436.974.974v.052a.974.974 0 0 1-.974.974H26.974a.974.974 0 0 1-.974-.974v-.052ZM26 79.974c0-.538.436-.974.974-.974h45.052c.538 0 .974.436.974.974v.052a.974.974 0 0 1-.974.974H26.974a.974.974 0 0 1-.974-.974v-.052Z"}),React.createElement("path",{fill:"#000",fillOpacity:.6,d:"M22 36.5a1.5 1.5 0 0 1 1.5-1.5h31a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1-1.5 1.5h-31a1.5 1.5 0 0 1-1.5-1.5v-6Z"}),React.createElement("path",{fill:"#fff",d:"M26 38.974c0-.538.436-.974.974-.974h24.052c.538 0 .974.436.974.974v1.052a.974.974 0 0 1-.974.974H26.974a.974.974 0 0 1-.974-.974v-1.052Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M87 32.16c0-.64.52-1.16 1.16-1.16h29.68c.641 0 1.16.52 1.16 1.16v55.68c0 .64-.519 1.16-1.16 1.16H88.16c-.64 0-1.16-.52-1.16-1.16V32.16Z"}),React.createElement("path",{fill:"#718491",d:"M89.32 86.68h27.361V33.32H89.319v53.36ZM119 87.84c0 .64-.52 1.16-1.16 1.16H88.16l-.119-.006A1.16 1.16 0 0 1 87 87.84V32.16c0-.6.456-1.095 1.041-1.154l.12-.006h29.679c.64 0 1.16.52 1.16 1.16v55.68Z"}),React.createElement("path",{fill:"#718491",d:"M92.966 74.897c-2.82 1.415-5.152-2.948-5.966-5.306v16.557a2.32 2.32 0 0 0 2.32 2.32h27.36a2.32 2.32 0 0 0 2.32-2.32V74.897c-6.667 1.57-5.981-8.266-12.203-12.97-6.019-4.551-10.305 11.201-13.83 12.97ZM98.958 52.921c0 2.166-1.772 3.921-3.957 3.921-2.186 0-3.957-1.755-3.957-3.92C91.044 50.755 92.815 49 95 49c2.185 0 3.957 1.756 3.957 3.921Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M122 32.16c0-.64.519-1.16 1.16-1.16h29.68c.641 0 1.16.52 1.16 1.16v55.68c0 .64-.519 1.16-1.16 1.16h-29.68a1.16 1.16 0 0 1-1.16-1.16V32.16Z"}),React.createElement("path",{fill:"#718491",d:"M124.319 86.68h27.362V33.32h-27.362v53.36ZM154 87.84c0 .64-.52 1.16-1.16 1.16h-29.68l-.119-.006A1.16 1.16 0 0 1 122 87.84V32.16c0-.6.456-1.095 1.041-1.154l.119-.006h29.68c.64 0 1.16.52 1.16 1.16v55.68Z"}),React.createElement("path",{fill:"#718491",d:"M127.966 74.897c-2.82 1.415-5.152-2.948-5.966-5.306v16.557a2.32 2.32 0 0 0 2.32 2.32h27.36a2.32 2.32 0 0 0 2.32-2.32V74.897c-6.667 1.57-5.981-8.266-12.203-12.97-6.019-4.551-10.305 11.201-13.831 12.97ZM133.958 52.921c0 2.166-1.772 3.921-3.957 3.921-2.186 0-3.957-1.755-3.957-3.92 0-2.166 1.771-3.922 3.957-3.922 2.185 0 3.957 1.756 3.957 3.921ZM158.006 55.436a.75.75 0 0 1 1.058.07l3.5 4a.75.75 0 0 1 0 .988l-3.5 4a.75.75 0 1 1-1.128-.988L161.003 60l-3.067-3.506a.75.75 0 0 1 .07-1.058ZM13.994 55.436a.75.75 0 0 0-1.058.07l-3.5 4a.75.75 0 0 0 0 .988l3.5 4a.75.75 0 0 0 1.129-.988L10.997 60l3.068-3.506a.75.75 0 0 0-.07-1.058Z"}))}},{label:"Template Three",value:"accordion-slider-three",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:172,height:128,fill:"none"},React.createElement("rect",{width:170.5,height:126.5,x:.75,y:.75,fill:"#fff",rx:3.25}),React.createElement("rect",{width:170.5,height:126.5,x:.75,y:.75,stroke:"#9EA9B2",strokeWidth:1.5,rx:3.25}),React.createElement("path",{fill:"#9EA9B2",d:"M77 98a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#444D54",d:"M84 98a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#9EA9B2",d:"M91 98a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M19.12 34a2 2 0 0 1 2-2h82.5a2 2 0 0 1 2 2v54a2 2 0 0 1-2 2h-82.5a2 2 0 0 1-2-2V34Z"}),React.createElement("path",{fill:"#718491",d:"M103.62 89.2v.8h-82.5v-.8h82.5Zm1.2-1.2V34a1.2 1.2 0 0 0-1.2-1.2h-82.5a1.2 1.2 0 0 0-1.2 1.2v54a1.2 1.2 0 0 0 1.2 1.2v.8a2 2 0 0 1-2-2V34a2 2 0 0 1 1.795-1.99l.204-.01h82.501l.204.01A2 2 0 0 1 105.62 34v54l-.011.204A2 2 0 0 1 103.62 90v-.8a1.2 1.2 0 0 0 1.2-1.2Z"}),React.createElement("path",{fill:"#718491",d:"M21.23 87.77H61.81V34.23H21.23v53.54Zm42.81 1.115c0 .616-.5 1.115-1.116 1.115H20.115l-.114-.006A1.115 1.115 0 0 1 19 88.884V33.116c0-.577.439-1.052 1.001-1.11l.114-.005h42.809c.616 0 1.115.5 1.115 1.115v55.77Z"}),React.createElement("path",{fill:"#718491",d:"M27.397 76.146c-3.97 1.445-7.252-3.009-8.397-5.416v17.039a2.23 2.23 0 0 0 2.23 2.23H61.81a2.23 2.23 0 0 0 2.23-2.23V76.146c-9.383 1.603-8.132-9.067-17.176-13.24-8.834-4.075-14.504 11.435-19.466 13.24ZM34.52 52.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}),React.createElement("g",{opacity:.9},React.createElement("path",{fill:"#718491",d:"M67.04 42.974c0-.538.435-.974.973-.974h4.052c.538 0 .974.436.974.974v4.052a.974.974 0 0 1-.974.974h-4.052a.974.974 0 0 1-.974-.974v-4.052ZM67.04 52.5a1.5 1.5 0 0 1 1.5-1.5h32.999a1.5 1.5 0 0 1 0 3h-33a1.5 1.5 0 0 1-1.5-1.5ZM67.04 58.974c0-.538.435-.974.973-.974h34.052c.538 0 .974.436.974.974v.052a.974.974 0 0 1-.974.974H68.013a.974.974 0 0 1-.974-.974v-.052ZM67.04 62.974c0-.538.435-.974.973-.974h32.052c.538 0 .974.436.974.974v.052a.974.974 0 0 1-.974.974H68.013a.974.974 0 0 1-.974-.974v-.052ZM67.04 66.974c0-.538.435-.974.973-.974h25.052c.538 0 .974.436.974.974v.052a.974.974 0 0 1-.974.974H68.013a.974.974 0 0 1-.974-.974v-.052Z"}),React.createElement("path",{fill:"#D8DADB",d:"M67.04 73a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-20a1 1 0 0 1-1-1v-6Z"}),React.createElement("path",{fill:"#9EA9B2",d:"M88.04 79.5v.5h-20v-.5h20Zm.5-.5v-6a.5.5 0 0 0-.5-.5h-20a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5v.5a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h20l.102.005a1 1 0 0 1 .897.995v6a1 1 0 0 1-.897.995l-.103.005v-.5a.5.5 0 0 0 .5-.5Z"}),React.createElement("path",{fill:"#718491",d:"M71.04 76a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2h-12a1 1 0 0 1-1-1Z"})),React.createElement("path",{fill:"#F0F0F0",d:"M109 33.16c0-.64.519-1.16 1.16-1.16h17.68c.641 0 1.16.52 1.16 1.16v55.68c0 .64-.519 1.16-1.16 1.16h-17.68a1.16 1.16 0 0 1-1.16-1.16V33.16Z"}),React.createElement("path",{fill:"#718491",d:"M111.319 87.68h15.362V34.32h-15.362v53.36ZM129 88.84c0 .64-.52 1.16-1.16 1.16h-17.68l-.119-.006A1.16 1.16 0 0 1 109 88.84V33.16c0-.6.456-1.095 1.041-1.154l.119-.006h17.68c.64 0 1.16.52 1.16 1.16v55.68Z"}),React.createElement("path",{fill:"#718491",d:"M112.729 75.897c-1.763 1.415-3.221-2.948-3.729-5.306v16.557a2.32 2.32 0 0 0 2.32 2.32h15.36a2.32 2.32 0 0 0 2.32-2.32V75.897c-4.167 1.57-3.738-8.266-7.627-12.97-3.762-4.551-6.441 11.201-8.644 12.97ZM118.964 53.921c0 1.712-1.401 3.1-3.129 3.1-1.727 0-3.128-1.388-3.128-3.1 0-1.712 1.401-3.1 3.128-3.1 1.728 0 3.129 1.388 3.129 3.1Z"}),React.createElement("path",{fill:"#000",fillOpacity:.6,d:"M110.5 90a1.5 1.5 0 0 1-1.5-1.5v-55a1.5 1.5 0 0 1 1.5-1.5h17a1.5 1.5 0 0 1 1.5 1.5v55a1.5 1.5 0 0 1-1.5 1.5h-17Z"}),React.createElement("rect",{width:34,height:3,x:117,y:78,fill:"#fff",rx:.974,transform:"rotate(-90 117 78)"}),React.createElement("path",{fill:"#F0F0F0",d:"M132 33.16c0-.64.519-1.16 1.16-1.16h17.68c.641 0 1.16.52 1.16 1.16v55.68c0 .64-.519 1.16-1.16 1.16h-17.68a1.16 1.16 0 0 1-1.16-1.16V33.16Z"}),React.createElement("path",{fill:"#718491",d:"M134.319 87.68h15.362V34.32h-15.362v53.36ZM152 88.84c0 .64-.52 1.16-1.16 1.16h-17.68l-.119-.006A1.16 1.16 0 0 1 132 88.84V33.16c0-.6.456-1.095 1.041-1.154l.119-.006h17.68c.64 0 1.16.52 1.16 1.16v55.68Z"}),React.createElement("path",{fill:"#718491",d:"M135.729 75.897c-1.763 1.415-3.221-2.948-3.729-5.306v16.557a2.32 2.32 0 0 0 2.32 2.32h15.36a2.32 2.32 0 0 0 2.32-2.32V75.897c-4.167 1.57-3.738-8.266-7.627-12.97-3.762-4.551-6.441 11.201-8.644 12.97ZM141.964 53.921c0 1.712-1.401 3.1-3.129 3.1-1.727 0-3.128-1.388-3.128-3.1 0-1.712 1.401-3.1 3.128-3.1 1.728 0 3.129 1.388 3.129 3.1Z"}),React.createElement("path",{fill:"#000",fillOpacity:.6,d:"M133.5 90a1.5 1.5 0 0 1-1.5-1.5v-55a1.5 1.5 0 0 1 1.5-1.5h17a1.5 1.5 0 0 1 1.5 1.5v55a1.5 1.5 0 0 1-1.5 1.5h-17Z"}),React.createElement("rect",{width:34,height:3,x:140,y:78,fill:"#fff",rx:.974,transform:"rotate(-90 140 78)"}),React.createElement("path",{fill:"#718491",d:"M158.006 56.436a.75.75 0 0 1 1.058.07l3.5 4a.75.75 0 0 1 0 .988l-3.5 4a.75.75 0 1 1-1.128-.988L161.003 61l-3.067-3.506a.75.75 0 0 1 .07-1.058ZM13.994 56.436a.75.75 0 0 0-1.058.07l-3.5 4a.75.75 0 0 0 0 .988l3.5 4a.75.75 0 0 0 1.129-.988L10.997 61l3.068-3.506a.75.75 0 0 0-.07-1.058Z"}))}}],"post-accordion":[{label:"Template One",value:"post-accordion-one",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#8796A1",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("rect",{width:105.349,height:51.628,x:7.302,y:6.977,fill:"#fff",stroke:"#718491",strokeWidth:.698,rx:1.047}),React.createElement("path",{fill:"#718491",d:"M111.628 6.606c.77 0 1.395.625 1.395 1.395v6.977H6.977V8.001c0-.77.624-1.395 1.395-1.395h103.256Z"}),React.createElement("path",{stroke:"#718491",d:"M111.628 6.606c.77 0 1.395.625 1.395 1.395v6.977H6.977V8.001c0-.77.624-1.395 1.395-1.395h103.256Z"}),React.createElement("rect",{width:69.07,height:1.395,x:10.465,y:10.094,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m108.655 11.325-1.36-1.36-1.359 1.36"})),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:47.488,height:35.603,x:11.162,y:19.186,rx:.809})),React.createElement("rect",{width:47.488,height:35.603,x:11.162,y:19.186,fill:"#F0F0F0",stroke:"#718491",strokeWidth:3.237,rx:.809}),React.createElement("path",{fill:"#718491",d:"M20.016 45.498c-4.186.969-7.647-2.018-8.854-3.633v11.306c0 .894.725 1.619 1.618 1.619h44.252c.894 0 1.618-.725 1.618-1.619v-7.673c-9.256 2.826-12.475-3.633-18.11-8.88-5.634-5.247-15.292 7.67-20.524 8.88Z"}),React.createElement("circle",{cx:20.658,cy:32.942,r:4.001,fill:"#718491"}),React.createElement("g",{fill:"#9EA9B2",opacity:.9},React.createElement("rect",{width:9.767,height:1.395,x:62.094,y:21.977,rx:.68}),React.createElement("rect",{width:10.465,height:1.395,x:73.955,y:21.977,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:46.744,height:1.395,x:62.094,y:26.86,rx:.68}),React.createElement("rect",{width:45.349,height:1.395,x:62.094,y:30.349,rx:.68}),React.createElement("rect",{width:45.349,height:1.395,x:62.094,y:33.837,rx:.68}),React.createElement("rect",{width:45.349,height:1.395,x:62.094,y:37.326,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:62.094,y:40.814,rx:.68})),React.createElement("rect",{width:15,height:5.233,x:62.245,y:46.57,fill:"#fff",stroke:"#9EA9B2",strokeWidth:.349,rx:.523}),React.createElement("rect",{width:9.767,height:1.395,x:64.861,y:47.977,fill:"#718491",opacity:.9,rx:.698})),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:62.442,fill:"#718491",rx:1.395}),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:62.442,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:69.07,height:1.395,x:10.465,y:65.93,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m105.937 65.802 1.36 1.36 1.359-1.36"})),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:74.302,fill:"#718491",rx:1.395}),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:74.302,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:69.07,height:1.395,x:10.465,y:77.79,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m108.655 77.662-1.36 1.36-1.359-1.36"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M6.977 6.628h106.047v52.326H6.977z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M105.35 8.7h4.186v4.185h-4.186z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M105.35 64.535h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M105.35 76.395h4.186v4.187h-4.186z"}))))}},{label:"Template Two",value:"post-accordion-two",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#8796A1",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("rect",{width:76.046,height:76.046,x:7.325,y:6.977,fill:"#fff",stroke:"#718491",strokeWidth:.698,rx:1.047}),React.createElement("path",{fill:"#718491",d:"M82.325 6.628c.77 0 1.396.625 1.396 1.395v9.768H6.977V8.023c0-.77.624-1.395 1.395-1.395h73.953Z"}),React.createElement("path",{stroke:"#718491",d:"M82.325 6.628c.77 0 1.396.625 1.396 1.395v9.768H6.977V8.023c0-.77.624-1.395 1.395-1.395h73.953Z"}),React.createElement("rect",{width:52.326,height:1.395,x:10.465,y:11.512,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m79.352 12.742-1.36-1.36-1.36 1.36"})),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:68.372,height:35.581,x:11.162,y:21.977,rx:.809})),React.createElement("rect",{width:68.372,height:35.581,x:11.162,y:21.977,fill:"#F0F0F0",stroke:"#718491",strokeWidth:3.237,rx:.809}),React.createElement("path",{fill:"#718491",d:"M23.91 48.212c-6.027.974-11.01-2.03-12.748-3.655V55.94c0 .893.725 1.618 1.618 1.618h65.136c.894 0 1.618-.725 1.618-1.618v-7.728c-13.327 2.842-17.962-3.655-26.074-8.933C45.348 34 31.442 46.993 23.91 48.21Z"}),React.createElement("circle",{cx:20.658,cy:35.732,r:4.001,fill:"#718491"}),React.createElement("g",{fill:"#9EA9B2",opacity:.9},React.createElement("rect",{width:9.767,height:1.395,x:11.162,y:60.349,rx:.68}),React.createElement("rect",{width:10.465,height:1.395,x:23.023,y:60.349,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:68.372,height:1.395,x:11.162,y:65.232,rx:.68}),React.createElement("rect",{width:41.861,height:1.395,x:11.162,y:68.721,rx:.68})),React.createElement("rect",{width:15,height:5.233,x:11.336,y:73.779,fill:"#fff",stroke:"#9EA9B2",strokeWidth:.349,rx:.523}),React.createElement("rect",{width:9.767,height:1.395,x:13.953,y:75.698,fill:"#718491",opacity:.9,rx:.698})),React.createElement("rect",{width:76.744,height:11.163,x:87.209,y:83.372,fill:"#718491",rx:1.395,transform:"rotate(-90 87.209 83.372)"}),React.createElement("rect",{width:76.744,height:11.163,x:87.209,y:83.372,stroke:"#718491",rx:1.395,transform:"rotate(-90 87.209 83.372)"}),React.createElement("rect",{width:52.326,height:1.395,x:92.092,y:79.884,fill:"#fff",rx:.698,transform:"rotate(-90 92.092 79.884)"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m91.965 13.715 1.36-1.36-1.36-1.359"})),React.createElement("rect",{width:76.744,height:11.163,x:101.859,y:83.372,fill:"#718491",rx:1.395,transform:"rotate(-90 101.859 83.372)"}),React.createElement("rect",{width:76.744,height:11.163,x:101.859,y:83.372,stroke:"#718491",rx:1.395,transform:"rotate(-90 101.859 83.372)"}),React.createElement("rect",{width:52.326,height:1.395,x:106.742,y:79.884,fill:"#fff",rx:.698,transform:"rotate(-90 106.742 79.884)"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m106.615 10.996 1.36 1.36-1.36 1.36"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M6.977 6.628H83.72v76.744H6.977z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M76.047 10.116h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M90.697 14.302v-4.186h4.186v4.186z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M105.348 14.302v-4.186h4.186v4.186z"}))))},onlyPro:!0},{label:"Template Three",value:"post-accordion-three",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#8796A1",strokeWidth:1.047,rx:2.267}),React.createElement("rect",{width:105.698,height:40.116,x:7.151,y:8.307,fill:"#fff",stroke:"#8796A1",strokeWidth:.349,rx:.523}),React.createElement("rect",{width:15,height:5.233,x:10.639,y:38.896,fill:"#fff",stroke:"#9EA9B2",strokeWidth:.349,rx:.523}),React.createElement("rect",{width:9.767,height:1.395,x:13.256,y:40.815,fill:"#718491",opacity:.9,rx:.698}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:97.674,height:1.395,x:10.465,y:24.768,rx:.698}),React.createElement("rect",{width:97.674,height:1.395,x:10.465,y:28.047,rx:.698}),React.createElement("rect",{width:94.884,height:1.395,x:10.465,y:31.326,rx:.698}),React.createElement("rect",{width:55.814,height:1.395,x:10.465,y:34.605,rx:.698})),React.createElement("path",{fill:"#718491",stroke:"#718491",strokeWidth:.329,d:"M7.674 6.793h104.651c.294 0 .533.238.533.532v13.092H7.142V7.325c0-.294.238-.532.532-.532Z"}),React.createElement("rect",{width:10.465,height:7.674,x:10.116,y:9.767,fill:"#718491",stroke:"#fff",strokeWidth:.698,rx:.349}),React.createElement("path",{fill:"#fff",d:"M11.849 15.788c-.984.209-1.798-.435-2.081-.783v1.39c0 .77.624 1.396 1.395 1.396h8.372c.77 0 1.395-.625 1.395-1.396v-.607c-2.175.609-2.932-.783-4.257-1.914-1.324-1.132-3.594 1.653-4.824 1.914Z"}),React.createElement("circle",{cx:12.908,cy:12.558,r:1.047,fill:"#fff"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.698,d:"m109.443 14.21-1.395-1.396-1.396 1.395"})),React.createElement("rect",{width:62.791,height:1.395,x:23.721,y:10.814,fill:"#fff",rx:.698}),React.createElement("rect",{width:9.767,height:1.395,x:23.721,y:15,fill:"#D8DADB",rx:.698}),React.createElement("rect",{width:10.465,height:1.395,x:34.883,y:15,fill:"#D8DADB",rx:.698}),React.createElement("rect",{width:105.717,height:13.624,x:7.141,y:52.251,fill:"#718491",stroke:"#718491",strokeWidth:.329,rx:.533}),React.createElement("rect",{width:10.465,height:7.674,x:10.116,y:55.225,fill:"#718491",stroke:"#fff",strokeWidth:.698,rx:.349}),React.createElement("path",{fill:"#fff",d:"M11.849 61.246c-.984.209-1.798-.435-2.081-.783v1.39c0 .77.624 1.395 1.395 1.395h8.372c.77 0 1.395-.624 1.395-1.395v-.607c-2.175.609-2.932-.783-4.257-1.914-1.324-1.132-3.594 1.653-4.824 1.914Z"}),React.createElement("circle",{cx:12.908,cy:58.016,r:1.047,fill:"#fff"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.698,d:"m109.443 59.667-1.395-1.395-1.396 1.395"})),React.createElement("rect",{width:62.791,height:1.395,x:23.721,y:56.272,fill:"#fff",rx:.698}),React.createElement("rect",{width:9.767,height:1.395,x:23.721,y:60.458,fill:"#D8DADB",rx:.698}),React.createElement("rect",{width:10.465,height:1.395,x:34.883,y:60.458,fill:"#D8DADB",rx:.698}),React.createElement("rect",{width:105.717,height:13.624,x:7.141,y:69.692,fill:"#718491",stroke:"#718491",strokeWidth:.329,rx:.533}),React.createElement("rect",{width:10.465,height:7.674,x:10.116,y:72.667,fill:"#718491",stroke:"#fff",strokeWidth:.698,rx:.349}),React.createElement("path",{fill:"#fff",d:"M11.849 78.688c-.984.209-1.798-.435-2.081-.783v1.39c0 .77.624 1.395 1.395 1.395h8.372c.77 0 1.395-.624 1.395-1.395v-.607c-2.175.609-2.932-.783-4.257-1.915-1.324-1.13-3.594 1.654-4.824 1.915Z"}),React.createElement("circle",{cx:12.908,cy:75.458,r:1.047,fill:"#fff"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.698,d:"m109.443 77.11-1.395-1.396-1.396 1.395"})),React.createElement("rect",{width:62.791,height:1.395,x:23.721,y:73.714,fill:"#fff",rx:.698}),React.createElement("rect",{width:9.767,height:1.395,x:23.721,y:77.9,fill:"#D8DADB",rx:.698}),React.createElement("rect",{width:10.465,height:1.395,x:34.883,y:77.9,fill:"#D8DADB",rx:.698}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M106.047 11.512h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M106.047 56.97h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M106.047 74.412h4.186v4.186h-4.186z"}))))},onlyPro:!0},{label:"Template Four",value:"post-accordion-four",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#8796A1",strokeWidth:1.047,rx:2.267}),React.createElement("rect",{width:70.814,height:76.395,x:7.151,y:6.802,fill:"#fff",stroke:"#8796A1",strokeWidth:.349,rx:.523}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:64.186,height:1.395,x:10.465,y:24.768,rx:.698}),React.createElement("rect",{width:64.186,height:1.395,x:10.465,y:28.047,rx:.698}),React.createElement("rect",{width:57.209,height:1.395,x:10.465,y:31.326,rx:.698}),React.createElement("rect",{width:34.884,height:1.395,x:10.465,y:34.605,rx:.698})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:64.186,height:1.395,x:10.465,y:40.884,rx:.698}),React.createElement("rect",{width:64.186,height:1.395,x:10.465,y:44.163,rx:.698}),React.createElement("rect",{width:57.209,height:1.395,x:10.465,y:47.442,rx:.698})),React.createElement("rect",{width:15,height:5.233,x:10.639,y:53.198,fill:"#fff",stroke:"#9EA9B2",strokeWidth:.349,rx:.523}),React.createElement("rect",{width:9.767,height:1.395,x:13.256,y:55.117,fill:"#718491",opacity:.9,rx:.698}),React.createElement("path",{fill:"#718491",stroke:"#718491",strokeWidth:.329,d:"M7.674 6.793H77.44c.295 0 .533.238.534.532v13.092H7.142V7.325c0-.294.238-.532.532-.532Z"}),React.createElement("rect",{width:10.465,height:7.674,x:10.116,y:9.767,fill:"#718491",stroke:"#fff",strokeWidth:.698,rx:.349}),React.createElement("path",{fill:"#fff",d:"M11.849 15.788c-.984.209-1.798-.435-2.081-.783v1.39c0 .77.624 1.396 1.395 1.396h8.372c.77 0 1.395-.625 1.395-1.396v-.607c-2.175.609-2.932-.783-4.257-1.914-1.324-1.132-3.594 1.653-4.824 1.914Z"}),React.createElement("circle",{cx:12.908,cy:12.558,r:1.047,fill:"#fff"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.698,d:"m73.861 14.21-1.395-1.396-1.396 1.395"})),React.createElement("rect",{width:38.372,height:1.395,x:23.721,y:10.814,fill:"#fff",rx:.698}),React.createElement("rect",{width:8.372,height:1.395,x:23.721,y:15,fill:"#D8DADB",rx:.698}),React.createElement("rect",{width:8.372,height:1.395,x:33.488,y:15,fill:"#D8DADB",rx:.698}),React.createElement("rect",{width:76.415,height:13.624,x:81.792,y:83.207,fill:"#718491",stroke:"#718491",strokeWidth:.329,rx:.533,transform:"rotate(-90 81.792 83.207)"}),React.createElement("rect",{width:10.465,height:7.674,x:84.767,y:80.233,fill:"#718491",stroke:"#fff",strokeWidth:.698,rx:.349,transform:"rotate(-90 84.767 80.233)"}),React.createElement("path",{fill:"#fff",d:"M90.787 78.5c.209.984-.435 1.798-.783 2.082h1.39c.77 0 1.396-.625 1.396-1.396v-8.372c0-.77-.625-1.395-1.396-1.395h-.607c.609 2.176-.783 2.932-1.914 4.257C87.74 75 90.526 77.27 90.787 78.5Z"}),React.createElement("circle",{cx:87.558,cy:77.442,r:1.047,fill:"#fff",transform:"rotate(-90 87.558 77.442)"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.698,d:"m89.208 10.907-1.395 1.395 1.395 1.396"})),React.createElement("rect",{width:38.372,height:1.395,x:85.813,y:66.628,fill:"#fff",rx:.698,transform:"rotate(-90 85.813 66.628)"}),React.createElement("rect",{width:8.372,height:1.395,x:89.998,y:66.628,fill:"#D8DADB",rx:.698,transform:"rotate(-90 89.998 66.628)"}),React.createElement("rect",{width:8.372,height:1.395,x:89.998,y:56.86,fill:"#D8DADB",rx:.698,transform:"rotate(-90 89.998 56.86)"}),React.createElement("rect",{width:76.415,height:13.624,x:99.235,y:83.207,fill:"#718491",stroke:"#718491",strokeWidth:.329,rx:.533,transform:"rotate(-90 99.235 83.207)"}),React.createElement("rect",{width:10.465,height:7.674,x:102.21,y:80.233,fill:"#718491",stroke:"#fff",strokeWidth:.698,rx:.349,transform:"rotate(-90 102.21 80.233)"}),React.createElement("path",{fill:"#fff",d:"M108.23 78.5c.209.984-.435 1.798-.783 2.082h1.391c.77 0 1.395-.625 1.395-1.396v-8.372c0-.77-.625-1.395-1.395-1.395h-.608c.609 2.176-.783 2.932-1.914 4.257-1.131 1.324 1.653 3.594 1.914 4.824Z"}),React.createElement("circle",{cx:105.002,cy:77.442,r:1.047,fill:"#fff",transform:"rotate(-90 105.002 77.442)"}),React.createElement("g",{clipPath:"url(#c)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.698,d:"m106.651 10.907-1.395 1.395 1.395 1.396"})),React.createElement("rect",{width:38.372,height:1.395,x:103.256,y:66.628,fill:"#fff",rx:.698,transform:"rotate(-90 103.256 66.628)"}),React.createElement("rect",{width:8.372,height:1.395,x:107.441,y:66.628,fill:"#D8DADB",rx:.698,transform:"rotate(-90 107.441 66.628)"}),React.createElement("rect",{width:8.372,height:1.395,x:107.441,y:56.86,fill:"#D8DADB",rx:.698,transform:"rotate(-90 107.441 56.86)"}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M70.465 11.512h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M86.51 14.302v-4.186h4.186v4.186z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M103.953 14.302v-4.186h4.186v4.186z"}))))},onlyPro:!0}],"product-accordion":[{label:"Template One",value:"product-accordion-one",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("rect",{width:105.349,height:51.628,x:7.302,y:6.977,fill:"#fff",stroke:"#718491",strokeWidth:.698,rx:1.047}),React.createElement("path",{fill:"#718491",d:"M111.628 6.606c.77 0 1.395.625 1.395 1.396v6.976H6.977V8.002c0-.771.624-1.396 1.395-1.396h103.256Z"}),React.createElement("path",{stroke:"#718491",d:"M111.628 6.606c.77 0 1.395.625 1.395 1.396v6.976H6.977V8.002c0-.771.624-1.396 1.395-1.396h103.256Z"}),React.createElement("rect",{width:69.07,height:1.395,x:10.465,y:10.095,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m108.655 11.325-1.36-1.36-1.359 1.36"})),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:47.488,height:35.603,x:11.162,y:19.164,rx:.809})),React.createElement("rect",{width:47.488,height:35.603,x:11.162,y:19.164,stroke:"#718491",strokeWidth:3.237,rx:.809}),React.createElement("path",{fill:"#718491",d:"M20.016 45.476c-4.186.97-7.647-2.018-8.854-3.633V53.15c0 .894.725 1.619 1.618 1.619h44.252c.894 0 1.618-.725 1.618-1.619v-7.673c-9.256 2.826-12.475-3.633-18.11-8.88-5.634-5.247-15.292 7.67-20.524 8.88Z"}),React.createElement("circle",{cx:20.658,cy:32.92,r:4.001,fill:"#718491"}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:46.744,height:1.395,x:62.094,y:28.953,rx:.68}),React.createElement("rect",{width:45.349,height:1.395,x:62.094,y:32.442,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:62.094,y:35.93,rx:.68})),React.createElement("g",{fill:"#8796A1",opacity:.9},React.createElement("rect",{width:20.233,height:1.395,x:62.094,y:49.884,rx:.68}),React.createElement("rect",{width:14.651,height:1.395,x:62.094,y:53.372,rx:.68})),React.createElement("path",{fill:"#718491",d:"M75.777 24.896v.462c0 .201-.021.374-.064.52a.943.943 0 0 1-.185.355.73.73 0 0 1-.285.204.98.98 0 0 1-.366.066c-.108 0-.208-.014-.301-.04a.759.759 0 0 1-.442-.353 1.14 1.14 0 0 1-.121-.322 1.964 1.964 0 0 1-.042-.43v-.462c0-.2.021-.372.064-.515a.962.962 0 0 1 .185-.354.73.73 0 0 1 .286-.202.98.98 0 0 1 .367-.066c.108 0 .207.014.299.042a.749.749 0 0 1 .442.349c.053.09.093.196.121.32.028.124.042.266.042.426Zm-.53.532v-.603a1.7 1.7 0 0 0-.016-.253.744.744 0 0 0-.046-.184.386.386 0 0 0-.077-.125.281.281 0 0 0-.105-.07.37.37 0 0 0-.13-.021.351.351 0 0 0-.16.035.297.297 0 0 0-.115.111.604.604 0 0 0-.073.202 1.65 1.65 0 0 0-.024.305v.603c0 .097.005.182.014.255a.867.867 0 0 0 .048.189.465.465 0 0 0 .077.127.28.28 0 0 0 .105.07.382.382 0 0 0 .288-.014.307.307 0 0 0 .117-.113.593.593 0 0 0 .073-.206c.016-.084.024-.187.024-.308ZM73.619 24.896v.462c0 .201-.021.374-.064.52a.943.943 0 0 1-.185.355.73.73 0 0 1-.285.204.98.98 0 0 1-.366.066c-.108 0-.208-.014-.301-.04a.759.759 0 0 1-.442-.353 1.14 1.14 0 0 1-.121-.322 1.964 1.964 0 0 1-.043-.43v-.462c0-.2.022-.372.065-.515a.962.962 0 0 1 .185-.354.73.73 0 0 1 .286-.202.98.98 0 0 1 .367-.066c.108 0 .207.014.299.042a.749.749 0 0 1 .442.349c.052.09.093.196.12.32.029.124.043.266.043.426Zm-.53.532v-.603a1.7 1.7 0 0 0-.016-.253.744.744 0 0 0-.046-.184.386.386 0 0 0-.077-.125.281.281 0 0 0-.105-.07.37.37 0 0 0-.13-.021.351.351 0 0 0-.16.035.297.297 0 0 0-.115.111.604.604 0 0 0-.074.202 1.65 1.65 0 0 0-.023.305v.603c0 .097.004.182.014.255a.867.867 0 0 0 .048.189.465.465 0 0 0 .077.127.28.28 0 0 0 .105.07.382.382 0 0 0 .287-.014.307.307 0 0 0 .118-.113.593.593 0 0 0 .073-.206c.016-.084.024-.187.024-.308ZM70.781 26.212c0-.079.027-.144.08-.197a.303.303 0 0 1 .22-.079c.09 0 .162.027.216.08a.26.26 0 0 1 .082.196.26.26 0 0 1-.082.196.297.297 0 0 1-.217.079.303.303 0 0 1-.218-.08.263.263 0 0 1-.08-.195ZM70.379 24.896v.462c0 .201-.022.374-.064.52a.943.943 0 0 1-.186.355.731.731 0 0 1-.284.204.98.98 0 0 1-.367.066c-.107 0-.208-.014-.3-.04a.759.759 0 0 1-.442-.353 1.14 1.14 0 0 1-.122-.322 1.964 1.964 0 0 1-.042-.43v-.462c0-.2.022-.372.064-.515a.96.96 0 0 1 .186-.354.73.73 0 0 1 .286-.202.98.98 0 0 1 .367-.066c.107 0 .207.014.299.042a.747.747 0 0 1 .442.349c.052.09.093.196.12.32.029.124.043.266.043.426Zm-.53.532v-.603a1.7 1.7 0 0 0-.017-.253.744.744 0 0 0-.046-.184.39.39 0 0 0-.077-.125.28.28 0 0 0-.104-.07.37.37 0 0 0-.13-.021.35.35 0 0 0-.16.035.296.296 0 0 0-.115.111.602.602 0 0 0-.074.202 1.65 1.65 0 0 0-.024.305v.603c0 .097.005.182.015.255a.867.867 0 0 0 .048.189.465.465 0 0 0 .077.127.28.28 0 0 0 .104.07.383.383 0 0 0 .288-.014.308.308 0 0 0 .118-.113.593.593 0 0 0 .073-.206c.016-.084.024-.187.024-.308ZM68.22 24.896v.462c0 .201-.02.374-.064.52a.943.943 0 0 1-.185.355.731.731 0 0 1-.284.204.98.98 0 0 1-.367.066c-.107 0-.208-.014-.3-.04a.759.759 0 0 1-.443-.353 1.14 1.14 0 0 1-.12-.322 1.964 1.964 0 0 1-.043-.43v-.462c0-.2.022-.372.064-.515a.96.96 0 0 1 .186-.354.73.73 0 0 1 .286-.202.98.98 0 0 1 .366-.066c.108 0 .208.014.3.042a.748.748 0 0 1 .441.349c.053.09.093.196.121.32.029.124.043.266.043.426Zm-.53.532v-.603a1.7 1.7 0 0 0-.016-.253.744.744 0 0 0-.046-.184.39.39 0 0 0-.077-.125.28.28 0 0 0-.104-.07.37.37 0 0 0-.13-.021.35.35 0 0 0-.16.035.296.296 0 0 0-.116.111.604.604 0 0 0-.073.202 1.66 1.66 0 0 0-.024.305v.603c0 .097.005.182.015.255a.867.867 0 0 0 .047.189.463.463 0 0 0 .078.127.28.28 0 0 0 .104.07.383.383 0 0 0 .288-.014.308.308 0 0 0 .117-.113.593.593 0 0 0 .074-.206c.016-.084.024-.187.024-.308ZM65.552 23.79v2.676h-.529V24.4l-.634.202v-.416l1.106-.394h.056ZM63.21 23.372v.541h-.285v-.54h.286Zm-.034 2.995v.494h-.286v-.494h.286Zm.202-.601a.38.38 0 0 0-.039-.178.347.347 0 0 0-.121-.13 1.055 1.055 0 0 0-.224-.11 3.17 3.17 0 0 1-.42-.195.82.82 0 0 1-.28-.258.713.713 0 0 1-.101-.395.71.71 0 0 1 .108-.394.706.706 0 0 1 .299-.257 1.03 1.03 0 0 1 .447-.092c.13 0 .247.02.353.059a.739.739 0 0 1 .445.438c.04.107.06.228.06.365h-.526a.717.717 0 0 0-.023-.194.392.392 0 0 0-.07-.141.272.272 0 0 0-.107-.085.318.318 0 0 0-.137-.029.345.345 0 0 0-.183.044.26.26 0 0 0-.105.12.428.428 0 0 0-.031.168c0 .062.01.117.033.163.023.047.063.09.12.129.055.037.132.077.23.117.16.061.298.127.418.198.12.071.214.158.28.26.068.103.102.234.102.393a.717.717 0 0 1-.11.404.703.703 0 0 1-.308.253 1.141 1.141 0 0 1-.459.086c-.112 0-.224-.015-.336-.044a.9.9 0 0 1-.302-.147.713.713 0 0 1-.217-.268.956.956 0 0 1-.08-.414h.528c0 .089.012.164.035.223a.381.381 0 0 0 .092.142c.039.034.083.058.132.073a.513.513 0 0 0 .148.022.39.39 0 0 0 .193-.042.277.277 0 0 0 .115-.116.352.352 0 0 0 .04-.168ZM63.14 19.164l.308.623.688.1-.498.485.117.686-.615-.324-.615.323.118-.684-.498-.486.688-.1.307-.623ZM65.582 19.164l.307.623.688.1-.498.485.118.686-.615-.324-.615.323.117-.684-.498-.486.688-.1.308-.623ZM68.023 19.164l.308.623.687.1-.497.485.117.686-.615-.324-.615.323.117-.684-.497-.486.688-.1.307-.623ZM70.466 19.164l.308.623.688.1-.498.485.118.686-.616-.324-.615.323.118-.684-.498-.486.688-.1.307-.623ZM72.908 19.164l.307.623.688.1-.498.485.118.686-.615-.324-.615.323.117-.684-.498-.486.688-.1.308-.623Z"}),React.createElement("mask",{id:"d",fill:"#fff"},React.createElement("path",{d:"M62.094 39.419h46.744v8.372H62.094v-8.372Z"})),React.createElement("path",{fill:"#718491",d:"M108.838 47.79v-.139H62.094v.28h46.744v-.14Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M62.094 39.419H78.14v5.58H62.094z"}),React.createElement("path",{fill:"#718491",fillRule:"evenodd",d:"M65.034 41.279c.095 0 .172.077.172.171v.797h.796a.172.172 0 0 1 0 .344h-.796v.797a.172.172 0 0 1-.344 0v-.797h-.797a.172.172 0 0 1 0-.344h.797v-.797c0-.094.078-.171.172-.171Z",clipRule:"evenodd"}),React.createElement("rect",{width:4.801,height:1.372,x:67.889,y:41.733,fill:"#718491",rx:.686}),React.createElement("path",{stroke:"#718491",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.343,d:"M74.404 42.419h1.938"}),React.createElement("path",{fill:"#718491",d:"M80.932 39.419h27.907v5.58H80.932z"}),React.createElement("rect",{width:16.744,height:1.395,x:86.559,y:41.721,fill:"#fff",rx:.698})),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:62.442,fill:"#718491",rx:1.395}),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:62.442,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:69.07,height:1.395,x:10.465,y:65.93,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m105.937 65.802 1.36 1.36 1.359-1.36"})),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:74.302,fill:"#718491",rx:1.395}),React.createElement("rect",{width:106.047,height:8.372,x:6.977,y:74.302,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:69.07,height:1.395,x:10.465,y:77.791,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m108.655 77.662-1.36 1.36-1.359-1.36"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M6.977 6.628h106.047v52.326H6.977z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M105.35 8.7h4.186v4.185h-4.186z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M105.35 64.535h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"f"},React.createElement("path",{fill:"#fff",d:"M105.35 76.395h4.186v4.186h-4.186z"}))))}},{label:"Template Two",value:"product-accordion-two",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("rect",{width:82.326,height:62.791,x:6.977,y:13.605,fill:"#fff",rx:1.395}),React.createElement("path",{fill:"#718491",d:"M6.977 15c0-.77.624-1.396 1.395-1.396h6.977v62.791H8.372c-.77 0-1.395-.625-1.395-1.395V15Z"}),React.createElement("path",{stroke:"#718491",d:"M6.977 15c0-.77.624-1.396 1.395-1.396h6.977v62.791H8.372c-.77 0-1.395-.625-1.395-1.395V15Z"}),React.createElement("rect",{width:41.861,height:1.395,x:10.465,y:72.907,fill:"#fff",rx:.698,transform:"rotate(-90 10.465 72.907)"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m11.695 17.974-1.36 1.36 1.36 1.36"})),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:27.907,height:55.814,x:18.838,y:17.093,rx:.809})),React.createElement("rect",{width:27.907,height:55.814,x:18.838,y:17.093,stroke:"#718491",strokeWidth:3.237,rx:.809}),React.createElement("path",{fill:"#718491",d:"M24.04 63.133c-2.459.975-4.493-2.03-5.202-3.654v11.383c0 .893.724 1.618 1.618 1.618h24.67c.894 0 1.619-.725 1.619-1.618v-7.728c-5.44 2.842-7.332-3.655-10.643-8.933-3.31-5.279-8.987 7.714-12.061 8.932Z"}),React.createElement("circle",{cx:25.978,cy:44.95,r:2.955,fill:"#718491"}),React.createElement("path",{fill:"#718491",d:"m51.279 17.093.307.623.688.1-.497.485.117.685-.615-.323-.615.323.117-.685-.497-.485.687-.1.308-.623ZM53.72 17.093l.308.623.688.1-.498.485.117.685-.615-.323-.615.323.118-.685-.498-.485.688-.1.307-.623ZM56.162 17.093l.307.623.688.1-.498.485.118.685-.615-.323-.615.323.117-.685-.498-.485.688-.1.308-.623ZM58.605 17.093l.308.623.687.1-.497.485.117.685-.615-.323-.615.323.117-.685-.497-.485.688-.1.307-.623ZM61.047 17.093l.307.623.688.1-.498.485.118.685-.615-.323-.616.323.118-.685-.498-.485.688-.1.308-.623ZM63.916 23.5v.463c0 .2-.021.373-.064.519a.943.943 0 0 1-.185.356.732.732 0 0 1-.285.203.98.98 0 0 1-.367.066c-.107 0-.208-.013-.3-.04a.757.757 0 0 1-.442-.352 1.137 1.137 0 0 1-.121-.323 1.958 1.958 0 0 1-.043-.43v-.461c0-.2.022-.373.065-.516a.96.96 0 0 1 .185-.354.73.73 0 0 1 .286-.201.98.98 0 0 1 .367-.066c.107 0 .207.014.299.042a.747.747 0 0 1 .442.348c.052.09.093.197.12.321.029.124.043.266.043.426Zm-.53.533v-.604a1.7 1.7 0 0 0-.017-.253.744.744 0 0 0-.045-.183.387.387 0 0 0-.078-.125.28.28 0 0 0-.104-.07.367.367 0 0 0-.13-.022.35.35 0 0 0-.16.035.296.296 0 0 0-.115.112.602.602 0 0 0-.074.202 1.65 1.65 0 0 0-.024.304v.604c0 .096.005.181.015.255a.867.867 0 0 0 .048.189.465.465 0 0 0 .077.126c.03.032.065.055.104.07a.383.383 0 0 0 .288-.013.307.307 0 0 0 .118-.114.593.593 0 0 0 .073-.205c.016-.085.024-.187.024-.308ZM61.758 23.5v.463c0 .2-.022.373-.065.519a.943.943 0 0 1-.185.356.733.733 0 0 1-.284.203.98.98 0 0 1-.367.066c-.107 0-.208-.013-.3-.04a.757.757 0 0 1-.443-.352 1.137 1.137 0 0 1-.12-.323 1.958 1.958 0 0 1-.043-.43v-.461c0-.2.022-.373.064-.516a.96.96 0 0 1 .186-.354.73.73 0 0 1 .286-.201.98.98 0 0 1 .366-.066c.108 0 .208.014.3.042a.747.747 0 0 1 .441.348c.053.09.093.197.121.321.029.124.043.266.043.426Zm-.53.533v-.604a1.7 1.7 0 0 0-.017-.253.744.744 0 0 0-.046-.183.387.387 0 0 0-.077-.125.28.28 0 0 0-.104-.07.367.367 0 0 0-.13-.022.35.35 0 0 0-.16.035.296.296 0 0 0-.116.112.602.602 0 0 0-.073.202 1.65 1.65 0 0 0-.024.304v.604c0 .096.005.181.015.255a.867.867 0 0 0 .048.189.465.465 0 0 0 .077.126c.03.032.065.055.104.07a.383.383 0 0 0 .288-.013.307.307 0 0 0 .117-.114.593.593 0 0 0 .074-.205c.016-.085.024-.187.024-.308ZM58.92 24.816c0-.078.027-.144.08-.196a.303.303 0 0 1 .219-.08c.09 0 .163.027.216.08a.26.26 0 0 1 .083.196.26.26 0 0 1-.083.196.296.296 0 0 1-.216.08.303.303 0 0 1-.218-.08.263.263 0 0 1-.081-.196ZM58.517 23.5v.463c0 .2-.02.373-.064.519a.943.943 0 0 1-.185.356.731.731 0 0 1-.284.203.98.98 0 0 1-.367.066c-.108 0-.208-.013-.3-.04a.757.757 0 0 1-.443-.352 1.137 1.137 0 0 1-.12-.323 1.964 1.964 0 0 1-.043-.43v-.461c0-.2.021-.373.064-.516a.96.96 0 0 1 .185-.354.728.728 0 0 1 .286-.201.98.98 0 0 1 .367-.066c.108 0 .208.014.3.042a.748.748 0 0 1 .441.348c.053.09.093.197.121.321.028.124.042.266.042.426Zm-.53.533v-.604a1.7 1.7 0 0 0-.016-.253.74.74 0 0 0-.046-.183.39.39 0 0 0-.077-.125.282.282 0 0 0-.105-.07.367.367 0 0 0-.13-.022.352.352 0 0 0-.16.035.297.297 0 0 0-.115.112.602.602 0 0 0-.073.202 1.652 1.652 0 0 0-.024.304v.604c0 .096.005.181.015.255a.873.873 0 0 0 .047.189.463.463 0 0 0 .077.126.28.28 0 0 0 .105.07.383.383 0 0 0 .288-.013.308.308 0 0 0 .117-.114.593.593 0 0 0 .074-.205c.016-.085.023-.187.023-.308ZM56.36 23.5v.463c0 .2-.022.373-.065.519a.943.943 0 0 1-.185.356.731.731 0 0 1-.284.203.98.98 0 0 1-.367.066c-.108 0-.208-.013-.301-.04a.756.756 0 0 1-.442-.352 1.137 1.137 0 0 1-.121-.323 1.964 1.964 0 0 1-.042-.43v-.461c0-.2.021-.373.064-.516a.96.96 0 0 1 .185-.354.728.728 0 0 1 .286-.201.98.98 0 0 1 .367-.066c.108 0 .207.014.299.042a.748.748 0 0 1 .442.348c.053.09.093.197.121.321.028.124.042.266.042.426Zm-.53.533v-.604a1.7 1.7 0 0 0-.017-.253.744.744 0 0 0-.046-.183.388.388 0 0 0-.077-.125.28.28 0 0 0-.105-.07.367.367 0 0 0-.13-.022.352.352 0 0 0-.16.035.297.297 0 0 0-.115.112.602.602 0 0 0-.073.202 1.652 1.652 0 0 0-.024.304v.604c0 .096.005.181.014.255a.873.873 0 0 0 .048.189.463.463 0 0 0 .077.126.28.28 0 0 0 .105.07.383.383 0 0 0 .288-.013.308.308 0 0 0 .117-.114.593.593 0 0 0 .073-.205c.016-.085.024-.187.024-.308ZM53.69 22.395v2.676h-.528v-2.067l-.635.202v-.417l1.106-.394h.057ZM51.35 21.977v.54h-.287v-.54h.286Zm-.035 2.995v.493h-.287v-.493h.287Zm.201-.602a.378.378 0 0 0-.038-.178.347.347 0 0 0-.121-.13 1.054 1.054 0 0 0-.224-.11 3.182 3.182 0 0 1-.42-.194.82.82 0 0 1-.28-.26.713.713 0 0 1-.102-.393c0-.152.036-.283.109-.395a.706.706 0 0 1 .299-.257 1.03 1.03 0 0 1 .447-.091c.13 0 .247.02.352.059a.739.739 0 0 1 .446.438c.04.106.06.228.06.365h-.526a.721.721 0 0 0-.024-.195.393.393 0 0 0-.07-.14.273.273 0 0 0-.106-.085.32.32 0 0 0-.137-.03.346.346 0 0 0-.184.044.26.26 0 0 0-.104.12.428.428 0 0 0-.032.169c0 .062.012.116.034.163.023.046.063.089.119.128.056.038.133.077.23.117.16.062.3.128.419.198a.84.84 0 0 1 .28.261c.068.103.102.233.102.392a.716.716 0 0 1-.11.404.701.701 0 0 1-.309.253 1.14 1.14 0 0 1-.458.086c-.113 0-.225-.014-.336-.044a.902.902 0 0 1-.303-.146.713.713 0 0 1-.216-.268.956.956 0 0 1-.08-.415h.528c0 .09.011.164.034.224a.381.381 0 0 0 .092.141c.04.035.083.059.132.074a.514.514 0 0 0 .149.022.391.391 0 0 0 .192-.043.277.277 0 0 0 .116-.115.352.352 0 0 0 .04-.169Z"}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:35.581,height:1.395,x:50.232,y:28.256,rx:.68}),React.createElement("rect",{width:35.581,height:1.395,x:50.232,y:31.744,rx:.68}),React.createElement("rect",{width:35.581,height:1.395,x:50.232,y:35.233,rx:.68}),React.createElement("rect",{width:31.395,height:1.395,x:50.232,y:38.721,rx:.68}),React.createElement("rect",{width:20.93,height:1.395,x:50.232,y:42.209,rx:.68})),React.createElement("mask",{id:"d",fill:"#fff"},React.createElement("path",{d:"M50.232 46.395h34.186v8.372H50.232v-8.372Z"})),React.createElement("path",{fill:"#718491",d:"M84.418 54.767v-.14H50.232v.28h34.186v-.14Z"}),React.createElement("path",{fill:"#F0F0F0",d:"M50.232 46.395H66.28v5.581H50.232z"}),React.createElement("path",{fill:"#718491",fillRule:"evenodd",d:"M53.173 48.255c.094 0 .171.078.172.172v.797h.796a.172.172 0 0 1 0 .344h-.796v.797a.172.172 0 0 1-.344 0v-.797h-.798a.172.172 0 0 1 0-.344h.798v-.797c0-.094.077-.172.172-.172Z",clipRule:"evenodd"}),React.createElement("rect",{width:4.801,height:1.372,x:56.027,y:48.71,fill:"#718491",rx:.686}),React.createElement("path",{stroke:"#718491",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.343,d:"M62.543 49.395h1.937"}),React.createElement("path",{fill:"#718491",d:"M69.07 46.395h15.35v5.581H69.07z"}),React.createElement("rect",{width:6.977,height:1.395,x:73.582,y:48.698,fill:"#fff",rx:.698}),React.createElement("g",{fill:"#8796A1",opacity:.9},React.createElement("rect",{width:20.233,height:1.395,x:50.232,y:57.558,rx:.68}),React.createElement("rect",{width:14.651,height:1.395,x:50.232,y:61.047,rx:.68}))),React.createElement("rect",{width:82.234,height:62.699,x:7.023,y:13.651,stroke:"#718491",strokeWidth:.092,rx:1.349}),React.createElement("rect",{width:62.791,height:8.372,x:92.791,y:76.395,fill:"#718491",rx:1.395,transform:"rotate(-90 92.791 76.395)"}),React.createElement("rect",{width:62.791,height:8.372,x:92.791,y:76.395,stroke:"#718491",rx:1.395,transform:"rotate(-90 92.791 76.395)"}),React.createElement("rect",{width:41.861,height:1.395,x:96.279,y:72.907,fill:"#fff",rx:.698,transform:"rotate(-90 96.28 72.907)"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m96.152 20.692 1.36-1.36-1.36-1.359"})),React.createElement("rect",{width:62.791,height:8.372,x:104.65,y:76.395,fill:"#718491",rx:1.395,transform:"rotate(-90 104.65 76.395)"}),React.createElement("rect",{width:62.791,height:8.372,x:104.65,y:76.395,stroke:"#718491",rx:1.395,transform:"rotate(-90 104.65 76.395)"}),React.createElement("rect",{width:41.861,height:1.395,x:108.139,y:72.907,fill:"#fff",rx:.698,transform:"rotate(-90 108.139 72.907)"}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m108.012 17.973 1.359 1.36-1.359 1.36"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("rect",{width:82.326,height:62.791,x:6.977,y:13.605,fill:"#fff",rx:1.395})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M9.07 21.279v-4.186h4.186v4.186z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M94.885 21.279v-4.186h4.186v4.186z"})),React.createElement("clipPath",{id:"f"},React.createElement("path",{fill:"#fff",d:"M106.744 21.279v-4.186h4.186v4.186z"}))))},onlyPro:!0},{label:"Template Three",value:"product-accordion-three",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("rect",{width:53.453,height:34.884,x:6.977,y:27.558,fill:"#F0F0F0",rx:1.395}),React.createElement("mask",{id:"b",fill:"#fff"},React.createElement("rect",{width:24.15,height:34.884,x:6.977,y:27.558,rx:.778})),React.createElement("rect",{width:24.15,height:34.884,x:6.977,y:27.558,stroke:"#718491",strokeWidth:3.112,rx:.778}),React.createElement("path",{fill:"#718491",d:"M11.48 54.11c-2.13.868-3.89-1.81-4.503-3.258v10.034c0 .859.696 1.556 1.556 1.556H29.57c.86 0 1.556-.697 1.556-1.556V54.11c-5.031.964-4.36-5.454-9.21-7.963-4.737-2.451-7.777 6.877-10.438 7.963Z"}),React.createElement("ellipse",{cx:13.014,cy:40.284,fill:"#718491",rx:2.694,ry:2.669}),React.createElement("path",{fill:"#718491",d:"m34.267 31.047.308.623.688.1-.498.485.117.685-.615-.324-.615.324.118-.685-.498-.485.688-.1.307-.623ZM36.709 31.047l.307.623.688.1-.498.485.118.685-.615-.324-.616.324.118-.685-.498-.485.688-.1.308-.623ZM39.15 31.047l.308.623.687.1-.497.485.117.685-.615-.324-.615.324.117-.685-.497-.485.688-.1.307-.623ZM41.593 31.047l.308.623.688.1-.498.485.117.685-.615-.324-.615.324.118-.685-.498-.485.688-.1.307-.623ZM44.035 31.047l.307.623.688.1-.498.485.118.685-.615-.324-.615.324.117-.685-.498-.485.688-.1.308-.623ZM46.904 37.454v.462c0 .201-.021.374-.064.52a.943.943 0 0 1-.185.355.733.733 0 0 1-.285.204.98.98 0 0 1-.366.066c-.108 0-.208-.014-.301-.04a.757.757 0 0 1-.442-.353 1.14 1.14 0 0 1-.121-.322 1.964 1.964 0 0 1-.042-.43v-.462c0-.2.021-.372.064-.515a.962.962 0 0 1 .185-.354.73.73 0 0 1 .286-.202.978.978 0 0 1 .367-.066c.108 0 .207.014.299.042a.748.748 0 0 1 .442.349c.053.089.093.196.121.32.028.124.042.266.042.426Zm-.53.532v-.603a1.7 1.7 0 0 0-.016-.253.744.744 0 0 0-.046-.184.39.39 0 0 0-.077-.124.28.28 0 0 0-.105-.07.367.367 0 0 0-.13-.022.353.353 0 0 0-.16.035.298.298 0 0 0-.115.111.604.604 0 0 0-.074.202 1.652 1.652 0 0 0-.023.305v.603c0 .097.005.182.014.255a.867.867 0 0 0 .048.189.463.463 0 0 0 .077.127c.03.031.066.054.105.07a.383.383 0 0 0 .288-.014.308.308 0 0 0 .117-.113.593.593 0 0 0 .073-.206c.016-.084.024-.187.024-.308ZM44.746 37.454v.462c0 .201-.021.374-.064.52a.943.943 0 0 1-.185.355.733.733 0 0 1-.285.204.98.98 0 0 1-.367.066c-.107 0-.207-.014-.3-.04a.757.757 0 0 1-.442-.353 1.14 1.14 0 0 1-.121-.322 1.964 1.964 0 0 1-.042-.43v-.462c0-.2.02-.372.064-.515a.962.962 0 0 1 .185-.354.73.73 0 0 1 .286-.202.978.978 0 0 1 .367-.066c.107 0 .207.014.299.042a.748.748 0 0 1 .442.349c.052.089.093.196.12.32.029.124.043.266.043.426Zm-.53.532v-.603c0-.097-.005-.181-.017-.253a.74.74 0 0 0-.045-.184.39.39 0 0 0-.077-.124.28.28 0 0 0-.105-.07.367.367 0 0 0-.13-.022.353.353 0 0 0-.16.035.298.298 0 0 0-.115.111.604.604 0 0 0-.074.202 1.652 1.652 0 0 0-.024.305v.603c0 .097.005.182.015.255a.867.867 0 0 0 .048.189.463.463 0 0 0 .077.127c.03.031.065.054.104.07a.383.383 0 0 0 .288-.014.308.308 0 0 0 .118-.113.593.593 0 0 0 .073-.206c.016-.084.024-.187.024-.308ZM41.908 38.77c0-.079.027-.144.08-.197a.303.303 0 0 1 .22-.079c.09 0 .162.027.216.08a.26.26 0 0 1 .082.196.26.26 0 0 1-.082.196.296.296 0 0 1-.217.079.303.303 0 0 1-.218-.08.263.263 0 0 1-.08-.196ZM41.506 37.454v.462c0 .201-.022.374-.064.52a.943.943 0 0 1-.186.355.731.731 0 0 1-.284.204.98.98 0 0 1-.367.066c-.107 0-.208-.014-.3-.04a.756.756 0 0 1-.443-.353 1.14 1.14 0 0 1-.12-.322 1.964 1.964 0 0 1-.043-.43v-.462c0-.2.022-.372.064-.515a.96.96 0 0 1 .186-.354.728.728 0 0 1 .286-.202.978.978 0 0 1 .367-.066c.107 0 .207.014.299.042a.749.749 0 0 1 .441.349c.053.089.093.196.122.32.028.124.042.266.042.426Zm-.53.532v-.603a1.7 1.7 0 0 0-.017-.253.749.749 0 0 0-.046-.184.388.388 0 0 0-.077-.124.28.28 0 0 0-.104-.07.367.367 0 0 0-.13-.022.353.353 0 0 0-.16.035.298.298 0 0 0-.115.111.602.602 0 0 0-.074.202 1.652 1.652 0 0 0-.024.305v.603c0 .097.005.182.015.255a.867.867 0 0 0 .048.189.465.465 0 0 0 .077.127c.03.031.065.054.104.07a.383.383 0 0 0 .288-.014.307.307 0 0 0 .117-.113.593.593 0 0 0 .074-.206c.016-.084.024-.187.024-.308ZM39.348 37.454v.462c0 .201-.022.374-.065.52a.943.943 0 0 1-.185.355.731.731 0 0 1-.284.204.98.98 0 0 1-.367.066c-.108 0-.208-.014-.3-.04a.756.756 0 0 1-.443-.353 1.14 1.14 0 0 1-.12-.322 1.964 1.964 0 0 1-.043-.43v-.462c0-.2.021-.372.064-.515a.962.962 0 0 1 .185-.354.729.729 0 0 1 .287-.202.978.978 0 0 1 .366-.066c.108 0 .208.014.3.042a.749.749 0 0 1 .441.349c.053.089.093.196.121.32.029.124.043.266.043.426Zm-.53.532v-.603a1.7 1.7 0 0 0-.017-.253.749.749 0 0 0-.046-.184.388.388 0 0 0-.077-.124.28.28 0 0 0-.104-.07.367.367 0 0 0-.13-.022.353.353 0 0 0-.16.035.298.298 0 0 0-.116.111.602.602 0 0 0-.073.202 1.652 1.652 0 0 0-.024.305v.603c0 .097.005.182.015.255a.867.867 0 0 0 .047.189.465.465 0 0 0 .077.127c.031.031.066.054.105.07a.383.383 0 0 0 .288-.014.307.307 0 0 0 .117-.113.593.593 0 0 0 .074-.206c.016-.084.024-.187.024-.308ZM36.678 36.349v2.675h-.528v-2.067l-.634.202v-.416l1.106-.395h.056ZM34.338 35.93v.541h-.287v-.54h.287Zm-.035 2.995v.494h-.286v-.494h.286Zm.202-.601a.378.378 0 0 0-.039-.178.347.347 0 0 0-.121-.13 1.054 1.054 0 0 0-.224-.11 3.169 3.169 0 0 1-.42-.195.821.821 0 0 1-.28-.259.713.713 0 0 1-.101-.394c0-.151.036-.283.108-.394a.705.705 0 0 1 .299-.257 1.03 1.03 0 0 1 .447-.092c.13 0 .247.02.353.059a.739.739 0 0 1 .445.438c.04.107.06.228.06.365h-.526a.717.717 0 0 0-.023-.194.392.392 0 0 0-.07-.141.273.273 0 0 0-.106-.085.32.32 0 0 0-.138-.029.346.346 0 0 0-.183.044.26.26 0 0 0-.105.12.428.428 0 0 0-.031.168c0 .062.01.117.033.163.023.047.063.09.119.129.056.038.133.077.231.117.16.061.298.127.418.198.12.07.214.158.28.26.068.103.102.234.102.393a.716.716 0 0 1-.11.403.702.702 0 0 1-.308.254 1.14 1.14 0 0 1-.459.086 1.31 1.31 0 0 1-.336-.044.904.904 0 0 1-.302-.147.712.712 0 0 1-.217-.268.956.956 0 0 1-.08-.414h.528c0 .089.011.164.035.224a.382.382 0 0 0 .092.14c.039.035.083.06.132.074a.517.517 0 0 0 .148.022.39.39 0 0 0 .193-.042.277.277 0 0 0 .115-.116.351.351 0 0 0 .04-.168Z"}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:25.116,height:1.395,x:33.221,y:42.209,rx:.68}),React.createElement("rect",{width:23.023,height:1.395,x:33.221,y:45.698,rx:.68}),React.createElement("rect",{width:18.837,height:1.395,x:33.221,y:49.186,rx:.68})),React.createElement("path",{fill:"#718491",d:"M33.22 53.372h25.117v5.581H33.22z"}),React.createElement("rect",{width:13.954,height:1.395,x:38.803,y:55.465,fill:"#fff",rx:.698})),React.createElement("rect",{width:53.104,height:34.535,x:7.151,y:27.733,stroke:"#718491",strokeWidth:.349,rx:1.221}),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:24.15,height:34.884,x:62.522,y:27.558,rx:.778})),React.createElement("rect",{width:24.15,height:34.884,x:62.522,y:27.558,fill:"#F0F0F0",stroke:"#718491",strokeWidth:3.112,rx:.778}),React.createElement("path",{fill:"#718491",d:"M67.024 54.11c-2.128.868-3.889-1.81-4.502-3.258v10.034c0 .859.696 1.556 1.556 1.556h21.038c.86 0 1.556-.697 1.556-1.556V54.11c-5.032.964-4.36-5.454-9.21-7.963-4.737-2.451-7.777 6.877-10.438 7.963Z"}),React.createElement("ellipse",{cx:68.559,cy:40.284,fill:"#718491",rx:2.694,ry:2.669}),React.createElement("mask",{id:"d",fill:"#fff"},React.createElement("rect",{width:24.15,height:34.884,x:88.766,y:27.558,rx:.778})),React.createElement("rect",{width:24.15,height:34.884,x:88.766,y:27.558,fill:"#F0F0F0",stroke:"#718491",strokeWidth:3.112,rx:.778}),React.createElement("path",{fill:"#718491",d:"M93.268 53.96c-2.128.85-3.888-1.773-4.502-3.192v9.798c0 .86.696 1.556 1.556 1.556h21.038c.859 0 1.556-.697 1.556-1.556V53.96c-5.031.944-4.514-4.972-9.21-7.801-4.542-2.737-7.777 6.737-10.438 7.8Z"}),React.createElement("ellipse",{cx:94.805,cy:40.025,fill:"#718491",rx:2.666,ry:2.642}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("rect",{width:53.453,height:34.884,x:6.977,y:27.558,fill:"#fff",rx:1.395}))))},onlyPro:!0},{label:"Template Four",value:"product-accordion-four",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:90,fill:"none",viewBox:"0 0 120 90"},React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:88.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("rect",{width:106.047,height:44.651,x:6.977,y:22.674,fill:"#fff",rx:1.395}),React.createElement("mask",{id:"b",fill:"#fff"},React.createElement("rect",{width:106.047,height:16.744,x:6.977,y:22.674,rx:.335})),React.createElement("rect",{width:106.047,height:16.744,x:6.977,y:22.674,fill:"#D8DADB",stroke:"#718491",strokeWidth:1.339,rx:.335}),React.createElement("path",{fill:"#718491",d:"M26.748 35.42c-9.347.416-17.075-2.98-19.771-3.676v7.005c0 .37.3.67.67.67h104.706c.37 0 .67-.3.67-.67v-5.61c-22.093.463-22.66-4.027-43.953-5.231-20.8-1.177-30.639 6.99-42.322 7.511Z"}),React.createElement("ellipse",{cx:27.551,cy:28.443,fill:"#718491",rx:2.864,ry:2.838}),React.createElement("path",{fill:"#718491",d:"m11.511 42.907.308.623.688.1-.498.485.117.685-.615-.323-.615.323.118-.685-.498-.485.688-.1.307-.623ZM13.953 42.907l.307.623.688.1-.498.485.118.685-.615-.323-.615.323.117-.685-.498-.485.688-.1.308-.623ZM16.394 42.907l.308.623.688.1-.498.485.117.685-.615-.323-.615.323.117-.685-.497-.485.688-.1.307-.623ZM18.837 42.907l.308.623.688.1-.498.485.118.685-.616-.323-.615.323.118-.685-.498-.485.688-.1.307-.623ZM21.279 42.907l.308.623.687.1-.497.485.117.685-.615-.323-.615.323.117-.685-.497-.485.687-.1.308-.623ZM24.148 49.315v.462c0 .2-.021.373-.064.519a.943.943 0 0 1-.185.356.73.73 0 0 1-.284.203 1.078 1.078 0 0 1-.668.026.756.756 0 0 1-.442-.352 1.14 1.14 0 0 1-.121-.323 1.964 1.964 0 0 1-.042-.43v-.461c0-.2.021-.373.064-.516a.962.962 0 0 1 .185-.354.73.73 0 0 1 .286-.201.98.98 0 0 1 .367-.066c.108 0 .207.014.3.042a.75.75 0 0 1 .25.126.754.754 0 0 1 .191.222c.053.09.093.197.121.321.028.124.042.266.042.426Zm-.53.532v-.604a1.7 1.7 0 0 0-.016-.253.743.743 0 0 0-.046-.183.385.385 0 0 0-.077-.125.281.281 0 0 0-.105-.07.368.368 0 0 0-.13-.022.353.353 0 0 0-.16.035.297.297 0 0 0-.115.112.604.604 0 0 0-.073.202 1.653 1.653 0 0 0-.024.304v.604c0 .096.005.181.015.255a.864.864 0 0 0 .047.188.465.465 0 0 0 .077.127.28.28 0 0 0 .105.07.382.382 0 0 0 .288-.013.306.306 0 0 0 .117-.114.592.592 0 0 0 .073-.205c.016-.085.024-.187.024-.308ZM21.99 49.315v.462c0 .2-.021.373-.064.519a.943.943 0 0 1-.185.356.73.73 0 0 1-.285.203 1.078 1.078 0 0 1-.668.026.756.756 0 0 1-.441-.352 1.137 1.137 0 0 1-.121-.323 1.964 1.964 0 0 1-.042-.43v-.461c0-.2.021-.373.064-.516a.96.96 0 0 1 .185-.354.73.73 0 0 1 .286-.201.98.98 0 0 1 .367-.066c.108 0 .207.014.299.042a.75.75 0 0 1 .251.126.756.756 0 0 1 .19.222c.053.09.094.197.122.321.028.124.042.266.042.426Zm-.53.532v-.604a1.7 1.7 0 0 0-.016-.253.743.743 0 0 0-.046-.183.385.385 0 0 0-.077-.125.281.281 0 0 0-.105-.07.368.368 0 0 0-.13-.022.352.352 0 0 0-.16.035.297.297 0 0 0-.115.112.604.604 0 0 0-.073.202 1.653 1.653 0 0 0-.024.304v.604c0 .096.005.181.014.255a.864.864 0 0 0 .048.188.465.465 0 0 0 .077.127.28.28 0 0 0 .105.07.382.382 0 0 0 .288-.013.306.306 0 0 0 .117-.114.592.592 0 0 0 .073-.205c.016-.085.024-.187.024-.308ZM19.152 50.63c0-.078.027-.144.081-.196a.303.303 0 0 1 .218-.08c.09 0 .163.027.217.08a.26.26 0 0 1 .082.196.26.26 0 0 1-.082.196.296.296 0 0 1-.217.08.303.303 0 0 1-.218-.08.263.263 0 0 1-.08-.196ZM18.75 49.315v.462c0 .2-.021.373-.064.519a.945.945 0 0 1-.186.356.731.731 0 0 1-.284.203.98.98 0 0 1-.367.066c-.107 0-.207-.013-.3-.04a.757.757 0 0 1-.442-.352 1.14 1.14 0 0 1-.122-.323 1.964 1.964 0 0 1-.042-.43v-.461c0-.2.022-.373.065-.516a.96.96 0 0 1 .185-.354.73.73 0 0 1 .286-.201.98.98 0 0 1 .367-.066c.107 0 .207.014.299.042a.75.75 0 0 1 .25.126.754.754 0 0 1 .192.222c.052.09.093.197.12.321.029.124.043.266.043.426Zm-.53.532v-.604a1.7 1.7 0 0 0-.017-.253.743.743 0 0 0-.046-.183.388.388 0 0 0-.076-.125.28.28 0 0 0-.105-.07.367.367 0 0 0-.13-.022.352.352 0 0 0-.16.035.297.297 0 0 0-.115.112.604.604 0 0 0-.074.202 1.654 1.654 0 0 0-.024.304v.604c0 .096.005.181.015.255a.864.864 0 0 0 .048.188.462.462 0 0 0 .077.127c.03.032.065.055.104.07a.383.383 0 0 0 .288-.013.306.306 0 0 0 .118-.114.592.592 0 0 0 .073-.205c.016-.085.024-.187.024-.308ZM16.592 49.315v.462c0 .2-.022.373-.064.519a.945.945 0 0 1-.186.356.731.731 0 0 1-.284.203.98.98 0 0 1-.367.066c-.107 0-.208-.013-.3-.04a.757.757 0 0 1-.443-.352 1.14 1.14 0 0 1-.12-.323 1.964 1.964 0 0 1-.043-.43v-.461c0-.2.022-.373.064-.516a.962.962 0 0 1 .186-.354.73.73 0 0 1 .286-.201.98.98 0 0 1 .367-.066c.107 0 .207.014.298.042a.75.75 0 0 1 .252.126.754.754 0 0 1 .19.222c.053.09.093.197.121.321.029.124.043.266.043.426Zm-.53.532v-.604a1.7 1.7 0 0 0-.017-.253.743.743 0 0 0-.046-.183.388.388 0 0 0-.077-.125.28.28 0 0 0-.104-.07.367.367 0 0 0-.13-.022.353.353 0 0 0-.16.035.297.297 0 0 0-.116.112.604.604 0 0 0-.073.202 1.654 1.654 0 0 0-.024.304v.604c0 .096.005.181.015.255a.864.864 0 0 0 .048.188.462.462 0 0 0 .077.127c.03.032.065.055.104.07a.383.383 0 0 0 .288-.013.306.306 0 0 0 .117-.114.592.592 0 0 0 .074-.205c.016-.085.024-.187.024-.308ZM13.923 48.209v2.676h-.529v-2.067l-.634.202v-.417l1.106-.394h.057ZM11.582 47.79v.542h-.286v-.541h.286Zm-.035 2.996v.493h-.286v-.493h.286Zm.202-.602a.38.38 0 0 0-.039-.178.347.347 0 0 0-.12-.13 1.06 1.06 0 0 0-.225-.11 3.145 3.145 0 0 1-.42-.194.82.82 0 0 1-.28-.26.712.712 0 0 1-.101-.393c0-.152.036-.283.108-.395a.706.706 0 0 1 .299-.257 1.03 1.03 0 0 1 .448-.091c.13 0 .246.02.352.058a.738.738 0 0 1 .445.439c.04.106.06.228.06.365h-.525a.716.716 0 0 0-.024-.195.393.393 0 0 0-.07-.14.272.272 0 0 0-.106-.085.319.319 0 0 0-.138-.03.345.345 0 0 0-.183.044.26.26 0 0 0-.105.12.428.428 0 0 0-.031.168c0 .063.01.117.033.164.023.046.063.089.12.128.055.038.132.077.23.117.16.062.299.128.418.199.12.07.214.157.281.26.067.103.1.234.1.392a.716.716 0 0 1-.11.404.702.702 0 0 1-.307.253 1.14 1.14 0 0 1-.459.086c-.112 0-.224-.015-.335-.044a.904.904 0 0 1-.303-.146.713.713 0 0 1-.216-.268.956.956 0 0 1-.081-.415h.528c0 .09.012.164.035.224a.383.383 0 0 0 .092.141.35.35 0 0 0 .132.074.513.513 0 0 0 .148.022.39.39 0 0 0 .193-.043.277.277 0 0 0 .115-.115.351.351 0 0 0 .04-.169Z"}),React.createElement("rect",{width:99.07,height:1.395,x:10.465,y:54.07,fill:"#718491",opacity:.9,rx:.68}),React.createElement("path",{fill:"#718491",d:"M10.465 58.256H35.58v5.58H10.465z"}),React.createElement("rect",{width:13.954,height:1.395,x:16.047,y:60.349,fill:"#fff",rx:.698})),React.createElement("rect",{width:105.698,height:44.302,x:7.151,y:22.849,stroke:"#718491",strokeWidth:.349,rx:1.221}),React.createElement("mask",{id:"c",fill:"#fff"},React.createElement("rect",{width:106.047,height:12.558,x:6.977,y:6.977,rx:.335})),React.createElement("rect",{width:106.047,height:12.558,x:6.977,y:6.977,fill:"#D8DADB",stroke:"#718491",strokeWidth:1.339,rx:.335}),React.createElement("path",{fill:"#718491",d:"M26.748 16.36c-9.347.313-17.075-2.235-19.771-2.756v5.086c0 .37.3.67.67.67h104.706c.37 0 .67-.3.67-.67v-4.04c-22.093.347-22.66-3.02-43.953-3.924-20.8-.883-30.639 5.243-42.322 5.634Z"}),React.createElement("ellipse",{cx:27.552,cy:11.303,fill:"#718491",rx:2.48,ry:2.458}),React.createElement("mask",{id:"d",fill:"#fff"},React.createElement("rect",{width:106.047,height:12.558,x:6.977,y:71.163,rx:.335})),React.createElement("rect",{width:106.047,height:12.558,x:6.977,y:71.163,fill:"#D8DADB",stroke:"#718491",strokeWidth:1.339,rx:.335}),React.createElement("path",{fill:"#718491",d:"M26.748 80.722c-9.347.312-17.075-2.236-19.771-2.757v5.086c0 .37.3.67.67.67h104.706c.37 0 .67-.3.67-.67v-4.04c-22.093.348-22.66-3.02-43.953-3.923-20.8-.883-30.639 5.243-42.322 5.634Z"}),React.createElement("ellipse",{cx:27.552,cy:75.489,fill:"#718491",rx:2.48,ry:2.457}),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("rect",{width:106.047,height:44.651,x:6.977,y:22.674,fill:"#fff",rx:1.395}))))},onlyPro:!0}],"sidebar-tab-accordion":[{label:"Template One",value:"sidebar-tab-accordion-one",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:74,fill:"none"},React.createElement("rect",{width:118.953,height:72.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:72.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",{clipPath:"url(#eab-sidebar-5885485584)"},React.createElement("rect",{width:106.047,height:60,x:6.977,y:7,fill:"#fff",rx:1.395}),React.createElement("mask",{id:"b",fill:"#fff"},React.createElement("path",{d:"M7.674.372h41.86v73.256H7.675V.372Z"})),React.createElement("path",{fill:"#F0F0F0",d:"M7.674.372h41.86v73.256H7.675V.372Z"}),React.createElement("path",{fill:"#718491",d:"M49.535.372h-.698v73.256h1.396V.372h-.698Z",mask:"url(#b)"}),React.createElement("rect",{width:41.861,height:5.581,x:7.674,y:10.139,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:27.209,height:1.395,x:11.163,y:12.233,fill:"#718491",rx:.698}),React.createElement("path",{fill:"#718491",d:"M7.674 19.209h41.861v8.372H7.674z"}),React.createElement("path",{stroke:"#718491",d:"M7.674 19.209h41.861v8.372H7.674z"}),React.createElement("rect",{width:25.116,height:1.395,x:11.163,y:22.698,fill:"#fff",rx:.698}),React.createElement("g",{clipPath:"url(#eab-sidebar-5885485585)"},React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m43.127 21.996 1.36 1.36-1.36 1.36"})),React.createElement("rect",{width:41.861,height:5.581,x:7.674,y:31.07,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:27.209,height:1.395,x:11.163,y:33.163,fill:"#718491",rx:.698}),React.createElement("rect",{width:41.861,height:5.581,x:7.674,y:40.139,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:25.116,height:1.395,x:11.163,y:42.233,fill:"#718491",rx:.698}),React.createElement("rect",{width:41.861,height:5.581,x:7.674,y:49.209,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:27.209,height:1.395,x:11.163,y:51.302,fill:"#718491",rx:.698}),React.createElement("rect",{width:41.861,height:5.581,x:7.674,y:58.279,stroke:"#718491",rx:1.395}),React.createElement("rect",{width:21.628,height:1.395,x:11.163,y:60.372,fill:"#718491",rx:.698}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:49.535,height:1.395,x:55.116,y:49.558,rx:.68}),React.createElement("rect",{width:52.326,height:1.395,x:55.116,y:53.047,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:55.116,y:56.535,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:52.326,height:1.395,x:55.116,y:32.814,rx:.68}),React.createElement("rect",{width:47.442,height:1.395,x:55.116,y:36.302,rx:.68}),React.createElement("rect",{width:52.326,height:1.395,x:55.116,y:39.791,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:55.116,y:43.279,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:52.326,height:1.395,x:55.116,y:16.07,rx:.68}),React.createElement("rect",{width:52.326,height:1.395,x:55.116,y:19.558,rx:.68}),React.createElement("rect",{width:46.047,height:1.395,x:55.116,y:23.047,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:55.116,y:26.535,rx:.68}))),React.createElement("rect",{width:105.349,height:59.302,x:7.325,y:7.349,stroke:"#718491",strokeWidth:.698,rx:1.047}),React.createElement("defs",null,React.createElement("clipPath",{id:"eab-sidebar-5885485584"},React.createElement("rect",{width:106.047,height:60,x:6.977,y:7,fill:"#fff",rx:1.395})),React.createElement("clipPath",{id:"eab-sidebar-5885485585"},React.createElement("path",{fill:"#fff",d:"M41.86 21.302h4.186v4.186H41.86z"}))))}},{label:"Template Two",value:"sidebar-tab-accordion-two",Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:74,fill:"none",viewBox:"0 0 120 74"},React.createElement("rect",{width:118.953,height:72.954,x:.523,y:.523,fill:"#fff",rx:2.267}),React.createElement("rect",{width:118.953,height:72.954,x:.523,y:.523,stroke:"#9EA9B2",strokeWidth:1.047,rx:2.267}),React.createElement("g",null,React.createElement("path",{fill:"#fff",d:"M11.86 16.07h96.28v41.86H11.86z"}),React.createElement("path",{stroke:"#718491",strokeWidth:.349,d:"M15.523 16.244h38.721v8.023H15.523z"}),React.createElement("rect",{width:21.628,height:1.395,x:22.325,y:19.558,fill:"#718491",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#718491",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m47.331 19.43 1.36 1.36 1.36-1.36"})),React.createElement("path",{fill:"#32383C",d:"M11.86 16.581h6.977v6.977H11.86z"}),React.createElement("path",{fill:"#fff",d:"M15.688 18.492v2.485h-.479v-1.9l-.473.183v-.399l.9-.37h.052Z"}),React.createElement("path",{fill:"#718491",d:"M15.523 27.407h38.721v8.023H15.523z"}),React.createElement("path",{stroke:"#718491",strokeWidth:.349,d:"M15.523 27.407h38.721v8.023H15.523z"}),React.createElement("rect",{width:21.628,height:1.395,x:22.325,y:30.721,fill:"#fff",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m47.331 30.592 1.36 1.36 1.36-1.36"})),React.createElement("path",{fill:"#32383C",d:"M11.86 27.744h6.977v6.977H11.86z"}),React.createElement("path",{fill:"#fff",d:"M16.09 31.743v.396h-1.461v-.338l.67-.854c.065-.088.116-.167.152-.235.037-.068.063-.129.079-.182a.608.608 0 0 0-.002-.342.256.256 0 0 0-.077-.123.177.177 0 0 0-.123-.044.206.206 0 0 0-.146.054.334.334 0 0 0-.087.15.762.762 0 0 0-.027.213h-.479c0-.148.03-.283.09-.407a.734.734 0 0 1 .258-.296.707.707 0 0 1 .4-.111c.151 0 .278.028.382.085a.55.55 0 0 1 .233.244c.053.104.08.23.08.376a.9.9 0 0 1-.032.24 1.227 1.227 0 0 1-.092.232 1.76 1.76 0 0 1-.149.233c-.058.08-.122.162-.194.247l-.323.462h.848Z"}),React.createElement("path",{stroke:"#718491",strokeWidth:.349,d:"M15.523 38.57h38.721v8.023H15.523z"}),React.createElement("rect",{width:21.628,height:1.395,x:22.325,y:41.884,fill:"#718491",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#718491",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m47.331 41.755 1.36 1.36 1.36-1.36"})),React.createElement("path",{fill:"#32383C",d:"M11.86 38.907h6.977v6.977H11.86z"}),React.createElement("path",{fill:"#fff",d:"M15.058 41.843h.233c.06 0 .108-.014.146-.041a.245.245 0 0 0 .086-.12.554.554 0 0 0 .001-.344.24.24 0 0 0-.078-.112.205.205 0 0 0-.133-.043.222.222 0 0 0-.2.13.34.34 0 0 0-.03.15h-.478c0-.136.03-.255.092-.356a.644.644 0 0 1 .252-.235.729.729 0 0 1 .35-.086c.145 0 .271.027.38.08a.59.59 0 0 1 .256.24.756.756 0 0 1 .048.617.62.62 0 0 1-.338.338.715.715 0 0 1-.277.05h-.31v-.268Zm0 .386v-.26h.31c.117 0 .218.015.305.046a.549.549 0 0 1 .344.332.748.748 0 0 1 .042.259c0 .115-.02.219-.058.31a.643.643 0 0 1-.162.23.718.718 0 0 1-.241.143.911.911 0 0 1-.564.005.626.626 0 0 1-.392-.354.78.78 0 0 1-.06-.319h.477c0 .061.011.116.033.165a.29.29 0 0 0 .09.113c.037.027.08.04.128.04a.248.248 0 0 0 .238-.161.452.452 0 0 0 .033-.177.551.551 0 0 0-.034-.213.237.237 0 0 0-.1-.12.298.298 0 0 0-.156-.039h-.233Z"}),React.createElement("path",{stroke:"#718491",strokeWidth:.349,d:"M15.523 49.733h38.721v8.023H15.523z"}),React.createElement("rect",{width:21.628,height:1.395,x:22.325,y:53.047,fill:"#718491",rx:.698}),React.createElement("g",null,React.createElement("path",{stroke:"#718491",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:.68,d:"m47.331 52.918 1.36 1.36 1.36-1.36"})),React.createElement("path",{fill:"#32383C",d:"M11.86 50.07h6.977v6.977H11.86z"}),React.createElement("path",{fill:"#fff",d:"M16.11 53.532v.397h-1.514l-.022-.312.843-1.632h.378l-.386.726-.368.82h1.07Zm-.21-1.547v2.48h-.48v-2.48h.48ZM57.383 16.244h50.581v41.512H57.383z"}),React.createElement("path",{stroke:"#718491",strokeWidth:.349,d:"M57.383 16.244h50.581v41.512H57.383z"}),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:41.163,height:1.395,x:62.093,y:47.814,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:62.093,y:51.302,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:41.163,height:1.395,x:62.093,y:34.558,rx:.68}),React.createElement("rect",{width:41.163,height:1.395,x:62.093,y:38.047,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:62.093,y:41.535,rx:.68})),React.createElement("g",{fill:"#718491",opacity:.9},React.createElement("rect",{width:41.163,height:1.395,x:62.093,y:21.302,rx:.68}),React.createElement("rect",{width:41.163,height:1.395,x:62.093,y:24.791,rx:.68}),React.createElement("rect",{width:30.698,height:1.395,x:62.093,y:28.279,rx:.68}))),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M11.86 16.07h96.28v41.86H11.86z"})),React.createElement("clipPath",{id:"b"},React.createElement("path",{fill:"#fff",d:"M46.744 18.163h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"c"},React.createElement("path",{fill:"#fff",d:"M46.744 29.326h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"d"},React.createElement("path",{fill:"#fff",d:"M46.744 40.488h4.186v4.186h-4.186z"})),React.createElement("clipPath",{id:"e"},React.createElement("path",{fill:"#fff",d:"M46.744 51.651h4.186v4.186h-4.186z"}))))},onlyPro:!0}]},kn={modules:{generate_faqs_with_ai:{is_active:!0},saved_templates:{is_active:!0},pattern_library:{is_active:!0}},integrations:{gemini:{is_active:!0,model:"gemini-3.1-flash-lite-preview",api_key:"",max_token:2e3},google_recaptcha:{is_active:!0,site_key_v2:"",secret_key_v2:"",site_key_v3:"",secret_key_v3:""}}};function Sn(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 On(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(In(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,In(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,In(d,"constructor",c),In(c,"constructor",s),s.displayName="GeneratorFunction",In(c,i,"GeneratorFunction"),In(d),In(d,i,"Generator"),In(d,r,function(){return this}),In(d,"toString",function(){return"[object Generator]"}),(Pn=function(){return{w:o,m:h}})()}function In(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}In=function(e,t,n,r){function o(t,n){In(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},In(e,t,n,r)}function Dn(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}var jn=function(){return(0,p.useSelect)(function(e){var t;return{deviceType:(null===(t=e("core/editor"))||void 0===t?void 0:t.getDeviceType())||"Desktop"}},[]).deviceType||""},Ln=function(e,t){return e.includes(t)},Nn=function(e){return JSON.stringify(e)},Bn=function(){var e,t=(e=Pn().m(function e(t){var n;return Pn().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Nt.post(sp_eab_localize_data.ajaxUrl,t,{headers:{"Content-Type":"multipart/form-data"}});case 1:return n=e.v,e.a(2,n.data)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){Dn(o,r,i,a,l,"next",e)}function l(e){Dn(o,r,i,a,l,"throw",e)}a(void 0)})});return function(_x){return t.apply(this,arguments)}}(),Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null==e||!e.isActive)return"";var t=e.value,n=e.unit,r=e.color;return"".concat("inset"===n?"inset ":"").concat(t.top,"px ").concat(t.right,"px ").concat(t.bottom,"px ").concat(t.left,"px ").concat(r).trim()||""},Hn=function(e){var t=e.style,n=e.solid,r=e.gradient,i=e.image;return{transparent:"transparent",solid:n,gradient:r,image:null!=i&&i.url?"url(".concat(null==i?void 0:i.url,")"):""}[t]},zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return"";if("object"===Tn(e)){var r=Object.values(e).filter(function(e){return null!=e&&e.toString().trim().length>0});return 0===r.length?"":r.map(function(e){return"".concat(n>1?e/n:e).concat(t)}).join(" ")}return e.toString().trim().length>0?"".concat(n>1?e/n:e).concat(t):""},Vn=function(e,t){return"object"!==Tn(e.unit)?e.unit:e.unit[t]},Wn=function(e){var t="";return null==e||e.forEach(function(e){if(e.styles){var n="";Object.entries(e.styles).forEach(function(e){var t,r,i=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,r)||Mn(t,r)||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.")}()),o=i[0],a=i[1];null!=a&&""!==a&&(n+="".concat(o,": ").concat(a,";"))}),n&&(t+="".concat(e.selector," {").concat(n,"}"))}}),t},Zn=function(e){var t=e.family,n=e.fontWeight,r=e.style,i=e.transform,o=e.decoration;return On(On(On(On(On({},t&&{"font-family":t}),n&&{"font-weight":n}),r&&"normal"!==r&&{"font-style":r}),"none"!==i&&{"text-transform":i}),"none"!==o&&{"text-decoration":o})},qn=function(e,t,n){var r,i,o=e["".concat(n,"FontSize")].device[t],a=e["".concat(n,"LineHeight")].device[t],l=null===(r=e["".concat(n,"LetterSpacing")])||void 0===r||null===(r=r.device)||void 0===r?void 0:r[t];return null!=l&&""!==l||(l=0),On(On(On({},o&&{"font-size":o+e["".concat(n,"FontSize")].unit[t]}),a&&{"line-height":a}),void 0!==l&&{"letter-spacing":l+((null===(i=e["".concat(n,"LetterSpacing")])||void 0===i||null===(i=i.unit)||void 0===i?void 0:i[t])||"px")})},Kn=function(e,t){var n=e.style,r=e.color;return"none"===n?{border:"none"}:{"border-style":n,"border-color":r,"border-width":zn(null==t?void 0:t.value,null==t?void 0:t.unit)}},Un=function(e){var t=new Map;return e.forEach(function(e){if(e){var n=e.selector,r=e.styles;if(Object.keys(r).length>0){var i=t.get(n);t.set(n,{selector:n,styles:i?On(On({},i.styles),r):r})}}}),Array.from(t.values())},$n=function(e){var t=e.desktopCss,n=e.tabletCss,r=e.mobileCss,i=Un(t),o=Un(n),a=Un(r);return"".concat(Wn(i)," @media only screen and (min-width: 600px) and (max-width: 1023px) { ").concat(Wn(o)," } @media only screen and (max-width: 599px) {").concat(Wn(a),"}")},Gn=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=On(On({},e),{},{className:"sp-easy-accordion-block ".concat(null==e?void 0:e.className)});return""!==r&&(o=On(On({},o),{},{id:"".concat(null===(t=o)||void 0===t?void 0:t.id," ").concat(r)})),""!==r&&(o=On(On({},o),{},{className:"".concat(null===(n=o)||void 0===n?void 0:n.className," ").concat(i)})),o},Yn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"editor",n=null==e?void 0:e.filter(function(e){var t=e.family;return(null==t?void 0:t.length)>0});if(0===n.length)return"";if("editor"===t){var r=null==n?void 0:n.map(function(e){var t=e.family,n=e.fontWeight;return"family=".concat(t.replaceAll(" ","+"),":wght@").concat(n,"&")}).join("&");return"@import url('https://fonts.googleapis.com/css2?".concat(r,"display=swap');")}var i,o=null==n?void 0:n.map(function(e){var t=e.family,n=e.fontWeight;return"".concat(t,":").concat(n)}).filter(Boolean),a=function(e){if(Array.isArray(e))return An(e)}(i=new Set(o))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||Mn(i)||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.")}();return Nn(a)},Xn=function(e){return Array.isArray(e)&&(null==e?void 0:e.map(function(e){return e.value}))},Jn=function(e,t){var n=parseInt(null==e?void 0:e.replace("#",""),16),r=n>>16&255,i=n>>8&255,o=255&n;return t?"rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(t,")"):"".concat(r,", ").concat(i,", ").concat(o)},Qn=function(e){var t,n,r,i;return null===(i=null===(r=null===(n=null===(t=e)||void 0===t?void 0:t.replace(/[\s\S]*?<\/script>/gi,""))||void 0===n?void 0:n.replace(//gi,""))||void 0===r?void 0:r.replace(/<[^>]+>/g,""))||void 0===i||null===(i=i.replace(/\s+/g," "))||void 0===i?void 0:i.trim()},er=function(e){return"\n You are an expert content writer specializing in FAQ generation.\n \n Task:\n Generate exactly ".concat(null==e?void 0:e.numberOfFaqs," unique FAQs (questions and answers).\n \n Context:\n - Topic: ").concat(null==e?void 0:e.prompt,"\n ").concat(null!=e&&e.selectedPost?"- Reference URL: ".concat(null==e?void 0:e.selectedPost):"","\n \n Requirements:\n - Language: Write strictly in ").concat(null==e?void 0:e.language,". Do not mix languages.\n - Tone: Use a ").concat(null==e?void 0:e.tune," tone consistently across all FAQs.\n ").concat(null!=e&&e.keywords?"- Include these keywords naturally where relevant: ".concat(null==e?void 0:e.keywords):"",'\n \n Guidelines:\n - Each question must be clear, natural, and directly related to the topic.\n - Each answer must be concise (2–3 sentences) and helpful.\n - Avoid duplicate or very similar questions.\n - Do NOT include numbering in questions.\n - Do NOT include explanations or extra text outside JSON.\n \n Output Rules (VERY IMPORTANT):\n - Return ONLY a valid JSON array.\n - Do NOT use markdown (no ```).\n - Do NOT include any text before or after JSON.\n - Ensure the JSON is properly formatted (no trailing commas).\n \n Expected Output:\n [\n {\n "question": "FAQ question here",\n "answer": "FAQ answer here"\n }\n ]\n\t\t')},tr=function(e){var t,n=null===(t=sp_eab_localize_data)||void 0===t||null===(t=t.dashboardSettings)||void 0===t||null===(t=t.modules)||void 0===t?void 0:t[e];return n?null==n?void 0:n.is_active:null==kn?void 0:kn.modules[e].is_active},nr=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none"},React.createElement("path",{d:"M6.36397 7.77819L11.3137 12.7279L12.7279 11.3137L7.77819 6.36397L12.7279 1.41423L11.3137 1.1603e-05L6.36397 4.94976L1.41421 0L0 1.41421L4.94976 6.36397L1.18415e-05 11.3137L1.41423 12.7279L6.36397 7.77819Z",fill:"white"}))},rr=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor"},React.createElement("path",{d:"M6.1443 6.15055C9.34843 2.94642 14.6518 2.94642 17.8559 6.15055L15.3147 8.69176H21.9439V2.06256L19.8446 4.16179C15.5357 -0.147191 8.46452 -0.147191 4.15554 4.16179C1.72485 6.59248 0.730475 9.90708 1.06193 13.1112H3.82408C3.49262 10.6805 4.26601 8.02884 6.1443 6.15055Z",fill:"currentColor"}),React.createElement("path",{d:"M22.9366 10.9017H20.1745C20.5059 13.3324 19.7325 15.9841 17.8542 17.8624C14.6501 21.0665 9.34676 21.0665 6.14268 17.8624L8.68389 15.3212H2.05469V21.9504L4.15392 19.8512C8.4629 24.1601 15.4236 24.1601 19.7325 19.8512C22.2737 17.4205 23.2681 14.1059 22.9366 10.9017Z",fill:"currentColor"}))},ir=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-label":"2x2 grid filled"},React.createElement("rect",{x:"3",y:"3",width:"8",height:"8",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"13",y:"3",width:"8",height:"8",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"3",y:"13",width:"8",height:"8",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"13",y:"13",width:"8",height:"8",rx:"1",fill:"currentColor"}))},or=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-label":"3x3 grid filled"},React.createElement("rect",{x:"2",y:"2",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"16",y:"2",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"2",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"16",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"9",y:"16",width:"6",height:"6",rx:"1",fill:"currentColor"}),React.createElement("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",fill:"currentColor"}))},ar=function(){return React.createElement("svg",{width:"34",height:"24",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10 17.5l-1.45-1.32C4.4 12.36 2 10.28 2 7.5 2 5.42 3.42 4 5.5 4c1.54 0 3.04 1 3.57 2.36h1.87C11.46 5 12.96 4 14.5 4 16.58 4 18 5.42 18 7.5c0 2.78-2.4 4.86-6.55 8.68L10 17.5z",fill:"none"}))},lr=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"21",viewBox:"0 0 23 21",fill:"currentColor"},React.createElement("path",{d:"M20.2913 2.61183C19.7805 2.10083 19.1741 1.69547 18.5066 1.41891C17.8392 1.14235 17.1238 1 16.4013 1C15.6788 1 14.9634 1.14235 14.2959 1.41891C13.6285 1.69547 13.022 2.10083 12.5113 2.61183L11.4513 3.67183L10.3913 2.61183C9.3596 1.58013 7.96032 1.00053 6.50129 1.00053C5.04226 1.00053 3.64298 1.58013 2.61129 2.61183C1.5796 3.64352 1 5.04279 1 6.50183C1 7.96086 1.5796 9.36013 2.61129 10.3918L11.4513 19.2318L20.2913 10.3918C20.8023 9.88107 21.2076 9.27464 21.4842 8.60718C21.7608 7.93972 21.9031 7.22431 21.9031 6.50183C21.9031 5.77934 21.7608 5.06393 21.4842 4.39647C21.2076 3.72901 20.8023 3.12258 20.2913 2.61183Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},sr=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M7.37544 2C7.37544 1.65482 7.65526 1.375 8.00044 1.375C8.34562 1.375 8.62544 1.65482 8.62544 2V9.49121L11.5356 6.58105C11.7797 6.33698 12.1753 6.33698 12.4194 6.58105C12.6635 6.82513 12.6635 7.22077 12.4194 7.46484L8.44282 11.4424C8.19875 11.6865 7.80214 11.6865 7.55806 11.4424L3.5815 7.46484C3.33742 7.22077 3.33742 6.82513 3.5815 6.58105C3.82557 6.33698 4.22121 6.33698 4.46528 6.58105L7.37544 9.49121V2Z",fill:"white"}),React.createElement("path",{d:"M1.375 13V10C1.375 9.65482 1.65482 9.375 2 9.375C2.34518 9.375 2.625 9.65482 2.625 10V13C2.625 13.2071 2.79289 13.375 3 13.375H13C13.2071 13.375 13.375 13.2071 13.375 13V10C13.375 9.65482 13.6548 9.375 14 9.375C14.3452 9.375 14.625 9.65482 14.625 10V13C14.625 13.8975 13.8975 14.625 13 14.625H3C2.10254 14.625 1.375 13.8975 1.375 13Z",fill:"white"}))},cr=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M10.2168 6.01685C10.4052 6.36235 10.7221 6.62112 11.1104 6.70239C11.5047 6.7848 11.908 6.66835 12.2129 6.38892C12.6721 5.96794 13.1316 5.54719 13.5908 5.12622C13.9105 4.83318 14.2301 4.53939 14.5498 4.24634C14.2969 6.25538 14.0439 8.26462 13.791 10.2737H2.22266C1.96972 8.26422 1.71583 6.25481 1.46289 4.24536C2.24239 4.9599 3.02238 5.67449 3.80176 6.38892C4.10679 6.66852 4.50974 6.785 4.9043 6.70239C5.29249 6.62111 5.60845 6.36227 5.79688 6.01685L8.00684 1.96509L10.2168 6.01685Z",stroke:"white",strokeWidth:"1.3545"}),React.createElement("path",{d:"M13.7234 14.8507H2.29045C1.92294 14.8507 1.625 14.4866 1.625 14.0374V12.2507H14.3889V14.0374C14.3888 14.4866 14.0909 14.8507 13.7234 14.8507Z",fill:"currentColor"}))},ur=(0,m.memo)(function(){return React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons dashicons-visibility"}),(0,Bt.__)("Live Preview","easy-accordion-free"))}),dr=function(e){return e.fill,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 27 27",width:"16",height:"16"},React.createElement("path",{fill:"#fff",d:"M1 6.776a1 1 0 0 0-1 1v11.551a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V7.776a1 1 0 0 0-1-1H1Zm24.358 10.806a1 1 0 0 1-1 1H2.745a1 1 0 0 1-1-1v-4.776a1 1 0 0 1 1-1h21.613a1 1 0 0 1 1 1v4.776ZM0 1a1 1 0 0 1 1-1h25a1 1 0 0 1 1 1v3.03a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1ZM0 22.97a1 1 0 0 1 1-1h25a1 1 0 0 1 1 1V26a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-3.03Z"}))};const hr=window.wp.htmlEntities,fr=window.wp.components;function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]&&arguments[2];if(e.preventDefault(),!document.querySelector(".sp-eap-patterns-builder-modal")){var r=document.createElement("div");r.className="sp-eap-patterns-builder-modal sp-eap-patterns-blocks-layouts",document.body.appendChild(r),(vr=(0,m.createRoot)(r)).render(React.createElement(si,{isShow:!0,onClose:br,currentBlockName:t,removeBlock:n})),document.body.classList.add("sp-eap-patterns-popup-open"),setTimeout(function(){r.addEventListener("click",function(e){e.target===r&&br()})},0)}};function wr(e){return wr="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},wr(e)}function Er(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 xr(e){for(var t=1;t0&&React.createElement("span",{className:"sp-eap-patterns-template-filter-love-count"},null==c?void 0:c.length)))))},Sr=function(e){var t=e.changeStates,n=e.column,r=e.showWishList,i=e._fetchFile,o=e.fetching,a=e.onClose,l=e.currentBlockName,s=e.wishListArr,c=gr(l);return React.createElement("div",{className:"sp-eap-patterns-popup-header"},React.createElement("div",{className:"sp-eap-patterns-popup-filter-title"},React.createElement("div",{className:"sp-eap-patterns-popup-filter-image-head"},React.createElement(dr,null),React.createElement("span",null,c)),React.createElement("div",{className:"sp-eap-patterns-popup-filter-nav-right"},React.createElement("div",{className:"sp-eap-patterns-template-filter-grid-two-col ",onClick:function(){return t("column","2")}},React.createElement("button",{className:" ".concat("2"==n?"active":"")},React.createElement(ir,null))),React.createElement("div",{className:"sp-eap-patterns-template-filter-grid-three-col ".concat("3"==n?"sp-eab-patterns-col-active":""),onClick:function(){return t("column","3")}}," ",React.createElement("button",{className:" ".concat("3"==n?"active":"")},React.createElement(or,null))),React.createElement(fr.Tooltip,{text:(0,Bt.__)("Refresh Patterns","easy-accordion-free"),delay:300,placement:"top"},React.createElement("div",{className:"sp-eap-patterns-template-filter-reset"},React.createElement("button",null,React.createElement("span",{className:"sp-eap-patterns-popup-sync",onClick:function(){return i()}},React.createElement("i",{className:o?" sp-rotate":""},React.createElement(rr,null)))))),React.createElement(fr.Tooltip,{text:(0,Bt.__)("Wishlist","easy-accordion-free"),delay:300,placement:"top"},React.createElement("div",{className:"sp-eap-patterns-template-filter-love"},React.createElement("button",{onClick:function(){t("wishlist",!r)},className:" ".concat(r?"active":"")},React.createElement(ar,null),(null==s?void 0:s.length)>0&&React.createElement("span",{className:"sp-eap-patterns-template-filter-love-count"},null==s?void 0:s.length)))),React.createElement("div",{className:"sp-eap-patterns-popup-filter-sync-close"},React.createElement("button",{className:"sp-eap-patterns-btn-close",onClick:a,id:"sp-eap-patterns-btn-close","aria-label":(0,Bt.__)("Close","easy-accordion-free")},React.createElement(nr,null))))))};function Or(e){return Or="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},Or(e)}function Cr(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 Mr(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Jr(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Jr(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Jr(d,"constructor",c),Jr(c,"constructor",s),s.displayName="GeneratorFunction",Jr(c,i,"GeneratorFunction"),Jr(d),Jr(d,i,"Generator"),Jr(d,r,function(){return this}),Jr(d,"toString",function(){return"[object Generator]"}),(Xr=function(){return{w:o,m:h}})()}function Jr(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Jr=function(e,t,n,r){function o(t,n){Jr(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Jr(e,t,n,r)}function Qr(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function ei(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){Qr(o,r,i,a,l,"next",e)}function l(e){Qr(o,r,i,a,l,"throw",e)}a(void 0)})}}function ti(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,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ni(e,t);var n={}.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)?ni(e,t):void 0}}(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 ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t={postType:"post",postOperator:"IN",orderBy:"date",orderDirection:"DESC",postLimit:"8",categoriesToShow:"all",displayLimit:"8",showEmptyTerms:!1};return"sp-easy-accordion-pro/menu-accordion"===e&&(t=ii(ii({},t),{},{orderBy:"title",orderDirection:"ASC"})),"sp-easy-accordion-pro/product-accordion"===e&&(t=ii(ii({},t),{},{postType:"product"})),t}(null==e?void 0:e.name);null===(n=Object.keys(r))||void 0===n||n.forEach(function(e){if(t.attributes.hasOwnProperty(e)){var n=r[e];Array.isArray(n)?t.attributes[e]=JSON.parse(JSON.stringify(n)):t.attributes[e]=n}})}return e.innerBlocks&&Array.isArray(e.innerBlocks)&&e.innerBlocks.length>0&&(t.innerBlocks=ai(e.innerBlocks)),t}):e},li=function(e){var t=e.onClose;return React.createElement("div",{className:"sp-eap-patterns-popup-header"},React.createElement("div",{className:"sp-eap-patterns-popup-filter-title"},React.createElement("div",{className:"sp-eap-patterns-popup-filter-image-head"},React.createElement(dr,{fill:"#ffffff"}),React.createElement("span",null,(0,Bt.__)("Easy Accordion Patterns Library","easy-accordion-free"))),React.createElement("div",{className:"sp-eap-patterns-popup-filter-sync-close"},React.createElement("button",{className:"sp-eap-patterns-btn-close",onClick:t,id:"sp-eap-patterns-btn-close","aria-label":(0,Bt.__)("Close","easy-accordion-free")},React.createElement(nr,null)))))};const si=function(e){var t=ti((0,m.useState)([]),2),n=t[0],r=t[1],o=!!e.currentBlockName,a=e.currentBlockName||"all",l=ti((0,m.useState)({isPopup:e.isShow||!1,designs:[],reloadId:"",reload:!1,error:!1,fetching:!1,designFilter:a||"all",current:[],sidebarOpen:!0,templatekitCol:"sp-eap-pattern-col3",categoryCounts:!1,freeCount:!1,proCount:!1,loading:!1}),2),s=l[0],c=l[1],u=s.isPopup,d=s.designFilter,h=function(e){var t=[],n=function(n){e[n].forEach(function(e){t.push(ii(ii({},e),{},{category:n}))})};for(var r in e)n(r);return t},f=function(){var e=ei(Xr().m(function e(){var t,n,r,i,l,s,u,d,f;return Xr().w(function(e){for(;;)switch(e.p=e.n){case 0:return c(function(e){return ii(ii({},e),{},{loading:!0,error:!1})}),e.p=1,e.n=2,wp.apiFetch({path:g,method:"POST",data:{type:"get_data"}});case 2:if(t=e.v){e.n=3;break}throw new Error((0,Bt.__)("No response received from server","easy-accordion-free"));case 3:if(!t.success||!t.data){e.n=4;break}n=JSON.parse(t.data),r={},Object.keys(n).forEach(function(e){r[e]=Array.isArray(n[e])?n[e].length:0}),i=h(n),l=i.filter(function(e){return!e.pro}).length,s=i.filter(function(e){return e.pro}).length,u=[],(d=o&&a)&&(u=n[a]||[]),c(function(e){return ii(ii({},e),{},{current:d?u:i,designs:d?u:i,categoryCounts:r,freeCount:l,proCount:s,loading:!1,error:!1})}),e.n=5;break;case 4:throw new Error(t.message||(0,Bt.__)("Failed to load patterns","easy-accordion-free"));case 5:e.n=7;break;case 6:e.p=6,f=e.v,console.error("Error fetching templates:",f),c(function(e){return ii(ii({},e),{},{loading:!1,error:f.message||(0,Bt.__)("An unexpected error occurred","easy-accordion-free")})});case 7:return e.a(2)}},e,null,[[1,6]])}));return function(){return e.apply(this,arguments)}}(),p=function(){var e=ei(Xr().m(function e(){var t,n;return Xr().w(function(e){for(;;)switch(e.p=e.n){case 0:return c(function(e){return ii(ii({},e),{},{fetching:!0})}),e.p=1,e.n=2,wp.apiFetch({path:g,method:"POST",data:{type:"refresh"}});case 2:if(t=e.v){e.n=3;break}throw new Error((0,Bt.__)("No response received from server","easy-accordion-free"));case 3:if(!t.success){e.n=5;break}return e.n=4,f();case 4:e.n=6;break;case 5:throw new Error(t.message||(0,Bt.__)("Failed to refresh patterns","easy-accordion-free"));case 6:e.n=8;break;case 7:e.p=7,n=e.v,console.error("Error fetching all data:",n),c(function(e){return ii(ii({},e),{},{error:n.message||(0,Bt.__)("Failed to refresh data","easy-accordion-free")})});case 8:return e.p=8,c(function(e){return ii(ii({},e),{},{fetching:!1})}),e.f(8);case 9:return e.a(2)}},e,null,[[1,7,8,9]])}));return function(){return e.apply(this,arguments)}}(),v=function(){var e=document.querySelector(".sp-eap-patterns-builder-modal");e&&e.remove(),c(function(e){return ii(ii({},e),{},{isPopup:!1})})},b=function(e){27===e.keyCode&&v()},y=function(){var t=ei(Xr().m(function t(n){var r,o,a,l,s;return Xr().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n){t.n=1;break}return t.a(2);case 1:return null!=e&&e.removeBlock&&(null==e||e.removeBlock()),c(function(e){return ii(ii({},e),{},{reload:!0,reloadId:n})}),t.p=2,t.n=3,fetch("https://demo.easyaccordion.io/wp-json/easy-accordion/v1/single-pattern",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({license:"",template_id:n})});case 3:if((r=t.v).ok){t.n=4;break}throw new Error("HTTP error! status: ".concat(r.status));case 4:return t.n=5,r.json();case 5:if(!(o=t.v).success||!o.rawData){t.n=13;break}if(!(a=wp.data.dispatch("core/block-editor"))||!a.insertBlocks){t.n=11;break}l=[],t.p=6,l=(0,i.parse)(o.rawData),t.n=8;break;case 7:throw t.p=7,t.v,new Error((0,Bt.__)("Failed to parse block data","easy-accordion-free"));case 8:if(Array.isArray(l)){t.n=9;break}throw new Error((0,Bt.__)("Invalid block data format","easy-accordion-free"));case 9:if(0!==l.length){t.n=10;break}throw new Error((0,Bt.__)("No blocks found in pattern","easy-accordion-free"));case 10:l=ai(l),a.insertBlocks(l),v(),c(function(e){return ii(ii({},e),{},{isPopup:!1,reload:!1,reloadId:"",error:!1})}),t.n=12;break;case 11:throw new Error((0,Bt.__)("Block editor is not available","easy-accordion-free"));case 12:t.n=14;break;case 13:throw new Error(o.message||(0,Bt.__)("Failed to import pattern","easy-accordion-free"));case 14:t.n=16;break;case 15:t.p=15,s=t.v,c(function(e){return ii(ii({},e),{},{error:s.message||(0,Bt.__)("Failed to import pattern","easy-accordion-free"),reload:!1})});case 16:return t.a(2)}},t,null,[[6,7],[2,15]])}));return function(_x){return t.apply(this,arguments)}}(),w=function(){var e=ei(Xr().m(function e(t){var n,i,o,a,l,s=arguments;return Xr().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:"",i=s.length>2&&void 0!==s[2]?s[2]:"",e.p=1,e.n=2,wp.apiFetch({path:"/eap-accordion/v2/save_wishlist_item",method:"POST",data:{id:t,action:n,type:i}});case 2:if(o=e.v){e.n=3;break}throw new Error((0,Bt.__)("No response received from server","easy-accordion-free"));case 3:if(!o.success){e.n=4;break}a=Array.isArray(o.wishListArr)?o.wishListArr:Object.values(o.wishListArr||{}),r(a),e.n=5;break;case 4:throw new Error(o.message||(0,Bt.__)("Failed to update wishlist","easy-accordion-free"));case 5:e.n=7;break;case 6:e.p=6,l=e.v,console.error("Error updating wishlist:",l);case 7:return e.a(2)}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}();return(0,m.useEffect)(function(){return w("","","fetchData"),f(),document.addEventListener("keydown",b),function(){document.removeEventListener("keydown",b)}},[]),React.createElement(React.Fragment,null,u&&React.createElement(Gr,{onError:function(e,t){console.error("Library Error Boundary:",e,t)},onRetry:f},React.createElement("div",{className:"sp-eap-patterns-builder-modal-shadow"},React.createElement("div",{className:"sp-eap-patterns-popup-wrap"},!o&&React.createElement(li,{onClose:v}),React.createElement(Hr,{filterValue:d,currentBlockName:e.currentBlockName,isSingleBlock:o,onClose:v,state:s,setState:c,_fetchFile:p,_changeVal:function(e,t){y(e)},filterByCategoryKey:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Array.isArray(e)&&0!==e.length?t&&"all"!==t?e.filter(function(e){var n=null==e?void 0:e.category;return Array.isArray(n)?n.some(function(e){return(null==e?void 0:e.slug)===t}):"string"==typeof n?n===t:!(!n||"object"!==Yr(n))&&n.slug===t}):e:[]},setWListAction:w,wishListArr:n,setWishlistArr:r})))))};var ci;function ui(){if(tr("pattern_library")){var e=function(e){if(e.preventDefault(),!document.querySelector(".".concat(v))){var n=document.createElement("div");n.className="".concat(v," sp-eab-patterns-blocks-layouts"),document.body.appendChild(n),(ci=(0,m.createRoot)(n)).render(React.createElement(si,{isShow:!0,onClose:t})),document.body.classList.add(b),setTimeout(function(){n.addEventListener("click",function(e){e.target===n&&t()})},0)}},t=function(){var e=document.querySelector(".".concat(v));e&&(ci&&ci.unmount(),e.remove(),document.body.classList.remove(b))},n=(0,f.debounce)(function(){var t=document.querySelector(".edit-post-header-toolbar");t&&function(t){if(!t.querySelector(".".concat(y))){var n=document.createElement("div");n.classList.add(y),t.appendChild(n),(0,m.createRoot)(n).render(React.createElement("span",{id:"sp-eab-patterns-library-modal-button",className:"popup-button",onClick:e},React.createElement(dr,{fill:"#ffffff"}),"Easy Patterns"))}}(t)},200),r=(0,p.subscribe)(function(){n(),r()});return null}}function di(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,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);var n={}.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)?hi(e,t):void 0}}(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 hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(pi(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,pi(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,pi(d,"constructor",c),pi(c,"constructor",s),s.displayName="GeneratorFunction",pi(c,i,"GeneratorFunction"),pi(d),pi(d,i,"Generator"),pi(d,r,function(){return this}),pi(d,"toString",function(){return"[object Generator]"}),(fi=function(){return{w:o,m:h}})()}function pi(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}pi=function(e,t,n,r){function o(t,n){pi(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},pi(e,t,n,r)}function mi(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function gi(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){mi(o,r,i,a,l,"next",e)}function l(e){mi(o,r,i,a,l,"throw",e)}a(void 0)})}}(0,h.registerPlugin)("sp-eab-patterns-toolbar-library",{render:ui}),n(611);var vi=function(){return React.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M6 6V3.75A.75.75 0 0 1 6.75 3h7.5a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-.75.75H12M3.75 6.75h7.5a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-.75.75h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 .75-.75Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}))},bi="speap-shortcode-portal",yi=function(){var e=gi(fi().m(function e(t){var n,r,i,o;return fi().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!navigator.clipboard||!navigator.clipboard.writeText){e.n=4;break}return e.p=1,e.n=2,navigator.clipboard.writeText(t);case 2:return e.a(2,!0);case 3:e.p=3,i=e.v,console.warn("Clipboard API failed, using fallback.",i);case 4:return e.p=4,(n=document.createElement("textarea")).value=t,n.style.position="fixed",n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n),n.select(),r=document.execCommand("copy"),document.body.removeChild(n),e.a(2,r);case 5:return e.p=5,o=e.v,console.error("Fallback copy failed:",o),e.a(2,!1)}},e,null,[[4,5],[1,3]])}));return function(_x){return e.apply(this,arguments)}}();(0,h.registerPlugin)("speap-saved-template-sidebar",{render:function(){var e=(0,p.useSelect)(function(e){var t,n,r,i;return{postType:(null===(t=e("core/editor"))||void 0===t||null===(n=t.getCurrentPostType)||void 0===n?void 0:n.call(t))||null,postId:(null===(r=e("core/editor"))||void 0===r||null===(i=r.getCurrentPostId)||void 0===i?void 0:i.call(r))||null}},[]),t=e.postType,n=e.postId,r=di((0,m.useState)(!1),2),i=r[0],o=r[1],a=di((0,m.useState)(null),2),l=a[0],s=a[1];if((0,m.useEffect)(function(){if("sp_eap_template"===t){var e=null,n=function(){var t=document.querySelector(".interface-complementary-area__fill");if(t){var n=t.querySelector(":scope > .".concat(bi));n?t.firstElementChild!==n&&t.insertBefore(n,t.firstChild):((n=document.createElement("div")).className=bi,t.insertBefore(n,t.firstChild)),n!==e&&(e=n,s(n))}};n();var r=new window.MutationObserver(n);return r.observe(document.body,{childList:!0,subtree:!0}),function(){r.disconnect(),e&&e.parentNode&&e.parentNode.removeChild(e),s(null)}}s(null)},[t]),"sp_eap_template"!==t||!l)return null;var c='[sp_eap_template id="'.concat(n||0,'"]'),u=window.sp_eab_localize_data&&window.sp_eab_localize_data.savedTemplatesUrl||window.sp_eab_admin_dashboard_localize&&window.sp_eab_admin_dashboard_localize.savedTemplatesUrl||"",d=function(){var e=gi(fi().m(function e(){return fi().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,yi(c);case 1:if(e.v){e.n=2;break}return e.a(2);case 2:o(!0),window.setTimeout(function(){return o(!1)},1500);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,m.createPortal)(React.createElement("div",{className:"speap-shortcode-panel"},React.createElement("p",{className:"speap-shortcode-panel__intro"},(0,Bt.__)("You can use this shortcode anywhere and manage it from","easy-accordion-free")," ",React.createElement("a",{className:"speap-shortcode-panel__link hello",href:u,rel:"noopener noreferrer"},(0,Bt.__)("Saved Templates.","easy-accordion-free"))),React.createElement("button",{type:"button",className:"speap-shortcode-panel__chip",onClick:d,"aria-label":i?(0,Bt.__)("Shortcode copied","easy-accordion-free"):(0,Bt.__)("Copy shortcode","easy-accordion-free")},React.createElement("span",{className:"speap-shortcode-panel__code"},c),React.createElement("span",{className:"speap-shortcode-panel__copy"},i?React.createElement("span",{className:"speap-shortcode-panel__copy-text"},"Copied!"):React.createElement(vi,null)))),l)}});const wi=window.wp.blockEditor;var Ei=function(){return React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M22.35 10.3a.35.35 0 0 0-.35-.35H2a.35.35 0 0 0-.35.35v4c0 .194.157.35.35.35h20a.35.35 0 0 0 .35-.35zm1.3 4A1.65 1.65 0 0 1 22 15.95H2A1.65 1.65 0 0 1 .35 14.3v-4c0-.911.739-1.65 1.65-1.65h20c.911 0 1.65.739 1.65 1.65z",fill:"#ff5b2e",className:"eab-block-icon"}),React.createElement("path",{d:"M18.082 11.55a.5.5 0 0 1 .707-.007l.663.65q.003.004.016.005.013-.001.016-.005l.67-.643a.5.5 0 0 1 .693.72l-.67.644a1.026 1.026 0 0 1-1.425-.007l-.662-.65a.5.5 0 0 1-.008-.706m-5.582.099a.65.65 0 0 1 0 1.3h-9a.65.65 0 0 1 0-1.3z",fill:"#ff5b2e",className:"eab-block-icon"}))};const xi=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"sp-easy-accordion-pro/accordion-item","title":"Accordion Single Item","category":"sp-easy-accordion-pro","description":"Easily manage & style individual accordion items with advanced customizations.","parent":["sp-easy-accordion-pro/vertical-accordion","sp-easy-accordion-pro/horizontal-accordion"],"textdomain":"easy-accordion-free","editorScript":"sp_eab_admin_index_js","editorStyle":"sp_eab_editor_style","style":"sp_eab_main_css","supports":{"customClassName":false,"inserter":false}}');var Ri=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",fill:"none"},React.createElement("path",{d:"M4.55469 10.3882C4.29434 10.6485 3.87168 10.6485 3.61133 10.3882C3.35125 10.1279 3.35136 9.70612 3.61133 9.4458L4.55469 10.3882ZM10.5831 9.9165C10.5831 10.2847 10.2842 10.5835 9.91602 10.5835C9.54798 10.5833 9.25 10.2846 9.25 9.9165V5.69287L4.55469 10.3882L4.08301 9.9165L3.61133 9.4458L8.30664 4.75049H4.08301C3.71482 4.75049 3.41602 4.45168 3.41602 4.08349C3.41602 3.7153 3.71482 3.4165 4.08301 3.4165H9.91602C10.2842 3.4165 10.5831 3.7153 10.5831 4.08349V9.9165Z",fill:"#2271b1"}))},ki=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 1200 1200"},React.createElement("path",{fill:"#aaa",d:"M198 198c-222 222-222 582 0 804s582 222 804 0 222-582 0-804-582-222-804 0zm712.8 712.8c-171.6 171.6-451.2 171.6-622.8 0-171.6-171.6-171.6-451.2 0-622.8s451.2-171.6 622.8 0c172.8 172.8 172.8 451.2 0 622.8zM535.2 357.6c0-48 39.602-86.398 87.602-86.398s86.398 39.602 85.199 87.602c0 48-39.602 87.602-86.398 86.398-48-.004-87.602-39.602-86.402-87.602zm210 499.2c-2.398 7.2-7.2 15.602-12 20.398-31.199 32.398-69.602 50.398-114 51.602-21.602 0-42 0-63.602-3.602-34.801-4.8-79.199-48-72-93.602 4.8-31.199 9.602-62.398 14.398-93.602 9.602-54 19.199-108 28.801-162 0-3.601 1.2-7.199 1.2-10.8 0-22.802-7.2-31.2-30-33.603-9.602-1.199-19.2-2.398-28.802-4.8-10.8-3.602-15.602-13.2-15.602-21.602 1.2-9.602 7.2-15.602 19.2-18 6-1.2 13.198-1.2 19.198-1.2h163.2c20.397 0 32.397 9.602 32.397 30 0 16.801-2.398 33.602-6 50.398-10.8 62.398-22.8 123.6-33.602 186-3.601 20.398-8.398 40.801-10.8 61.2-1.2 9.601 0 20.397 2.398 30 3.601 13.198 13.199 20.397 26.398 18 10.8-1.2 21.602-4.801 32.398-9.602 8.398-3.602 15.602-9.602 24-12 15.617-5.988 26.418 3.613 22.816 16.812z"}))},Si=function(){return React.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M6.618 2.431a1.627 1.627 0 1 1-3.253 0 1.627 1.627 0 0 1 3.253 0",fill:"#949494"}),React.createElement("path",{d:"M6.463 2.43a1.48 1.48 0 0 1-.966 1.382 1.49 1.49 0 0 1-1.64-.449 1.48 1.48 0 0 1-.12-1.698A1.48 1.48 0 0 1 5.275.987a1.49 1.49 0 0 1 1.189 1.444c.001.201.314.201.312 0A1.81 1.81 0 0 0 5.6.754a1.79 1.79 0 0 0-1.976.538 1.8 1.8 0 0 0-.155 2.062c.39.642 1.155.969 1.889.822.82-.166 1.412-.916 1.419-1.745 0-.202-.313-.202-.314 0m.155 5.571a1.627 1.627 0 1 1-3.253 0 1.627 1.627 0 0 1 3.253 0",fill:"#949494"}),React.createElement("path",{d:"M6.463 8a1.48 1.48 0 0 1-.966 1.382 1.49 1.49 0 0 1-1.64-.448 1.48 1.48 0 0 1-.12-1.699 1.48 1.48 0 0 1 1.537-.678 1.49 1.49 0 0 1 1.189 1.444c.001.201.314.201.312 0A1.81 1.81 0 0 0 5.6 6.324a1.79 1.79 0 0 0-1.976.538 1.8 1.8 0 0 0-.155 2.062c.39.643 1.155.97 1.889.822.82-.165 1.412-.915 1.419-1.745 0-.202-.313-.202-.314 0m.155 5.571a1.627 1.627 0 1 1-3.253 0 1.627 1.627 0 0 1 3.253 0",fill:"#949494"}),React.createElement("path",{d:"M6.463 13.571a1.48 1.48 0 0 1-.966 1.381 1.49 1.49 0 0 1-1.64-.448 1.48 1.48 0 0 1-.12-1.698 1.48 1.48 0 0 1 1.537-.678 1.49 1.49 0 0 1 1.189 1.443c.001.202.314.202.312 0A1.81 1.81 0 0 0 5.6 11.895a1.79 1.79 0 0 0-1.976.537 1.8 1.8 0 0 0-.155 2.063c.39.642 1.155.968 1.889.822.82-.166 1.412-.916 1.419-1.746 0-.201-.313-.201-.314 0m6.171-11.14a1.626 1.626 0 1 1-3.253 0 1.626 1.626 0 0 1 3.253 0",fill:"#949494"}),React.createElement("path",{d:"M12.478 2.43a1.48 1.48 0 0 1-.965 1.382 1.49 1.49 0 0 1-1.641-.449 1.48 1.48 0 0 1-.119-1.698A1.48 1.48 0 0 1 11.29.987a1.49 1.49 0 0 1 1.19 1.444c0 .201.313.201.312 0A1.81 1.81 0 0 0 11.616.754a1.79 1.79 0 0 0-1.977.538 1.8 1.8 0 0 0-.154 2.062c.39.642 1.154.969 1.889.822.82-.166 1.412-.916 1.418-1.745 0-.202-.312-.202-.314 0m.156 5.571a1.626 1.626 0 1 1-3.253 0 1.626 1.626 0 0 1 3.253 0",fill:"#949494"}),React.createElement("path",{d:"M12.478 8a1.48 1.48 0 0 1-.965 1.382 1.49 1.49 0 0 1-1.641-.448 1.48 1.48 0 0 1-.119-1.699 1.48 1.48 0 0 1 1.536-.678 1.49 1.49 0 0 1 1.19 1.444c0 .201.313.201.312 0a1.81 1.81 0 0 0-1.175-1.677 1.79 1.79 0 0 0-1.977.538 1.8 1.8 0 0 0-.154 2.062c.39.643 1.154.97 1.889.822.82-.165 1.412-.915 1.418-1.745 0-.202-.312-.202-.314 0m.156 5.571a1.627 1.627 0 1 1-3.253 0 1.627 1.627 0 0 1 3.253 0",fill:"#949494"}),React.createElement("path",{d:"M12.478 13.571a1.48 1.48 0 0 1-.965 1.381 1.49 1.49 0 0 1-1.641-.448 1.48 1.48 0 0 1-.119-1.698 1.48 1.48 0 0 1 1.536-.678 1.49 1.49 0 0 1 1.19 1.443c0 .202.313.202.312 0a1.81 1.81 0 0 0-1.175-1.676 1.79 1.79 0 0 0-1.977.537 1.8 1.8 0 0 0-.154 2.063c.39.642 1.154.968 1.889.822.82-.166 1.412-.916 1.418-1.746 0-.201-.312-.201-.314 0",fill:"#949494"}))};const Oi=function(e){var t=e.attributes,n=e.setAttributes,r=e.Inspector,i=t.blockName,o=En["sp-easy-accordion-pro/".concat(i)];return React.createElement(wi.InspectorControls,null,React.createElement("div",{className:"sp-easy-accordion-tabs-panel"},((null==o?void 0:o.docLink)||(null==o?void 0:o.demoLink))&&React.createElement("div",{className:"sp-eab-inspector-control-top-section"},(null==o?void 0:o.docLink)&&React.createElement("div",{className:"sp-eab-doc-link-button-wrapper"},React.createElement("a",{className:"sp-eab-doc-link-button sp-d-flex sp-align-center sp-gap-2px",href:null==o?void 0:o.docLink,target:"_blank",rel:"noreferrer"},"Documentation ",React.createElement(Ri,null))),(null==o?void 0:o.demoLink)&&React.createElement("div",{className:"sp-eab-inspector-control-button-list sp-d-flex sp-align-center sp-justify-between"},React.createElement("button",{"data-block":i,className:"sp-eab-block-preview-button eab-ready-patterns sp-d-flex sp-align-center sp-justify-center",onClick:function(e){return yr(e,i)}},(0,Bt.__)("Ready Patterns","easy-accordion-free")),React.createElement("a",{className:"sp-eab-block-preview-button eab-block-preview sp-d-flex sp-align-center sp-justify-center",href:null==o?void 0:o.demoLink,target:"_blank",rel:"noreferrer"},(0,Bt.__)("Block Preview","easy-accordion-free")))),React.createElement(r,{attributes:t,setAttributes:n})))},Ci=function(e){var t=e.attributes,n=e.setAttributes,r=e.GeneralTab,i=void 0===r?"":r,o=e.StyleTab,a=void 0===o?"":o,l=e.AdvancedTab,s=void 0===l?"":l,c=e.VisibilityTab,u=void 0===c?"":c,d=e.SliderTab,h=void 0===d?"":d,f=e.tabName,p=void 0===f?"general":f,m=e.setTabName,g=void 0===m?function(){}:m,v=e.displayIcon,b=void 0===v||v,y=[];return i&&y.push({name:"general",title:React.createElement("span",{className:"sp-eab-tab-panel-title"},b&&React.createElement("div",{className:"sp-eab-tab-panel-icon"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},React.createElement("g",{fill:"#2F2F2F",clipPath:""},React.createElement("path",{d:"M8 11.313A3.316 3.316 0 0 1 4.687 8 3.316 3.316 0 0 1 8 4.687 3.316 3.316 0 0 1 11.313 8 3.316 3.316 0 0 1 8 11.313ZM8 6.25c-.965 0-1.75.785-1.75 1.75S7.035 9.75 8 9.75 9.75 8.965 9.75 8 8.965 6.25 8 6.25Z"}),React.createElement("path",{d:"M14.365 8.969a6.47 6.47 0 0 0 0-1.937 2.014 2.014 0 0 0 .72-2.761l-.313-.542a2.034 2.034 0 0 0-2.752-.756 6.468 6.468 0 0 0-1.676-.97A2.033 2.033 0 0 0 8.312 0h-.625c-1.11 0-2.016.896-2.03 2.003a6.469 6.469 0 0 0-1.677.97 2.034 2.034 0 0 0-2.752.756l-.312.542a2.014 2.014 0 0 0 .72 2.76 6.472 6.472 0 0 0 0 1.938 2.034 2.034 0 0 0-.72 2.76l.312.542a2.034 2.034 0 0 0 2.752.756 6.47 6.47 0 0 0 1.676.97A2.034 2.034 0 0 0 7.687 16h.625c1.111 0 2.017-.896 2.032-2.003a6.468 6.468 0 0 0 1.676-.97 2.034 2.034 0 0 0 2.752-.756l.312-.542a2.034 2.034 0 0 0-.72-2.76Zm-.634 1.98-.312.54a.47.47 0 0 1-.64.172l-.462-.266a.782.782 0 0 0-.933.114 4.886 4.886 0 0 1-2.037 1.178.781.781 0 0 0-.566.75v.532a.47.47 0 0 1-.468.469h-.625a.47.47 0 0 1-.47-.47v-.53a.781.781 0 0 0-.565-.752 4.886 4.886 0 0 1-2.037-1.177.782.782 0 0 0-.933-.114l-.461.266a.47.47 0 0 1-.64-.172l-.313-.54a.47.47 0 0 1 .171-.641l.46-.266a.781.781 0 0 0 .368-.865 4.9 4.9 0 0 1 0-2.354.781.781 0 0 0-.367-.865l-.46-.266a.48.48 0 0 1-.172-.64l.312-.541a.47.47 0 0 1 .64-.172l.462.266a.781.781 0 0 0 .933-.114 4.886 4.886 0 0 1 2.037-1.178.781.781 0 0 0 .566-.75V2.03a.47.47 0 0 1 .469-.469h.625a.47.47 0 0 1 .468.47v.53a.781.781 0 0 0 .566.751c.76.218 1.464.626 2.037 1.178a.78.78 0 0 0 .933.115l.461-.267a.47.47 0 0 1 .64.172l.313.54a.48.48 0 0 1-.171.641l-.46.266a.781.781 0 0 0-.368.865 4.898 4.898 0 0 1 0 2.354.782.782 0 0 0 .367.865l.46.266c.225.129.302.416.172.64Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))," General"),className:"sp-eab-general-tab"}),a&&y.push({name:"style",title:React.createElement("span",{className:"sp-eab-tab-panel-title"},b&&React.createElement("div",{className:"sp-eab-tab-panel-icon"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},React.createElement("g",{fill:"#2F2F2F",clipPath:""},React.createElement("path",{d:"M3.751 9.004a.939.939 0 0 1 0-1.875.939.939 0 0 1 0 1.875Zm4.25-4.25a.939.939 0 0 1 0-1.875.939.939 0 0 1 0 1.875Zm3.005 1.245a.939.939 0 0 1 0-1.875.939.939 0 0 1 0 1.875Zm-6.01 0a.939.939 0 0 1 0-1.875.939.939 0 0 1 0 1.875Z"}),React.createElement("path",{d:"M6.754 15.936c-.141 0-.284-.015-.426-.045a8.026 8.026 0 0 1-4.519-2.76A8.015 8.015 0 0 1 .001 8.067c0-2.134.83-4.14 2.338-5.651A7.948 7.948 0 0 1 7.985.066h.016c4.391 0 7.979 3.568 8 7.96v.13a3.821 3.821 0 0 1-1.159 2.706 3.875 3.875 0 0 1-2.725 1.11h-2.24c-.604 0-1.094.491-1.094 1.095v.837c0 .616-.275 1.191-.754 1.579a2.023 2.023 0 0 1-1.275.453ZM8.001 1.629h-.013a6.447 6.447 0 0 0-6.424 6.437c0 3.02 2.14 5.669 5.09 6.297.19.04.327-.042.392-.095a.462.462 0 0 0 .174-.364v-.838a2.66 2.66 0 0 1 2.656-2.656h2.241c1.267 0 2.308-1.019 2.322-2.272v-.104C14.42 4.5 11.534 1.629 8 1.629Z"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))," Style"),className:"sp-eab-style-tab"}),h&&y.push({name:"slider",title:React.createElement("span",{className:"sp-eab-tab-panel-title"},b&&React.createElement("div",{className:"sp-eab-tab-panel-icon"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},React.createElement("path",{fill:"#2f2f2f",d:"M11.818 8.636a3.183 3.183 0 0 1 0 6.364H4.182a3.183 3.183 0 0 1 0-6.364h7.636ZM4.182 9.909a1.918 1.918 0 0 0-1.91 1.91c0 1.06.858 1.908 1.91 1.908h7.636a1.907 1.907 0 0 0 1.91-1.909c0-1.052-.858-1.9-1.91-1.909H4.182Zm7.61.62a1.272 1.272 0 1 1 .002 2.547 1.272 1.272 0 0 1-.002-2.548ZM11.818 1A3.183 3.183 0 0 1 15 4.182a3.177 3.177 0 0 1-3.182 3.181H4.182A3.177 3.177 0 0 1 1 4.182 3.183 3.183 0 0 1 4.182 1h7.636ZM4.182 2.272a1.918 1.918 0 0 0-1.91 1.91c0 1.06.858 1.909 1.91 1.909h7.636c1.053 0 1.91-.849 1.91-1.91 0-1.051-.858-1.9-1.91-1.909H4.182Zm.016.663c.704 0 1.274.568 1.274 1.272 0 .696-.57 1.273-1.274 1.273a1.283 1.283 0 0 1-1.272-1.273c0-.704.577-1.272 1.272-1.272Z"})))," Slider"),className:"sp-eab-style-tab"}),u&&y.push({name:"visibility",title:React.createElement("span",{className:"sp-eab-tab-panel-title"},"Visibility"),className:"sp-eab-visibility-tab"}),s&&y.push({name:"advanced",title:React.createElement("span",{className:"sp-eab-tab-panel-title"},"Advanced"),className:"sp-eab-advanced-tab"}),React.createElement(fr.TabPanel,{className:"sp-easy-accordion-tab-panel",activeClass:"active-tab",initialTabName:p,onSelect:function(e){return g(e)},tabs:y},function(e){return React.createElement(React.Fragment,null,"general"===e.name&&i&&React.createElement(i,{attributes:t,setAttributes:n}),"style"===e.name&&a&&React.createElement(a,{attributes:t,setAttributes:n}),"slider"===e.name&&h&&React.createElement(h,{attributes:t,setAttributes:n}),"visibility"===e.name&&u&&React.createElement(u,{attributes:t,setAttributes:n}),"advanced"===e.name&&s&&React.createElement(s,{attributes:t,setAttributes:n}))})};var Mi=["children","className"];function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(0,p.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType(e.target.closest("button").value):(0,p.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(e.target.closest("button").value)},t=jn(),n=function(){return"Desktop"===t?React.createElement(Pi,null):"Tablet"===t?React.createElement(_i,null):"Mobile"===t?React.createElement(Ii,null):void 0};return React.createElement("div",{className:"sp-eab-responsive-picker"},React.createElement("div",{className:"sp-eab-units-indicator"},React.createElement("span",null,React.createElement(n,null)),React.createElement("div",{className:"sp-eab-units-btn"},React.createElement(fr.Button,{className:"Desktop"===t?"active":"",value:"Desktop",onClick:e},React.createElement(Pi,null)),React.createElement(fr.Button,{className:"Tablet"===t?"active":"",value:"Tablet",onClick:e},React.createElement(_i,null)),React.createElement(fr.Button,{className:"Mobile"===t?"active":"",value:"Mobile",onClick:e},React.createElement(Ii,null)))))};function ji(e){return ji="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},ji(e)}function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Yi(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Yi(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Yi(d,"constructor",c),Yi(c,"constructor",s),s.displayName="GeneratorFunction",Yi(c,i,"GeneratorFunction"),Yi(d),Yi(d,i,"Generator"),Yi(d,r,function(){return this}),Yi(d,"toString",function(){return"[object Generator]"}),(Gi=function(){return{w:o,m:h}})()}function Yi(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Yi=function(e,t,n,r){function o(t,n){Yi(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Yi(e,t,n,r)}function Xi(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function Ji(e){return function(e){if(Array.isArray(e))return to(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eo(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.")}()}function Qi(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,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||eo(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 eo(e,t){if(e){if("string"==typeof e)return to(e,t);var n={}.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)?to(e,t):void 0}}function to(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3&&React.createElement("span",{onClick:function(t){t.stopPropagation(),s("remove",null==e?void 0:e.name)},className:"sp-eab-color-remove-button"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",height:24,width:24},React.createElement("path",{fill:"#1E1E1E",d:"m12 13.06 3.712 3.713 1.06-1.061-3.712-3.713 3.713-3.712-1.061-1.06-3.713 3.712-3.712-3.712-1.06 1.06L10.939 12l-3.712 3.713 1.06 1.06L12 13.06Z"}))))}),a&&React.createElement("li",{title:(0,Bt.__)("Add this color to custom colors","easy-accordion-free"),className:"sp-d-flex sp-align-center sp-justify-center sp-cursor-pointer"},React.createElement("span",{className:"sp-d-flex sp-align-center sp-justify-center",onClick:function(e){e.stopPropagation(),s("add","color-".concat((null==r?void 0:r.length)+1))}},React.createElement(Zi,null)))))};const ro=(0,m.memo)(function(e){var t=e.setAttributes,n=e.value,r=e.attributesKey,i=e.label,o=e.onChange,a=e.defaultColor,l=void 0===a?"":a,s=e.resetButton,c=void 0===s||s,u=e.showThemeColors,d=void 0===u||u,h=e.activeState,f=void 0!==h&&h,p=f?n[f]:n,g=Qi((0,m.useState)(p),2),v=g[0],b=g[1],y=Qi((0,m.useState)([]),2),w=y[0],E=y[1],x=Qi((0,m.useState)([]),2),R=x[0],k=x[1],S=Qi((0,m.useState)(!1),2),O=S[0],C=S[1],M=[{name:"color-0",color:"#FF5B2E"},{name:"color-1",color:"#FFFFFF"},{name:"color-2",color:"#2F2F2F"},{name:"color-3",color:"#757575"}].concat(Ji(R)),A=function(){var e,t=(e=Gi().m(function e(t){var n,r,i,o,a;return Gi().w(function(e){for(;;)switch(e.n){case 0:return(i=new FormData).append("action","sp_eab_color_settings_ajax"),i.append("colorSettingsData",JSON.stringify(t)),i.append("spEabAjaxNonce",null===(n=sp_eab_localize_data)||void 0===n?void 0:n.spEabAjaxNonce),e.n=1,Nt.post(sp_eab_localize_data.ajaxUrl,i);case 1:return o=e.v,e.n=2,null==o||null===(r=o.data)||void 0===r?void 0:r.data;case 2:a=e.v,k((null==a?void 0:a.custom_colors)||[]),E((null==a?void 0:a.theme_colors)||[]);case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){Xi(o,r,i,a,l,"next",e)}function l(e){Xi(o,r,i,a,l,"throw",e)}a(void 0)})});return function(_x){return t.apply(this,arguments)}}(),T=function(e,t){var n;n="add"===e?[].concat(Ji(R),[{name:t,color:v}]):R.filter(function(e){return e.name!==t}),k(n),A(n),C(!1)},P=function(e){var i=[].concat(Ji(M),Ji(w)),a=null==i?void 0:i.find(function(t){return t.color===e});C(!a),b(e),o?o(e):t($i({},r,f?Ui(Ui({},n),{},$i({},f,e)):e))};return React.createElement("div",{className:"sp-eab-color-picker sp-eab-component-mb sp-d-flex sp-justify-between sp-align-center"},React.createElement("span",{className:"sp-eab-component-title"},i),React.createElement("div",{className:"sp-eab-color-picker-right-area sp-d-flex sp-align-center"},c&&React.createElement(ao,{onClick:function(){P(l)}}),React.createElement(fr.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return React.createElement(fr.Button,{onClick:n,"aria-expanded":t},React.createElement(fr.ColorIndicator,{colorValue:p,onClick:function(){return A()}}))},onClose:function(e,t){t&&e.stopPropagation()},renderContent:function(){return React.createElement("div",{onMouseDown:function(e){e.stopPropagation()},className:"sp-eab-color-picker-renderer"},React.createElement(fr.ColorPicker,{className:"sp-eab-color-picker",color:v,onChange:P,colors:M,enableAlpha:!0}),d&&(null==w?void 0:w.length)>0&&React.createElement(no,{label:(0,Bt.__)("Theme colors","easy-accordion-free"),colors:w,onChangePanelColor:P,palateName:"theme"}),(null==M?void 0:M.length)>0&&React.createElement(no,{label:(0,Bt.__)("Custom colors","easy-accordion-free"),colors:M,onChangePanelColor:P,showNewColorAdd:O,handleCustomColor:T}))}})))});function io(e){return io="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},io(e)}const oo=function(e){var t=e.value,n=void 0===t?"":t,r=e.attributesKey,i=void 0===r?"":r,o=e.setAttributes,a=e.onChange,l=void 0!==a&&a,s=e.gradients,c=void 0===s?[]:s,u=function(e){l?l(e):o(function(e,t,n){return(t=function(e){var t=function(e){if("object"!=io(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=io(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==io(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},i,e))},d="var(--eab-gradient-color)"===n?"linear-gradient(90deg, rgba(255, 71, 81, 0.4), rgba(255, 145, 10, 0.4))":n;return React.createElement("div",{className:"sp-eab-gradient-color-picker-component"},React.createElement(fr.GradientPicker,{value:d,gradients:c,onChange:function(e){return u(e)}}))},ao=function(e){var t=e.onClick;return React.createElement(fr.Button,{className:"sp-eab-component-header-reset",onClick:t},React.createElement(a,null))};function lo(e){return lo="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},lo(e)}function so(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 co(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&React.createElement(Hi,{label:!1,attributes:d,items:f,onClick:function(e){return h(e)}}),React.createElement(ro,{label:(0,Bt.__)("Color","easy-accordion-free"),value:s[d],onChange:function(e){r(ga({},n.border,ma(ma({},null==t?void 0:t.border),{},ga({},d,e))))}}))))};function Ea(e){return Ea="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},Ea(e)}function xa(e){var t=function(e){if("object"!=Ea(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ea(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ea(t)?t:t+""}function Ra(e,t,n){return(t=xa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(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 Sa(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?Ua(rl,--tl):0,Qa--,10===nl&&(Qa=1,Ja--),nl}function ll(){return nl=tl2||dl(nl)>3?"":" "}function gl(e,t){for(;--t&&ll()&&!(nl<48||nl>102||nl>57&&nl<65||nl>70&&nl<97););return ul(e,cl()+(t<6&&32==sl()&&32==ll()))}function vl(e){for(;ll();)switch(nl){case e:return tl;case 34:case 39:34!==e&&39!==e&&vl(nl);break;case 40:41===e&&vl(e);break;case 92:ll()}return tl}function bl(e,t){for(;ll()&&e+nl!==57&&(e+nl!==84||47!==sl()););return"/*"+ul(t,tl-1)+"*"+Va(47===e?e:ll())}function yl(e){for(;!dl(sl());)ll();return ul(e,tl)}var wl="-ms-",El="-moz-",xl="-webkit-",Rl="comm",kl="rule",Sl="decl",Ol="@keyframes";function Cl(e,t){for(var n="",r=Ya(e),i=0;i0&&Ga(R)-d&&Xa(f>32?Il(R+";",r,n,d-1):Il(qa(R," ","")+";",r,n,d-2),s);break;case 59:R+=";";default:if(Xa(x=Pl(R,t,n,c,u,i,l,y,w=[],E=[],d),o),123===b)if(0===u)Tl(R,t,x,x,w,o,d,l,E);else switch(99===h&&110===Ua(R,3)?100:h){case 100:case 108:case 109:case 115:Tl(e,x,x,r&&Xa(Pl(e,x,x,0,0,i,l,y,i,w=[],d),E),i,E,d,l,r?w:E);break;default:Tl(R,x,x,x,[""],E,0,l,E)}}c=u=f=0,m=v=1,y=R="",d=a;break;case 58:d=1+Ga(R),f=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==al())continue;switch(R+=Va(b),b*m){case 38:v=u>0?1:(R+="\f",-1);break;case 44:l[c++]=(Ga(R)-1)*v,v=1;break;case 64:45===sl()&&(R+=pl(ll())),h=sl(),u=d=Ga(y=R+=yl(cl())),b++;break;case 45:45===p&&2==Ga(R)&&(m=0)}}return o}function Pl(e,t,n,r,i,o,a,l,s,c,u){for(var d=i-1,h=0===i?o:[""],f=Ya(h),p=0,m=0,g=0;p0?h[v]+" "+b:qa(b,/&\f/g,h[v])))&&(s[g++]=y);return il(e,t,n,0===i?kl:l,s,c,u)}function _l(e,t,n){return il(e,t,n,Rl,Va(nl),$a(e,2,-2),0)}function Il(e,t,n,r){return il(e,t,n,Sl,$a(e,0,r),$a(e,r+1,-1),r)}var Dl=function(e,t,n){for(var r=0,i=0;r=i,i=sl(),38===r&&12===i&&(t[n]=1),!dl(i);)ll();return ul(e,tl)},jl=new WeakMap,Ll=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)||jl.get(n))&&!r){jl.set(e,!0);for(var i=[],o=function(e,t){return fl(function(e,t){var n=-1,r=44;do{switch(dl(r)){case 0:38===r&&12===sl()&&(t[n]=1),e[n]+=Dl(tl-1,t,n);break;case 2:e[n]+=pl(r);break;case 4:if(44===r){e[++n]=58===sl()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Va(r)}}while(r=ll());return e}(hl(e),t))}(t,i),a=n.props,l=0,s=0;l6)switch(Ua(e,t+1)){case 109:if(45!==Ua(e,t+4))break;case 102:return qa(e,/(.+:)(.+)-([^]+)/,"$1"+xl+"$2-$3$1"+El+(108==Ua(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ka(e,"stretch")?Bl(qa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ua(e,t+1))break;case 6444:switch(Ua(e,Ga(e)-3-(~Ka(e,"!important")&&10))){case 107:return qa(e,":",":"+xl)+e;case 101:return qa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xl+(45===Ua(e,14)?"inline-":"")+"box$3$1"+xl+"$2$3$1"+wl+"$2box$3")+e}break;case 5936:switch(Ua(e,t+11)){case 114:return xl+e+wl+qa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xl+e+wl+qa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xl+e+wl+qa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xl+e+wl+e+e}return e}var Fl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Sl:e.return=Bl(e.value,e.length);break;case Ol:return Cl([ol(e,{value:qa(e.value,"@","@"+xl)})],r);case kl:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Cl([ol(e,{props:[qa(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Cl([ol(e,{props:[qa(t,/:(plac\w+)/,":"+xl+"input-$1")]}),ol(e,{props:[qa(t,/:(plac\w+)/,":-moz-$1")]}),ol(e,{props:[qa(t,/:(plac\w+)/,wl+"input-$1")]})],r)}return""})}}],Hl=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,i,o=e.stylisPlugins||Fl,a={},l=[];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=4;++r,i-=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(i){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)}(i)+s;return{name:c,styles:i,next:Xl}}var es,ts,ns=!!Pa.useInsertionEffect&&Pa.useInsertionEffect,rs=ns||function(e){return e()},is=(ns||Pa.useLayoutEffect,Pa.createContext("undefined"!=typeof HTMLElement?Hl({key:"css"}):null)),os=(is.Provider,function(e){return(0,Pa.forwardRef)(function(t,n){var r=(0,Pa.useContext)(is);return e(t,r,n)})}),as=Pa.createContext({}),ls={}.hasOwnProperty,ss="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zl(t,n,r),rs(function(){return function(e,t,n){zl(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)}),null},us=os(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[ss],o=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var l=Ql(o,void 0,Pa.useContext(as));a+=t.key+"-"+l.name;var s={};for(var c in e)ls.call(e,c)&&"css"!==c&&c!==ss&&(s[c]=e[c]);return s.className=a,n&&(s.ref=n),Pa.createElement(Pa.Fragment,null,Pa.createElement(cs,{cache:t,serialized:l,isStringTag:"string"==typeof i}),Pa.createElement(i,s))}),ds=us,hs=(n(146),function(e,t){var n=arguments;if(null==t||!ls.call(t,"css"))return Pa.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=ds,i[1]=function(e,t){var n={};for(var r in t)ls.call(t,r)&&(n[r]=t[r]);return n[ss]=e,n}(e,t);for(var o=2;o({x:e,y:e});function ws(){return"undefined"!=typeof window}function Es(e){return ks(e)?(e.nodeName||"").toLowerCase():"#document"}function xs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rs(e){var t;return null==(t=(ks(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ks(e){return!!ws()&&(e instanceof Node||e instanceof xs(e).Node)}function Ss(e){return!!ws()&&(e instanceof Element||e instanceof xs(e).Element)}function Os(e){return!!ws()&&(e instanceof HTMLElement||e instanceof xs(e).HTMLElement)}function Cs(e){return!(!ws()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof xs(e).ShadowRoot)}function Ms(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ts(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}let As;function Ts(e){return xs(e).getComputedStyle(e)}function Ps(e){const t=function(e){if("html"===Es(e))return e;const t=e.assignedSlot||e.parentNode||Cs(e)&&e.host||Rs(e);return Cs(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(Es(e))}(t)?(e.ownerDocument||e).body:Os(t)&&Ms(t)?t:Ps(t)}function _s(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Ps(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=xs(i);if(o){const e=Is(a);return t.concat(a,a.visualViewport||[],Ms(i)?i:[],e&&n?_s(e):[])}return t.concat(i,_s(i,[],n))}function Is(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ds(e){return Ss(e)?e:e.contextElement}function js(e){const t=Ds(e);if(!Os(t))return ys(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const t=Ts(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Os(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=vs(n)!==o||vs(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}(t);let a=(o?vs(n.width):n.width)/r,l=(o?vs(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Ls=ys(0);function Ns(e){const t=xs(e);return null==As&&(As="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),As&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ls}function Bs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ds(e);let a=ys(1);t&&(r?Ss(r)&&(a=js(r)):a=js(e));const l=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===xs(e)}(o,n,r)?Ns(o):ys(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o&&r){const e=xs(o),t=Ss(r)?xs(r):r;let n=e,i=Is(n);for(;i&&t!==n;){const e=js(i),t=i.getBoundingClientRect(),r=Ts(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=o,c+=a,n=xs(i),i=Is(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:u,height:d,x:s,y:c})}function Fs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Hs=Pa.useLayoutEffect,zs=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Vs=function(){};function Ws(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Zs(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Gs(e){return $s(e)?window.pageYOffset:e.scrollTop}function Ys(e,t){$s(e)?window.scrollTo(0,t):e.scrollTop=t}function Xs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vs,i=Gs(e),o=t-i,a=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);Ys(e,l),an.bottom?Ys(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=p)return{placement:"bottom",maxHeight:t};if(k>=p&&!a)return o&&Xs(s,S,C),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&x>=r)return o&&Xs(s,S,C),{placement:"bottom",maxHeight:a?x-y:k-y};if("auto"===i||a){var M=t,A=a?E:R;return A>=r&&(M=Math.min(A-y-l,t)),{placement:"top",maxHeight:M}}if("bottom"===i)return o&&Ys(s,S),{placement:"bottom",maxHeight:t};break;case"top":if(E>=p)return{placement:"top",maxHeight:t};if(R>=p&&!a)return o&&Xs(s,O,C),{placement:"top",maxHeight:t};if(!a&&R>=r||a&&E>=r){var T=t;return(!a&&R>=r||a&&E>=r)&&(T=a?E-w:R-w),o&&Xs(s,O,C),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});h(l.maxHeight),m(l.placement),null==s||s(l.placement)}},[r,i,o,a,n,s,g]),t({ref:c,placerProps:Sa(Sa({},e),{},{placement:p||cc(i),maxHeight:d})})},hc=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return Sa({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},fc=hc,pc=hc,mc=["size"],gc=["innerProps","isRtl","size"],vc={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},bc=function(e){var t=e.size,n=Ta(e,mc);return hs("svg",Da({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vc},n))},yc=function(e){return hs(bc,Da({size:20},e),hs("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"}))},wc=function(e){return hs(bc,Da({size:20},e),hs("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"}))},Ec=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Sa({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},xc=Ec,Rc=Ec,kc=function(){var e=fs.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_"}}}(sc||(sc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Sc=function(e){var t=e.delay,n=e.offset;return hs("span",{css:fs({animation:"".concat(kc," 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"},"","")})},Oc=["data"],Cc=["innerRef","isDisabled","isHidden","inputClassName"],Mc={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ac={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Sa({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Mc)},Tc=function(e){return Sa({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Mc)},Pc=function(e){var t=e.children,n=e.innerProps;return hs("div",n,t)},_c={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return hs("div",Da({},Us(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||hs(yc,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return hs("div",Da({ref:i},Us(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return hs("div",Da({},Us(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||hs(wc,null))},DownChevron:wc,CrossIcon:yc,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return hs("div",Da({},Us(e,"group",{group:!0}),l),hs(o,Da({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:i,cx:n}),s),hs("div",null,t))},GroupHeading:function(e){var t=Ks(e);t.data;var n=Ta(t,Oc);return hs("div",Da({},Us(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return hs("div",Da({},Us(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return hs("span",Da({},t,Us(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ks(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Ta(r,Cc);return hs("div",Da({},Us(e,"input",{"input-container":!0}),{"data-value":n||""}),hs("input",Da({className:t({input:!0},l),ref:i,style:Tc(a),disabled:o},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Ta(e,gc);return hs("div",Da({},Us(Sa(Sa({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),hs(Sc,{delay:0,offset:n}),hs(Sc,{delay:160,offset:!0}),hs(Sc,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return hs("div",Da({},Us(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return hs("div",Da({},Us(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,a=e.menuPosition,l=(0,Pa.useRef)(null),s=(0,Pa.useRef)(null),c=Ma((0,Pa.useState)(cc(o)),2),u=c[0],d=c[1],h=(0,Pa.useMemo)(function(){return{setPortalPlacement:d}},[]),f=Ma((0,Pa.useState)(null),2),p=f[0],m=f[1],g=(0,Pa.useCallback)(function(){if(r){var e=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}}(r),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;n===(null==p?void 0:p.offset)&&e.left===(null==p?void 0:p.rect.left)&&e.width===(null==p?void 0:p.rect.width)||m({offset:n,rect:e})}},[r,a,u,null==p?void 0:p.offset,null==p?void 0:p.rect.left,null==p?void 0:p.rect.width]);Hs(function(){g()},[g]);var v=(0,Pa.useCallback)(function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&l.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Ds(e),u=i||o?[...c?_s(c):[],...t?_s(t):[]]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n),o&&e.addEventListener("resize",n)});const d=c&&l?function(e,t,n){let r,i=null;const o=Rs(e);function a(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function l(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(n||t(),!h||!f)return;const p={rootMargin:-bs(d)+"px "+-bs(o.clientWidth-(u+h))+"px "+-bs(o.clientHeight-(d+f))+"px "+-bs(u)+"px",threshold:gs(0,ms(1,s))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(!Fs(c,e.getBoundingClientRect()))return l();if(n!==s){if(!m)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(g,p)}i.observe(e)}const s=xs(e),c=()=>l(n);return s.addEventListener("resize",c),l(!0),()=>{s.removeEventListener("resize",c),a()}}(c,n,o):null;let h,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!s&&p.observe(c),t&&p.observe(t));let m=s?Bs(e):null;return s&&function t(){const r=Bs(e);m&&!Fs(m,r)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(h)}}(r,l.current,g,{elementResize:"ResizeObserver"in window}))},[r,g]);Hs(function(){v()},[v]);var b=(0,Pa.useCallback)(function(e){l.current=e,v()},[v]);if(!t&&"fixed"!==a||!p)return null;var y=hs("div",Da({ref:b},Us(Sa(Sa({},e),{},{offset:p.offset,position:a,rect:p.rect}),"menuPortal",{"menu-portal":!0}),i),n);return hs(uc.Provider,{value:h},t?(0,ps.createPortal)(y,t):y)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Ta(e,lc);return hs("div",Da({},Us(Sa(Sa({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=Ta(e,ac);return hs("div",Da({},Us(Sa(Sa({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return hs(s,{data:r,innerProps:Sa(Sa({},Us(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},hs(c,{data:r,innerProps:Sa({},Us(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),hs(u,{data:r,innerProps:Sa(Sa({},Us(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:Pc,MultiValueLabel:Pc,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return hs("div",Da({role:"button"},n),t||hs(yc,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return hs("div",Da({},Us(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return hs("div",Da({},Us(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return hs("div",Da({},Us(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return hs("div",Da({},Us(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return hs("div",Da({},Us(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Ic=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Dc(e,t){return e===t||!(!Ic(e)||!Ic(t))}function jc(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=l?" disabled":"",h="".concat(s?" selected":"").concat(d);return"".concat(o).concat(h,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Fc=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,l=e.selectProps,s=e.id,c=e.isAppleDevice,u=l.ariaLiveMessages,d=l.getOptionLabel,h=l.inputValue,f=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,g=l.menuIsOpen,v=l.options,b=l.screenReaderStatus,y=l.tabSelectsValue,w=l.isLoading,E=l["aria-label"],x=l["aria-live"],R=(0,Pa.useMemo)(function(){return Sa(Sa({},Bc),u||{})},[u]),k=(0,Pa.useMemo)(function(){var e,n="";if(t&&R.onChange){var r=t.option,i=t.options,o=t.removedValue,l=t.removedValues,s=t.value,c=o||r||(e=s,Array.isArray(e)?null:e),u=c?d(c):"",h=i||l||void 0,f=h?h.map(d):[],m=Sa({isDisabled:c&&p(c,a),label:u,labels:f},t);n=R.onChange(m)}return n},[t,R,p,a,d]),S=(0,Pa.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&R.onFocus){var l={focused:t,label:d(t),isDisabled:p(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=R.onFocus(l)}return e},[n,r,d,p,R,i,a,c]),O=(0,Pa.useMemo)(function(){var e="";if(g&&v.length&&!w&&R.onFilter){var t=b({count:i.length});e=R.onFilter({inputValue:h,resultsMessage:t})}return e},[i,h,g,R,v,b,w]),C="initial-input-focus"===(null==t?void 0:t.action),M=(0,Pa.useMemo)(function(){var e="";if(R.guidance){var t=r?"value":g?"menu":"input";e=R.guidance({"aria-label":E,context:t,isDisabled:n&&p(n,a),isMulti:f,isSearchable:m,tabSelectsValue:y,isInitialFocus:C})}return e},[E,n,r,f,p,m,g,R,a,y,C]),A=hs(Pa.Fragment,null,hs("span",{id:"aria-selection"},k),hs("span",{id:"aria-focused"},S),hs("span",{id:"aria-results"},O),hs("span",{id:"aria-guidance"},M));return hs(Pa.Fragment,null,hs(Nc,{id:s},C&&A),hs(Nc,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!C&&A))},Hc=[{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źẑżžẓẕƶȥɀⱬꝣ"}],zc=new RegExp("["+Hc.map(function(e){return e.letters}).join("")+"]","g"),Vc={},Wc=0;Wc1?t-1:0),r=1;r0,m=d-h-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),p&&l.current&&(o&&o(e),l.current=!1),p&&t>m?(n&&!a.current&&n(e),f.scrollTop=d,g=!0,a.current=!0):!p&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,o]),d=(0,Pa.useCallback)(function(e){u(e,e.deltaY)},[u]),h=(0,Pa.useCallback)(function(e){s.current=e.changedTouches[0].clientY},[]),f=(0,Pa.useCallback)(function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)},[u]),p=(0,Pa.useCallback)(function(e){if(e){var t=!!rc&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",f,t)}},[f,h,d]),m=(0,Pa.useCallback)(function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))},[f,h,d]);return(0,Pa.useEffect)(function(){if(t){var e=c.current;return p(e),function(){m(e)}}},[t,p,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,Pa.useRef)({}),o=(0,Pa.useRef)(null),a=(0,Pa.useCallback)(function(e){if(iu){var t=document.body,n=t&&t.style;if(r&&Jc.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&ou<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+o||0;Object.keys(Qc).forEach(function(e){var t=Qc[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(l,"px"))}t&&ru()&&(t.addEventListener("touchmove",eu,au),e&&(e.addEventListener("touchstart",nu,au),e.addEventListener("touchmove",tu,au))),ou+=1}},[r]),l=(0,Pa.useCallback)(function(e){if(iu){var t=document.body,n=t&&t.style;ou=Math.max(ou-1,0),r&&ou<1&&Jc.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&ru()&&(t.removeEventListener("touchmove",eu,au),e&&(e.removeEventListener("touchstart",nu,au),e.removeEventListener("touchmove",tu,au)))}},[r]);return(0,Pa.useEffect)(function(){if(t){var e=o.current;return a(e),function(){l(e)}}},[t,a,l]),function(e){o.current=e}}({isEnabled:n});return hs(Pa.Fragment,null,n&&hs("div",{onClick:lu,css:su}),t(function(e){i(e),o(e)}))}var uu={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},du=function(e){var t=e.name,n=e.onFocus;return hs("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:uu,value:"",onChange:function(){}})};function hu(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function fu(){return hu(/^Mac/i)}var pu={clearIndicator:Rc,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,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return Sa({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:xc,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return Sa({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Sa({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return Sa(Sa({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ac),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return Sa({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:pc,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return Sa((Ra(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Ra(n,"position","absolute"),Ra(n,"width","100%"),Ra(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Sa({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},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,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return Sa({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return Sa({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return Sa({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:fc,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,l=o.colors;return Sa({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return Sa({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return Sa({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return Sa({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},mu={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}},gu={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Qs(),captureMenuScroll:!Qs(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Sa({ignoreCase:!0,ignoreAccents:!0,stringify:Gc,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,l=n.matchFrom,s=a?$c(t):t,c=a?$c(o(e)):o(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),i&&(s=Uc(s),c=Kc(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-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,unstyled:!1};function vu(e,t,n,r){return{type:"option",data:t,isDisabled:Su(e,t,n),isSelected:Ou(e,t,n),label:Ru(e,t),value:ku(e,t),index:r}}function bu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return vu(e,n,t,r)}).filter(function(t){return Eu(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=vu(e,n,t,r);return Eu(e,o)?o:void 0}).filter(ic)}function yu(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,Fa(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function wu(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,Fa(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Eu(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!Mu(e)||!o)&&Cu(e,{label:a,value:l,data:i},r)}var xu=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Ru=function(e,t){return e.getOptionLabel(t)},ku=function(e,t){return e.getOptionValue(t)};function Su(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Ou(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ku(e,t);return n.some(function(t){return ku(e,t)===r})}function Cu(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Mu=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Au=1,Tu=function(e){!function(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&&La(e,t)}(n,e);var t=function(e){var t=Ba();return function(){var n,r=Na(e);if(t){var i=Na(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Ea(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,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,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,l=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:l}),o&&(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,i=t.isMulti,o=t.name,a=r.state.selectValue,l=i&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(l){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(Fa(a),[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,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),a=oc(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(oc(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],i=t.slice(0,t.length-1),o=oc(e,i,i[0]||null);n&&r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return xu(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return wu(bu(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||o>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){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Mu(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,l=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,h=t.openMenuOnFocus,f=r.state,p=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof u&&(u(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(!i)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!p||h&&r.isOptionSelected(p,g))return;r.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):l&&o&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!p)return;r.selectOption(p);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.state.instancePrefix="react-select-"+(r.props.instanceId||++Au),r.state.selectValue=qs(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=xu(i,o[a])}return r}return function(e,t,n){t&&ja(e.prototype,t),n&&ja(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Js(this.menuListRef,this.focusedOptionRef),(fu()||hu(/^iPhone/i)||hu(/^iPad/i)||fu()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Js(this.menuListRef,this.focusedOptionRef),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,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var l=o.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[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 i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(mu):Sa(Sa({},mu),this.props.theme):mu}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:o,selectProps:l,setValue:a,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 Su(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Ou(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Cu(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,i=e.inputValue,o=e.tabIndex,a=e.form,l=e.menuIsOpen,s=e.required,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,h=u.ariaSelection,f=this.commonProps,p=r||this.getElementId("input"),m=Sa(Sa(Sa({"aria-autocomplete":"list","aria-expanded":l,"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"],"aria-required":s,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Pa.createElement(c,Da({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},m)):Pa.createElement(Xc,Da({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Vs,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,s=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,h=c.isMulti,f=c.inputValue,p=c.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,b=m.isFocused;if(!this.hasValue()||!u)return f?null:Pa.createElement(l,Da({},s,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),p);if(h)return g.map(function(t,a){var l=t===v,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Pa.createElement(n,Da({},s,{components:{Container:r,Label:i,Remove:o},isFocused:l,isDisabled:d,key:c,index:a,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(f)return null;var y=g[0];return Pa.createElement(a,Da({},s,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Pa.createElement(e,Da({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?Pa.createElement(e,Da({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return Pa.createElement(n,Da({},r,{isDisabled:i,isFocused:o}))}},{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,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Pa.createElement(e,Da({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state.focusedOption,h=this.props,f=h.captureMenuScroll,p=h.inputValue,m=h.isLoading,g=h.loadingMessage,v=h.minMenuHeight,b=h.maxMenuHeight,y=h.menuIsOpen,w=h.menuPlacement,E=h.menuPosition,x=h.menuPortalTarget,R=h.menuShouldBlockScroll,k=h.menuShouldScrollIntoView,S=h.noOptionsMessage,O=h.onMenuScrollToTop,C=h.onMenuScrollToBottom;if(!y)return null;var M,A=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,a=t.isSelected,l=t.label,s=t.value,h=d===i,f=o?void 0:function(){return e.onOptionHover(i)},p=o?void 0:function(){return e.selectOption(i)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:p,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return Pa.createElement(c,Da({},u,{innerProps:g,data:i,isDisabled:o,isSelected:a,key:m,label:l,type:r,value:s,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,o=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),s="".concat(l,"-heading");return Pa.createElement(n,Da({},u,{key:l,data:i,options:o,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return A(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return A(t,"".concat(t.index))});else if(m){var T=g({inputValue:p});if(null===T)return null;M=Pa.createElement(l,u,T)}else{var P=S({inputValue:p});if(null===P)return null;M=Pa.createElement(s,u,P)}var _={minMenuHeight:v,maxMenuHeight:b,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:k},I=Pa.createElement(dc,Da({},u,_),function(t){var n=t.ref,r=t.placerProps,a=r.placement,l=r.maxHeight;return Pa.createElement(i,Da({},u,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),Pa.createElement(cu,{captureEnabled:f,onTopArrive:O,onBottomArrive:C,lockEnabled:R},function(t){return Pa.createElement(o,Da({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:l,focusedOption:d}),M)}))});return x||"fixed"===E?Pa.createElement(a,Da({},u,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,l=this.state.selectValue;if(a&&!this.hasValue()&&!r)return Pa.createElement(du,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var s=l.map(function(t){return e.getOptionValue(t)}).join(n);return Pa.createElement("input",{name:o,type:"hidden",value:s})}var c=l.length>0?l.map(function(t,n){return Pa.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):Pa.createElement("input",{name:o,type:"hidden",value:""});return Pa.createElement("div",null,c)}var u=l[0]?this.getOptionValue(l[0]):"";return Pa.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return Pa.createElement(Fc,Da({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,l=o.id,s=o.isDisabled,c=o.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return Pa.createElement(r,Da({},d,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),Pa.createElement(t,Da({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:c}),Pa.createElement(i,Da({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Pa.createElement(n,Da({},d,{isDisabled:s}),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,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,h=e.inputValue,f=e.isMulti,p=qs(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||h!==n.inputValue)){var g=d?function(e,t){return yu(bu(e,t))}(e,p):[],v=d?wu(bu(e,p),"".concat(s,"-option")):[],b=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-1?n:t[0]}(t,g);m={selectValue:p,focusedOption:y,focusedOptionId:xu(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},E=o,x=a&&l;return a&&!x&&(E={value:oc(f,p,p[0]||null),options:p,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(E=null),Sa(Sa(Sa({},m),w),{},{prevProps:e,ariaSelection:E,prevWasFocused:x})}}]),n}(Pa.Component);Tu.defaultProps=gu;var Pu=(0,Pa.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,o=e.defaultValue,a=void 0===o?null:o,l=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,p=Ta(e,Ia),m=Ma((0,Pa.useState)(void 0!==l?l:n),2),g=m[0],v=m[1],b=Ma((0,Pa.useState)(void 0!==s?s:i),2),y=b[0],w=b[1],E=Ma((0,Pa.useState)(void 0!==f?f:a),2),x=E[0],R=E[1],k=(0,Pa.useCallback)(function(e,t){"function"==typeof c&&c(e,t),R(e)},[c]),S=(0,Pa.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),v(void 0!==n?n:e)},[u]),O=(0,Pa.useCallback)(function(){"function"==typeof h&&h(),w(!0)},[h]),C=(0,Pa.useCallback)(function(){"function"==typeof d&&d(),w(!1)},[d]),M=void 0!==l?l:g,A=void 0!==s?s:y,T=void 0!==f?f:x;return Sa(Sa({},p),{},{inputValue:M,menuIsOpen:A,onChange:k,onInputChange:S,onMenuClose:C,onMenuOpen:O,value:T})}(e);return Pa.createElement(Tu,Da({ref:t},n))}),_u=Pu,Iu=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},React.createElement("path",{fill:"#757575",d:"M12.25 17c3.3 0 6-2.7 6-6V3h-2.5v8c0 1.95-1.55 3.5-3.5 3.5s-3.5-1.55-3.5-3.5V3h-2.5v8c0 3.3 2.7 6 6 6Zm-7 2v2h14v-2h-14Z"}))},Du=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},React.createElement("path",{fill:"#757575",fillRule:"evenodd",d:"M12.154 19c-.795 0-1.603-.09-2.423-.27-.82-.166-1.481-.365-1.981-.595L8 16.192c.641.308 1.365.577 2.173.808.808.23 1.61.346 2.404.346.897 0 1.59-.16 2.077-.48.5-.334.75-.828.75-1.481 0-.488-.128-.891-.385-1.212-.243-.333-.609-.609-1.096-.827a9.075 9.075 0 0 0-.83-.346H4.75v-1h16v1h-4.094c.499.587.748 1.337.748 2.25 0 1.18-.442 2.103-1.327 2.77-.885.653-2.192.98-3.923.98ZM7.84 9a4.884 4.884 0 0 1-.013-.365c0-1.09.417-1.968 1.25-2.635.846-.667 2.032-1 3.558-1 .82 0 1.596.09 2.326.27.744.179 1.392.397 1.943.653l-.192 1.942c-.718-.423-1.41-.73-2.077-.923a7.456 7.456 0 0 0-2.077-.288c-.834 0-1.5.154-2 .461-.488.308-.731.782-.731 1.423 0 .165.016.32.047.462H7.84Z",clipRule:"evenodd"}))},ju=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},React.createElement("path",{fill:"#757575",d:"M12.358 17.5h-1.911l2.248-10.569h1.912L12.358 17.5Z"}))},Lu=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},React.createElement("rect",{x:.8,y:.8,width:22.4,height:22.4,rx:3.2,stroke:"#2F2F2F",strokeWidth:1.6}),React.createElement("path",{d:"M13.0315 16.75L11.0684 11.1504C10.1567 8.55012 9.70094 7.25 8.9601 7.25C8.21926 7.25 7.76345 8.55012 6.85184 11.1504L4.88867 16.75M6.5851 12H11.3351",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M19.0884 13.3159V16.3695M19.0884 13.3159C19.1204 12.7574 19.1217 12.3319 19.0546 11.9846C18.8965 11.166 18.0411 10.6727 17.2134 10.5723C16.4212 10.4763 15.7853 10.6802 15.142 11.6175M19.0884 13.3159H17.1588C16.8624 13.3159 16.5634 13.3302 16.2778 13.4096C14.532 13.8949 14.66 16.3431 16.4108 16.6449C16.6053 16.6784 16.8039 16.6928 17.0008 16.6839C17.4606 16.6634 17.8848 16.4413 18.249 16.1597C18.6754 15.8299 19.0884 15.3695 19.0884 14.6731V13.3159Z",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};function Nu(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Bu(c,"_invoke",function(n,r,i){var o,l,s,c=0,u=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,l=0,s=e,h.n=n,a}};function f(n,r){for(l=n,s=r,t=0;!d&&c&&!i&&t3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Bu(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Bu(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Bu(d,"constructor",c),Bu(c,"constructor",s),s.displayName="GeneratorFunction",Bu(c,i,"GeneratorFunction"),Bu(d),Bu(d,i,"Generator"),Bu(d,r,function(){return this}),Bu(d,"toString",function(){return"[object Generator]"}),(Nu=function(){return{w:o,m:h}})()}function Bu(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Bu=function(e,t,n,r){function o(t,n){Bu(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Bu(e,t,n,r)}function Fu(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}var Hu=function(){var e,t=(e=Nu().m(function e(){var t,n;return Nu().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyCJIzfKoHlACqsmK1zDzl-OAsgtJPk8BtI");case 1:if(200!==(t=e.v).status){e.n=2;break}return e.a(2,t.json());case 2:e.n=4;break;case 3:e.p=3,n=e.v,console.error("Error fetching Google Fonts:",n);case 4:return e.a(2)}},e,null,[[0,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){Fu(o,r,i,a,l,"next",e)}function l(e){Fu(o,r,i,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}(),zu={100:"Thin 100",200:"Extra Light 200",300:"Light 300",400:"Regular 400",500:"Medium 500",600:"Semi Bold 600",700:"Bold 700",800:"Extra Bold 800",900:"Black 900","100italic":"italic 100","200italic":"italic 200","300italic":"italic 300",italic:"italic 400","400italic":"italic 400","500italic":"italic 500","600italic":"italic 600","700italic":"italic 700","800italic":"italic 800","900italic":"italic 900"},Vu=[{label:React.createElement(ju,null),key:"style",value:"italic"},{label:React.createElement(Iu,null),key:"decoration",value:"underline"},{label:React.createElement(Du,null),key:"decoration",value:"line-through"},{label:"AB",key:"transform",value:"uppercase"},{label:"ab",key:"transform",value:"lowercase"},{label:"Ab",key:"transform",value:"capitalize"}],Wu=function(e){return(0,m.useMemo)(function(){var t;return null==e||null===(t=e.font)||void 0===t||null===(t=t.variants)||void 0===t?void 0:t.map(function(e){if("regular"===e&&(e="400"),zu[e])return{label:zu[e],value:e}})},[e])};function Zu(e){return Zu="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},Zu(e)}function qu(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 Ku(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n{t.current=e}),(0,Pa.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function gd(e,t){const n=(0,Pa.useRef)();return(0,Pa.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function vd(e){const t=pd(e),n=(0,Pa.useRef)(null),r=(0,Pa.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function bd(e){const t=(0,Pa.useRef)();return(0,Pa.useEffect)(()=>{t.current=e},[e]),t.current}let yd={};function wd(e,t){return(0,Pa.useMemo)(()=>{if(t)return t;const n=null==yd[e]?0:yd[e]+1;return yd[e]=n,e+"-"+n},[e,t])}function Ed(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}const xd=Ed(1),Rd=Ed(-1);function kd(e){if(!e)return!1;const{KeyboardEvent:t}=sd(e.target);return t&&e instanceof t}function Sd(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=sd(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Od=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Od.Translate.toString(e),Od.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Cd="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Md(e){return e.matches(Cd)?e:e.querySelector(Cd)}const Ad={display:"none"};function Td(e){let{id:t,value:n}=e;return _a().createElement("div",{id:t,style:Ad},n)}function Pd(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return _a().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const _d=(0,Pa.createContext)(null),Id={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Dd={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function jd(e){let{announcements:t=Dd,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Id}=e;const{announce:o,announcement:a}=function(){const[e,t]=(0,Pa.useState)("");return{announce:(0,Pa.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=wd("DndLiveRegion"),[s,c]=(0,Pa.useState)(!1);if((0,Pa.useEffect)(()=>{c(!0)},[]),function(e){const t=(0,Pa.useContext)(_d);(0,Pa.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,Pa.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}}),[o,t])),!s)return null;const u=_a().createElement(_a().Fragment,null,_a().createElement(Td,{id:r,value:i.draggable}),_a().createElement(Pd,{id:l,announcement:a}));return n?(0,ps.createPortal)(u,n):u}var Ld;function Nd(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Ld||(Ld={}));const Bd=Object.freeze({x:0,y:0});function Fd(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Hd(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,l=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=Hd(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Fd)};function Vd(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Bd}function Wd(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const Zd=Wd(1);const qd={ignoreTransform:!1};function Kd(e,t){void 0===t&&(t=qd);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=sd(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:l}=r,s=e.left-a-(1-i)*parseFloat(n),c=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:l,right:s}=n;return{top:r,left:i,width:o,height:a,bottom:l,right:s}}function Ud(e){return Kd(e,{ignoreTransform:!0})}function $d(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(cd(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!ud(i)||dd(i))return n;if(n.includes(i))return n;const o=sd(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=sd(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=sd(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function Gd(e){const[t]=$d(e,1);return null!=t?t:null}function Yd(e){return od&&e?ad(e)?e:ld(e)?cd(e)||e===hd(e).scrollingElement?window:ud(e)?e:null:null:null}function Xd(e){return ad(e)?e.scrollX:e.scrollLeft}function Jd(e){return ad(e)?e.scrollY:e.scrollTop}function Qd(e){return{x:Xd(e),y:Jd(e)}}var eh;function th(e){return!(!od||!e)&&e===document.scrollingElement}function nh(e){const t={x:0,y:0},n=th(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(eh||(eh={}));const rh={x:.2,y:.2};function ih(e,t,n,r,i){let{top:o,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=rh);const{isTop:c,isBottom:u,isLeft:d,isRight:h}=nh(e),f={x:0,y:0},p={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!c&&o<=t.top+m?(f.y=eh.Backward,p.y=r*Math.abs((t.top+m-o)/m)):!u&&s>=t.bottom-m&&(f.y=eh.Forward,p.y=r*Math.abs((t.bottom-m-s)/m)),!h&&l>=t.right-g?(f.x=eh.Forward,p.x=r*Math.abs((t.right-g-l)/g)):!d&&a<=t.left+g&&(f.x=eh.Backward,p.x=r*Math.abs((t.left+g-a)/g)),{direction:f,speed:p}}function oh(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function ah(e){return e.reduce((e,t)=>xd(e,Qd(t)),Bd)}const lh=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Xd(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Jd(t),0)}]];class sh{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=$d(t),r=ah(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of lh)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ch{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function uh(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var dh,hh;function fh(e){e.preventDefault()}function ph(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(dh||(dh={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(hh||(hh={}));const mh={start:[hh.Space,hh.Enter],cancel:[hh.Esc],end:[hh.Space,hh.Enter,hh.Tab]},gh=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case hh.Right:return{...n,x:n.x+25};case hh.Left:return{...n,x:n.x-25};case hh.Down:return{...n,y:n.y+25};case hh.Up:return{...n,y:n.y-25}}};class vh{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ch(hd(t)),this.windowListeners=new ch(sd(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(dh.Resize,this.handleCancel),this.windowListeners.add(dh.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(dh.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=Kd),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);Gd(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(Bd)}handleKeyDown(e){if(kd(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=mh,coordinateGetter:o=gh,scrollBehavior:a="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:Bd;this.referenceCoordinates||(this.referenceCoordinates=c);const u=o(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=Rd(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:l,isLeft:s,isBottom:c,maxScroll:d,minScroll:h}=nh(n),f=oh(n),p={x:Math.min(i===hh.Right?f.right-f.width/2:f.right,Math.max(i===hh.Right?f.left:f.left+f.width/2,u.x)),y:Math.min(i===hh.Down?f.bottom-f.height/2:f.bottom,Math.max(i===hh.Down?f.top:f.top+f.height/2,u.y))},m=i===hh.Right&&!l||i===hh.Left&&!s,g=i===hh.Down&&!c||i===hh.Up&&!o;if(m&&p.x!==u.x){const e=n.scrollLeft+t.x,o=i===hh.Right&&e<=d.x||i===hh.Left&&e>=h.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===hh.Right?n.scrollLeft-d.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&p.y!==u.y){const e=n.scrollTop+t.y,o=i===hh.Down&&e<=d.y||i===hh.Up&&e>=h.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===hh.Down?n.scrollTop-d.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,xd(Rd(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function bh(e){return Boolean(e&&"distance"in e)}function yh(e){return Boolean(e&&"delay"in e)}vh.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=mh,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class wh{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=sd(e);return e instanceof t?e:hd(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=hd(o),this.documentListeners=new ch(this.document),this.listeners=new ch(n),this.windowListeners=new ch(sd(o)),this.initialCoordinates=null!=(r=Sd(i))?r:Bd,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(dh.Resize,this.handleCancel),this.windowListeners.add(dh.DragStart,fh),this.windowListeners.add(dh.VisibilityChange,this.handleCancel),this.windowListeners.add(dh.ContextMenu,fh),this.documentListeners.add(dh.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(yh(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(bh(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(dh.Click,ph,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(dh.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const l=null!=(t=Sd(e))?t:Bd,s=Rd(r,l);if(!n&&a){if(bh(a)){if(null!=a.tolerance&&uh(s,a.tolerance))return this.handleCancel();if(uh(s,a.distance))return this.handleStart()}return yh(a)&&uh(s,a.tolerance)?this.handleCancel():void this.handlePending(a,s)}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===hh.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Eh={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class xh extends wh{constructor(e){const{event:t}=e,n=hd(t.target);super(e,Eh,n)}}xh.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Rh={move:{name:"mousemove"},end:{name:"mouseup"}};var kh;!function(e){e[e.RightClick=2]="RightClick"}(kh||(kh={})),class extends wh{constructor(e){super(e,Rh,hd(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==kh.RightClick&&(null==r||r({event:n}),!0)}}];const Sh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Oh,Ch;(class extends wh{constructor(e){super(e,Sh)}static setup(){return window.addEventListener(Sh.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Sh.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Oh||(Oh={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Ch||(Ch={}));const Mh={x:{[eh.Backward]:!1,[eh.Forward]:!1},y:{[eh.Backward]:!1,[eh.Forward]:!1}};var Ah,Th;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Ah||(Ah={})),function(e){e.Optimized="optimized"}(Th||(Th={}));const Ph=new Map;function _h(e,t){return gd(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function Ih(e){let{callback:t,disabled:n}=e;const r=pd(t),i=(0,Pa.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return(0,Pa.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function Dh(e){return new sh(Kd(e),e)}function jh(e,t,n){void 0===t&&(t=Dh);const[r,i]=(0,Pa.useState)(null);function o(){i(r=>{if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o})}const a=function(e){let{callback:t,disabled:n}=e;const r=pd(t),i=(0,Pa.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,Pa.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),l=Ih({callback:o});return fd(()=>{o(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())},[e]),r}const Lh=[];function Nh(e,t){void 0===t&&(t=[]);const n=(0,Pa.useRef)(null);return(0,Pa.useEffect)(()=>{n.current=null},t),(0,Pa.useEffect)(()=>{const t=e!==Bd;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?Rd(e,n.current):Bd}function Bh(e){return(0,Pa.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const Fh=[];const Hh=[{sensor:xh,options:{}},{sensor:vh,options:{}}],zh={current:{}},Vh={draggable:{measure:Ud},droppable:{measure:Ud,strategy:Ah.WhileDragging,frequency:Th.Optimized},dragOverlay:{measure:Kd}};class Wh extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Zh={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Wh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Nd},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Vh,measureDroppableContainers:Nd,windowRect:null,measuringScheduled:!1},qh={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Nd,draggableNodes:new Map,over:null,measureDroppableContainers:Nd},Kh=(0,Pa.createContext)(qh),Uh=(0,Pa.createContext)(Zh);function $h(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Wh}}}function Gh(e,t){switch(t.type){case Ld.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ld.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ld.DragEnd:case Ld.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ld.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Wh(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Ld.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Wh(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Ld.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Wh(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Yh(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,Pa.useContext)(Kh),o=bd(r),a=bd(null==n?void 0:n.id);return(0,Pa.useEffect)(()=>{if(!t&&!r&&o&&null!=a){if(!kd(o))return;if(document.activeElement===o.target)return;const e=i.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Md(e);if(t){t.focus();break}}})}},[r,t,i,a,o]),null}const Xh=(0,Pa.createContext)({...Bd,scaleX:1,scaleY:1});var Jh;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Jh||(Jh={}));const Qh=(0,Pa.memo)(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:l=!0,children:s,sensors:c=Hh,collisionDetection:u=zd,measuring:d,modifiers:h,...f}=e;const p=(0,Pa.useReducer)(Gh,void 0,$h),[m,g]=p,[v,b]=function(){const[e]=(0,Pa.useState)(()=>new Set),t=(0,Pa.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),n=(0,Pa.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]);return[n,t]}(),[y,w]=(0,Pa.useState)(Jh.Uninitialized),E=y===Jh.Initialized,{draggable:{active:x,nodes:R,translate:k},droppable:{containers:S}}=m,O=null!=x?R.get(x):null,C=(0,Pa.useRef)({initial:null,translated:null}),M=(0,Pa.useMemo)(()=>{var e;return null!=x?{id:x,data:null!=(e=null==O?void 0:O.data)?e:zh,rect:C}:null},[x,O]),A=(0,Pa.useRef)(null),[T,P]=(0,Pa.useState)(null),[_,I]=(0,Pa.useState)(null),D=md(f,Object.values(f)),j=wd("DndDescribedBy",o),L=(0,Pa.useMemo)(()=>S.getEnabled(),[S]),N=function(e){return(0,Pa.useMemo)(()=>({draggable:{...Vh.draggable,...null==e?void 0:e.draggable},droppable:{...Vh.droppable,...null==e?void 0:e.droppable},dragOverlay:{...Vh.dragOverlay,...null==e?void 0:e.dragOverlay}}),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(d),{droppableRects:B,measureDroppableContainers:F,measuringScheduled:H}=function(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=(0,Pa.useState)(null),{frequency:l,measure:s,strategy:c}=i,u=(0,Pa.useRef)(e),d=function(){switch(c){case Ah.Always:return!1;case Ah.BeforeDragging:return n;default:return!n}}(),h=md(d),f=(0,Pa.useCallback)(function(e){void 0===e&&(e=[]),h.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),p=(0,Pa.useRef)(null),m=gd(t=>{if(d&&!n)return Ph;if(!t||t===Ph||u.current!==e||null!=o){const t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new sh(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,d,s]);return(0,Pa.useEffect)(()=>{u.current=e},[e]),(0,Pa.useEffect)(()=>{d||f()},[n,d]),(0,Pa.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,Pa.useEffect)(()=>{d||"number"!=typeof l||null!==p.current||(p.current=setTimeout(()=>{f(),p.current=null},l))},[l,d,f,...r]),{droppableRects:m,measureDroppableContainers:f,measuringScheduled:null!=o}}(L,{dragging:E,dependencies:[k.x,k.y],config:N.droppable}),z=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return gd(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(R,x),V=(0,Pa.useMemo)(()=>_?Sd(_):null,[_]),W=function(){const e=!1===(null==T?void 0:T.autoScrollEnabled),t="object"==typeof l?!1===l.enabled:!1===l,n=E&&!e&&!t;return"object"==typeof l?{...l,enabled:n}:{enabled:n}}(),Z=function(e,t){return _h(e,t)}(z,N.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=(0,Pa.useRef)(!1),{x:a,y:l}="boolean"==typeof i?{x:i,y:i}:i;fd(()=>{if(!a&&!l||!t)return void(o.current=!1);if(o.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=Vd(n(e),r);if(a||(i.x=0),l||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=Gd(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,l,r,n])}({activeNode:null!=x?R.get(x):null,config:W.layoutShiftCompensation,initialRect:Z,measure:N.draggable.measure});const q=jh(z,N.draggable.measure,Z),K=jh(z?z.parentElement:null),U=(0,Pa.useRef)({activatorEvent:null,active:null,activeNode:z,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:R,draggingNode:null,draggingNodeRect:null,droppableContainers:S,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$=S.getNodeFor(null==(t=U.current.over)?void 0:t.id),G=function(e){let{measure:t}=e;const[n,r]=(0,Pa.useState)(null),i=Ih({callback:(0,Pa.useCallback)(e=>{for(const{target:n}of e)if(ud(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),o=(0,Pa.useCallback)(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ud(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[a,l]=vd(o);return(0,Pa.useMemo)(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}({measure:N.dragOverlay.measure}),Y=null!=(n=G.nodeRef.current)?n:z,X=E?null!=(r=G.rect)?r:q:null,J=Boolean(G.nodeRef.current&&G.rect),Q=Vd(ee=J?null:q,_h(ee));var ee;const te=Bh(Y?sd(Y):null),ne=function(e){const t=(0,Pa.useRef)(e),n=gd(n=>e?n&&n!==Lh&&e&&t.current&&e.parentNode===t.current.parentNode?n:$d(e):Lh,[e]);return(0,Pa.useEffect)(()=>{t.current=e},[e]),n}(E?null!=$?$:z:null),re=function(e,t){void 0===t&&(t=Kd);const[n]=e,r=Bh(n?sd(n):null),[i,o]=(0,Pa.useState)(Fh);function a(){o(()=>e.length?e.map(e=>th(e)?r:new sh(t(e),e)):Fh)}const l=Ih({callback:a});return fd(()=>{null==l||l.disconnect(),a(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),i}(ne),ie=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(h,{transform:{x:k.x-Q.x,y:k.y-Q.y,scaleX:1,scaleY:1},activatorEvent:_,active:M,activeNodeRect:q,containerNodeRect:K,draggingNodeRect:X,over:U.current.over,overlayNodeRect:G.rect,scrollableAncestors:ne,scrollableAncestorRects:re,windowRect:te}),oe=V?xd(V,k):null,ae=function(e){const[t,n]=(0,Pa.useState)(null),r=(0,Pa.useRef)(e),i=(0,Pa.useCallback)(e=>{const t=Yd(e.target);t&&n(e=>e?(e.set(t,Qd(t)),new Map(e)):null)},[]);return(0,Pa.useEffect)(()=>{const t=r.current;if(e!==t){o(t);const a=e.map(e=>{const t=Yd(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Qd(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{const t=Yd(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,Pa.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>xd(e,t),Bd):ah(e):Bd,[e,t])}(ne),le=Nh(ae),se=Nh(ae,[q]),ce=xd(ie,le),ue=X?Zd(X,ie):null,de=M&&ue?u({active:M,collisionRect:ue,droppableRects:B,droppableContainers:L,pointerCoordinates:oe}):null,he=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(de),[fe,pe]=(0,Pa.useState)(null),me=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(J?ie:xd(ie,se),null!=(i=null==fe?void 0:fe.rect)?i:null,q),ge=(0,Pa.useRef)(null),ve=(0,Pa.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==A.current)return;const i=R.get(A.current);if(!i)return;const o=e.nativeEvent,a=new n({active:A.current,activeNode:i,event:o,options:r,context:U,onAbort(e){if(!R.get(e))return;const{onDragAbort:t}=D.current,n={id:e};null==t||t(n),v({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!R.get(e))return;const{onDragPending:i}=D.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),v({type:"onDragPending",event:o})},onStart(e){const t=A.current;if(null==t)return;const n=R.get(t);if(!n)return;const{onDragStart:r}=D.current,i={activatorEvent:o,active:{id:t,data:n.data,rect:C}};(0,ps.unstable_batchedUpdates)(()=>{null==r||r(i),w(Jh.Initializing),g({type:Ld.DragStart,initialCoordinates:e,active:t}),v({type:"onDragStart",event:i}),P(ge.current),I(o)})},onMove(e){g({type:Ld.DragMove,coordinates:e})},onEnd:l(Ld.DragEnd),onCancel:l(Ld.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=U.current;let a=null;if(t&&i){const{cancelDrop:l}=D.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===Ld.DragEnd&&"function"==typeof l&&await Promise.resolve(l(a))&&(e=Ld.DragCancel)}A.current=null,(0,ps.unstable_batchedUpdates)(()=>{g({type:e}),w(Jh.Uninitialized),pe(null),P(null),I(null),ge.current=null;const t=e===Ld.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=D.current[t];null==e||e(a),v({type:t,event:a})}})}}ge.current=a},[R]),be=(0,Pa.useCallback)((e,t)=>(n,r)=>{const i=n.nativeEvent,o=R.get(r);if(null!==A.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},A.current=r,ve(n,t))},[R,ve]),ye=function(e,t){return(0,Pa.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(c,be);!function(e){(0,Pa.useEffect)(()=>{if(!od)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),fd(()=>{q&&y===Jh.Initializing&&w(Jh.Initialized)},[q,y]),(0,Pa.useEffect)(()=>{const{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=U.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:ce.x,y:ce.y},over:i};(0,ps.unstable_batchedUpdates)(()=>{null==e||e(o),v({type:"onDragMove",event:o})})},[ce.x,ce.y]),(0,Pa.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=U.current;if(!e||null==A.current||!t||!i)return;const{onDragOver:o}=D.current,a=r.get(he),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,ps.unstable_batchedUpdates)(()=>{pe(l),null==o||o(s),v({type:"onDragOver",event:s})})},[he]),fd(()=>{U.current={activatorEvent:_,active:M,activeNode:z,collisionRect:ue,collisions:de,droppableRects:B,draggableNodes:R,draggingNode:Y,draggingNodeRect:X,droppableContainers:S,over:fe,scrollableAncestors:ne,scrollAdjustedTranslate:ce},C.current={initial:X,translated:ue}},[M,z,de,ue,R,Y,X,B,S,fe,ne,ce]),function(e){let{acceleration:t,activator:n=Oh.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:l=Ch.TreeOrder,pointerCoordinates:s,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:h}=e;const f=function(e){let{delta:t,disabled:n}=e;const r=bd(t);return gd(e=>{if(n||!r||!e)return Mh;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[eh.Backward]:e.x[eh.Backward]||-1===i,[eh.Forward]:e.x[eh.Forward]||1===i},y:{[eh.Backward]:e.y[eh.Backward]||-1===o,[eh.Forward]:e.y[eh.Forward]||1===o}}},[n,t,r])}({delta:d,disabled:!o}),[p,m]=function(){const e=(0,Pa.useRef)(null);return[(0,Pa.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,Pa.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,Pa.useRef)({x:0,y:0}),v=(0,Pa.useRef)({x:0,y:0}),b=(0,Pa.useMemo)(()=>{switch(n){case Oh.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Oh.DraggableRect:return i}},[n,i,s]),y=(0,Pa.useRef)(null),w=(0,Pa.useCallback)(()=>{const e=y.current;if(!e)return;const t=g.current.x*v.current.x,n=g.current.y*v.current.y;e.scrollBy(t,n)},[]),E=(0,Pa.useMemo)(()=>l===Ch.TreeOrder?[...c].reverse():c,[l,c]);(0,Pa.useEffect)(()=>{if(o&&c.length&&b){for(const e of E){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),i=u[n];if(!i)continue;const{direction:o,speed:l}=ih(e,i,b,t,h);for(const e of["x","y"])f[e][o[e]]||(l[e]=0,o[e]=0);if(l.x>0||l.y>0)return m(),y.current=e,p(w,a),g.current=l,void(v.current=o)}g.current={x:0,y:0},v.current={x:0,y:0},m()}else m()},[t,w,r,m,o,a,JSON.stringify(b),JSON.stringify(f),p,c,E,u,JSON.stringify(h)])}({...W,delta:k,draggingRect:ue,pointerCoordinates:oe,scrollableAncestors:ne,scrollableAncestorRects:re});const we=(0,Pa.useMemo)(()=>({active:M,activeNode:z,activeNodeRect:q,activatorEvent:_,collisions:de,containerNodeRect:K,dragOverlay:G,draggableNodes:R,droppableContainers:S,droppableRects:B,over:fe,measureDroppableContainers:F,scrollableAncestors:ne,scrollableAncestorRects:re,measuringConfiguration:N,measuringScheduled:H,windowRect:te}),[M,z,q,_,de,K,G,R,S,B,fe,F,ne,re,N,H,te]),Ee=(0,Pa.useMemo)(()=>({activatorEvent:_,activators:ye,active:M,activeNodeRect:q,ariaDescribedById:{draggable:j},dispatch:g,draggableNodes:R,over:fe,measureDroppableContainers:F}),[_,ye,M,q,g,j,R,fe,F]);return _a().createElement(_d.Provider,{value:b},_a().createElement(Kh.Provider,{value:Ee},_a().createElement(Uh.Provider,{value:we},_a().createElement(Xh.Provider,{value:me},s)),_a().createElement(Yh,{disabled:!1===(null==a?void 0:a.restoreFocus)})),_a().createElement(jd,{...a,hiddenTextDescribedById:j}))}),ef=(0,Pa.createContext)(null),tf="button";const nf={timeout:25};function rf(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function of(e,t){return e.reduce((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function af(e){return null!==e&&e>=0}const lf=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=rf(t,r,n),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},sf={scaleX:1,scaleY:1},cf=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const l=null!=(t=o[n])?t:r;if(!l)return null;if(i===n){const e=o[a];return e?{x:0,y:nn&&i<=a?{x:0,y:-l.height-s,...sf}:i=a?{x:0,y:l.height+s,...sf}:{x:0,y:0,...sf}},uf="Sortable",df=_a().createContext({activeIndex:-1,containerId:uf,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:lf,disabled:{draggable:!1,droppable:!1}});function hf(e){let{children:t,id:n,items:r,strategy:i=lf,disabled:o=!1}=e;const{active:a,dragOverlay:l,droppableRects:s,over:c,measureDroppableContainers:u}=(0,Pa.useContext)(Uh),d=wd(uf,n),h=Boolean(null!==l.rect),f=(0,Pa.useMemo)(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),p=null!=a,m=a?f.indexOf(a.id):-1,g=c?f.indexOf(c.id):-1,v=(0,Pa.useRef)(f),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{b&&p&&u(f)},[b,f,p,u]),(0,Pa.useEffect)(()=>{v.current=f},[f]);const E=(0,Pa.useMemo)(()=>({activeIndex:m,containerId:d,disabled:w,disableTransforms:y,items:f,overIndex:g,useDragOverlay:h,sortedRects:of(f,s),strategy:i}),[m,d,w.draggable,w.droppable,y,f,g,s,h,i]);return _a().createElement(df.Provider,{value:E},t)}const ff=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return rf(n,r,i).indexOf(t)},pf=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r||l!==o&&i===a||!n&&(a===i||t!==s))},mf={duration:200,easing:"ease"},gf="transform",vf=Od.Transition.toString({property:gf,duration:0,easing:"linear"}),bf={roleDescription:"sortable"};function yf(e){let{animateLayoutChanges:t=pf,attributes:n,disabled:r,data:i,getNewIndex:o=ff,id:a,strategy:l,resizeObserverConfig:s,transition:c=mf}=e;const{items:u,containerId:d,activeIndex:h,disabled:f,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:v,strategy:b}=(0,Pa.useContext)(df),y=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,f),w=u.indexOf(a),E=(0,Pa.useMemo)(()=>({sortable:{containerId:d,index:w,items:u},...i}),[d,i,w,u]),x=(0,Pa.useMemo)(()=>u.slice(u.indexOf(a)),[u,a]),{rect:R,node:k,isOver:S,setNodeRef:O}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=wd("Droppable"),{active:a,dispatch:l,over:s,measureDroppableContainers:c}=(0,Pa.useContext)(Kh),u=(0,Pa.useRef)({disabled:n}),d=(0,Pa.useRef)(!1),h=(0,Pa.useRef)(null),f=(0,Pa.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...nf,...i},v=md(null!=m?m:r),b=Ih({callback:(0,Pa.useCallback)(()=>{d.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(v.current)?v.current:[v.current]),f.current=null},g)):d.current=!0},[g]),disabled:p||!a}),y=(0,Pa.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))},[b]),[w,E]=vd(y),x=md(t);return(0,Pa.useEffect)(()=>{b&&w.current&&(b.disconnect(),d.current=!1,b.observe(w.current))},[w,b]),(0,Pa.useEffect)(()=>(l({type:Ld.RegisterDroppable,element:{id:r,key:o,disabled:n,node:w,rect:h,data:x}}),()=>l({type:Ld.UnregisterDroppable,key:o,id:r})),[r]),(0,Pa.useEffect)(()=>{n!==u.current.disabled&&(l({type:Ld.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,l]),{active:a,rect:h,isOver:(null==s?void 0:s.id)===r,node:w,over:s,setNodeRef:E}}({id:a,data:E,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...s}}),{active:C,activatorEvent:M,activeNodeRect:A,attributes:T,setNodeRef:P,listeners:_,isDragging:I,over:D,setActivatorNodeRef:j,transform:L}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=wd("Draggable"),{activators:a,activatorEvent:l,active:s,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:h}=(0,Pa.useContext)(Kh),{role:f=tf,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==s?void 0:s.id)===t,v=(0,Pa.useContext)(g?Xh:ef),[b,y]=vd(),[w,E]=vd(),x=function(e,t){return(0,Pa.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}(a,t),R=md(n);return fd(()=>(d.set(t,{id:t,key:o,node:b,activatorNode:w,data:R}),()=>{const e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:s,activatorEvent:l,activeNodeRect:c,attributes:(0,Pa.useMemo)(()=>({role:f,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!g||f!==tf)||void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,f,m,g,p,u.draggable]),isDragging:g,listeners:r?void 0:x,node:b,over:h,setNodeRef:y,setActivatorNodeRef:E,transform:v}}({id:a,data:E,attributes:{...bf,...n},disabled:y.draggable}),N=function(){for(var e=arguments.length,t=new Array(e),n=0;ne=>{t.forEach(t=>t(e))},t)}(O,P),B=Boolean(C),F=B&&!p&&af(h)&&af(g),H=!v&&I,z=H&&F?L:null,V=F?null!=z?z:(null!=l?l:b)({rects:m,activeNodeRect:A,activeIndex:h,overIndex:g,index:w}):null,W=af(h)&&af(g)?o({id:a,items:u,activeIndex:h,overIndex:g}):w,Z=null==C?void 0:C.id,q=(0,Pa.useRef)({activeId:Z,items:u,newIndex:W,containerId:d}),K=u!==q.current.items,U=t({active:C,containerId:d,isDragging:I,isSorting:B,id:a,index:w,items:u,newIndex:q.current.newIndex,previousItems:q.current.items,previousContainerId:q.current.containerId,transition:c,wasDragging:null!=q.current.activeId}),$=function(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=(0,Pa.useState)(null),l=(0,Pa.useRef)(n);return fd(()=>{if(!t&&n!==l.current&&r.current){const e=i.current;if(e){const t=Kd(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==l.current&&(l.current=n)},[t,n,r,i]),(0,Pa.useEffect)(()=>{o&&a(null)},[o]),o}({disabled:!U,index:w,node:k,rect:R});return(0,Pa.useEffect)(()=>{B&&q.current.newIndex!==W&&(q.current.newIndex=W),d!==q.current.containerId&&(q.current.containerId=d),u!==q.current.items&&(q.current.items=u)},[B,W,d,u]),(0,Pa.useEffect)(()=>{if(Z===q.current.activeId)return;if(null!=Z&&null==q.current.activeId)return void(q.current.activeId=Z);const e=setTimeout(()=>{q.current.activeId=Z},50);return()=>clearTimeout(e)},[Z]),{active:C,activeIndex:h,attributes:T,data:E,rect:R,index:w,newIndex:W,items:u,isOver:S,isSorting:B,isDragging:I,listeners:_,node:k,overIndex:g,over:D,setNodeRef:N,setActivatorNodeRef:j,setDroppableNodeRef:O,setDraggableNodeRef:P,transform:null!=$?$:V,transition:$||K&&q.current.newIndex===w?vf:H&&!kd(M)||!c?void 0:B||U?Od.Transition.toString({...c,property:gf}):void 0}}function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=Math.floor(1e7+9e7*Math.random());return"".concat(e).concat(t)}("sp-eab"),"popover");return(0,m.useEffect)(function(){var e=function(e){var t=e.target.closest(".sp-eab-popover__content-visible"),n=e.target.closest(".sp-eab-color-picker-renderer"),r=e.target.closest(".sp-eab-popover-toggle-button.".concat(f)),i=e.target.closest(".css-1nmdiq5-menu");!d||t||r||i||n||h(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}),React.createElement("div",{className:"sp-eab-popover-component sp-eab-component-mb".concat(c?" ".concat(c):"")},o&&React.createElement("div",{className:"sp-eab-popover-toggle-wrapper sp-d-flex sp-justify-between"},React.createElement("span",{className:"sp-eab-component-title"},o),React.createElement("button",{onClick:function(){return h(function(e){return!e})},className:"sp-eab-popover-toggle-button ".concat(f," sp-cursor-pointer").concat(d?" active":"")},l||React.createElement(aa,null))),d&&React.createElement(fr.Popover,{shift:!0},React.createElement("div",{className:"sp-eab-popover__content-visible sp-easy-accordion-tabs-panel"},React.createElement("div",{className:"sp-eab-popover__content-visible-content"},r))))};Rf.Header=function(e){var t=e.children;return React.createElement("div",{className:"sp-eab-popover__content-visible-label"},t)},Rf.Content=function(e){var t=e.children;return React.createElement("div",{className:"sp-eab-popover__content"},t)};const kf=Rf;function Sf(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Of(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:Sf(t[n])&&Sf(e[n])&&Object.keys(t[n]).length>0&&Of(e[n],t[n])})}const Cf={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Mf(){const e="undefined"!=typeof document?document:{};return Of(e,Cf),e}const Af={document:Cf,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Tf(){const e="undefined"!=typeof window?window:{};return Of(e,Af),e}function Pf(e,t=0){return setTimeout(e,t)}function _f(){return Date.now()}function If(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Df(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function jf(...e){const t=Object(e[0]);for(let n=1;n"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,i=e.length;ni?"next":"prev",c=(e,t)=>"next"===s&&e>=t||"prev"===s&&e<=t,u=()=>{o=(new Date).getTime(),null===a&&(a=o);const s=Math.max(Math.min((o-a)/l,1),0),d=.5-Math.cos(s*Math.PI)/2;let h=i+d*(t-i);if(c(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),c(h,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),void r.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Bf(e,t=""){const n=Tf(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function Ff(e){try{return void console.warn(e)}catch(e){}}function Hf(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function zf(e,t){return Tf().getComputedStyle(e,null).getPropertyValue(t)}function Vf(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Wf(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Zf(e,t,n){const r=Tf();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function qf(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Kf(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let Uf,$f,Gf;function Yf(){return Uf||(Uf=function(){const e=Tf(),t=Mf();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Uf}function Xf(e={}){return $f||($f=function({userAgent:e}={}){const t=Yf(),n=Tf(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,l=n.screen.height,s=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===r;let f="MacIntel"===r;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),s&&!h&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}(e)),$f}function Jf(){return Gf||(Gf=function(){const e=Tf(),t=Xf();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),Gf}var Qf={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,r,i;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};const ep=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},tp=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},np=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},rp=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},ip=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+r+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&rp(e,n)})}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(to)&&rp(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r=0?y=parseFloat(y.replace("%",""))/100*b:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y-p-m,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Lf(r,"--swiper-centered-offset-before",""),Lf(r,"--swiper-centered-offset-after","")),n.cssMode&&(Lf(r,"--swiper-slides-offset-before",`${p}px`),Lf(r,"--swiper-slides-offset-after",`${m}px`));const R=n.grid&&n.grid.rows>1&&e.grid;let k;R?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const S="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let r=0;r=0&&(t+=f[n]+(n1&&(r||d.push(e.virtualSize-b))}if(l&&n.loop){const t=f[0]+y;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach(t=>{e+=t+(y||0)}),e-=y;const t=e>b?e-b:0;d=d.map(e=>e<=0?-p:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(f.forEach(t=>{e+=t+(y||0)}),e-=y,e{d[n]=e-t}),h.forEach((e,n)=>{h[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Lf(r,"--swiper-centered-offset-before",-d[0]+"px"),Lf(r,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==s&&e.emit("slidesLengthChange"),d.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(i=0;it.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;io?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e=0&&h<=t.size-t.slidesSizesGrid[e],m=h>=0&&h1&&f<=t.size||h<=0&&f>=t.size;m&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(e)),ep(s,m,n.slideVisibleClass),ep(s,p,n.slideFullyVisibleClass),s.progress=i?-u:u,s.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:l}=t;const s=o,c=a;if(0===r)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,a=l||i>=1,n&&(i=0),l&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],a=t.slidesGrid[t.slidesGrid.length-1],s=Math.abs(e);l=s>=i?(s-i)/a:(s+a-o)/a,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!s&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(s&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,l=e=>Bf(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let s,c,u;if(o)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),s=l(`[data-swiper-slide-index="${t}"]`)}else s=l(`[data-swiper-slide-index="${i}"]`);else a?(s=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),c=t.find(e=>e.column===i-1)):s=t[i];s&&(a||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{tp(e,e===s,n.slideActiveClass),tp(e,e===u,n.slideNextClass),tp(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:l}=t;let s,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e=t[e]&&r=t[e]&&r=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)s=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,c);s=e+Math.floor((c-e)/i.slidesPerGroup)}if(s>=r.length&&(s=r.length-1),c===o&&!t.params.loop)return void(s!==l&&(t.snapIndex=s,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&i.grid&&i.grid.rows>1;let h;if(t.virtual&&i.virtual.enabled)h=i.loop?u(c):c;else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/i.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:l,snapIndex:s,previousRealIndex:a,realIndex:h,previousIndex:o,activeIndex:c}),t.initialized&&ip(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o,a=!1;if(i)for(let e=0;eo?"next":i=s.length&&(g=s.length-1);const v=-s[g];if(l.normalizeSlideIndex)for(let e=0;e=n&&t=n&&t=n&&(a=e)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(h?v>o.translate&&v>o.minTranslate():vo.translate&&v>o.maxTranslate()&&(d||0)!==a)return!1}let b;a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(v),b=a>d?"next":a0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[e?"scrollLeft":"scrollTop"]=n})):f[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Nf({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const w=Jf().isSafari;return y&&!i&&w&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,r){"string"==typeof e&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){const t=a*i.params.grid.rows;e=i.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(a);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:l,slidesOffsetAfter:s}=i.params,c=n||!!l||!!s;let u=i.params.slidesPerView;"auto"===u?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),c&&u%2==0&&(u+=1));let d=t-e1*t.getAttribute("data-swiper-slide-index")===e).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,t,n,r)}),i},slideNext:function(e,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let l=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const s=r.activeIndex{r.slideTo(r.activeIndex+s,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+s,e,t,n)},slidePrev:function(e,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:s,animating:c}=r;if(!s||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=d(l?r.translate:-r.translate),f=o.map(e=>d(e)),p=i.freeMode&&i.freeMode.enabled;let m=o[f.indexOf(h)-1];if(void 0===m&&(i.cssMode||p)){let e;o.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(m=p?o[e]:o[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=a.indexOf(m),g<0&&(g=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(g,e,t,n)}),!0):r.slideTo(g,e,t,n)},slideReset:function(e,t=!0,n){const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,r=.5){const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),l=a+Math.floor((o-a)/i.params.slidesPerGroup),s=i.rtlTranslate?i.translate:-i.translate;if(s>=i.snapGrid[l]){const e=i.snapGrid[l];s-e>(i.snapGrid[l+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];s-e<=(i.snapGrid[l]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.getSlideIndexWhenGrid(e.clickedIndex);const a=e.isElement?"swiper-slide":`.${t.slideClass}`,l=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):o>(l?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(Bf(n,`${a}[data-swiper-slide-index="${i}"]`)[0]),Pf(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},sp={loopCreate:function(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{Bf(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||a)&&(()=>{const e=Bf(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const l=r.slidesPerGroup*(a?r.grid.rows:1),s=n.slides.length%l!==0,c=a&&n.slides.length%r.grid.rows!==0,u=e=>{for(let t=0;t1;c.lengthe.classList.contains(f.slideActiveClass))):C=i;const M="next"===n||!n,A="prev"===n||!n;let T=0,P=0;const _=(x?c[i].column:i)+(b&&void 0===r?-y/2+.5:0);if(_=0;t-=1)c[t].column===e&&R.push(t)}else R.push(S-t-1)}}else if(_+y>S-E){P=Math.max(_-(S-2*E),w),O&&(P=Math.max(P,y-S+v+1));for(let e=0;e{e.column===t&&k.push(n)}):k.push(t)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),"cards"===s.params.effect&&c.length{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),M&&k.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1}),s.recalcSlides(),"auto"===f.slidesPerView?s.updateSlides():x&&(R.length>0&&A||k.length>0&&M)&&s.slides.forEach((e,t)=>{s.grid.updateSlide(t,e,s.slides)}),f.watchSlidesProgress&&s.updateSlidesOffset(),t)if(R.length>0&&A){if(void 0===e){const e=s.slidesGrid[C],t=s.slidesGrid[C+T]-e;l?s.setTranslate(s.translate-t):(s.slideTo(C+Math.ceil(T),0,!1,!0),r&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-t,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-t))}else if(r){const e=x?R.length/f.grid.rows:R.length;s.slideTo(s.activeIndex+e,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(k.length>0&&M)if(void 0===e){const e=s.slidesGrid[C],t=s.slidesGrid[C-P]-e;l?s.setTranslate(s.translate-t):(s.slideTo(C-P,0,!1,!0),r&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-t,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-t))}else{const e=x?k.length/f.grid.rows:k.length;s.slideTo(s.activeIndex-e,0,!1,!0)}if(s.allowSlidePrev=u,s.allowSlideNext=d,s.controller&&s.controller.control&&!a){const o={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...o,slideTo:e.params.slidesPerView===f.slidesPerView&&t})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...o,slideTo:s.controller.control.params.slidesPerView===f.slidesPerView&&t})}s.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function cp(e,t,n){const r=Tf(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a||n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function up(e){const t=this,n=Mf();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void cp(t,r,r.targetTouches[0].pageX);const{params:o,touches:a,enabled:l}=t;if(!l)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let s=r.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=Tf();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),r}(s,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(s=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(h?function(e,t=this){return function t(n){if(!n||n===Mf()||n===Tf())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,s):s.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!s.closest(o.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const f=a.currentX,p=a.currentY;if(!cp(t,r,f))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=f,a.startY=p,i.touchStartTime=_f(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;s.matches(i.focusableElements)&&(m=!1,"SELECT"===s.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==s&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!s.matches(i.focusableElements))&&n.activeElement.blur();const g=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!g||s.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function dp(e){const t=Mf(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:l}=n;if(!l)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let s,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(s=[...c.changedTouches].find(e=>e.identifier===r.touchId),!s||s.identifier!==r.touchId)return}else s=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=s.pageX,d=s.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=_f()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(do.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else{if(a&&(u>o.startX&&-n.translate<=n.maxTranslate()||u=n.minTranslate()))return;if(!a&&(uo.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const h=o.currentX-o.startX,f=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(h**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let p=n.isHorizontal()?h:f,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(p=Math.abs(p)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=p,p*=i.touchRatio,a&&(p=-p,m=-m);const g=n.touchesDirection;n.swipeDirection=p>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const v=n.params.loop&&!i.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(v&&b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==i._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&v&&b&&Math.abs(p)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=p+r.startTranslate;let y=!0,w=i.resistanceRatio;if(i.touchReleaseOnEdges&&(w=0),p>0?(v&&b&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+p)**w))):p<0&&(v&&b&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function hp(e){const t=this,n=t.touchEventsData;let r,i=e;if(i.originalEvent&&(i=i.originalEvent),"touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].find(e=>e.identifier===n.touchId),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:s,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=_f(),d=u-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=_f(),Pf(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let h;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=o.followFinger?l?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const f=h>=-t.maxTranslate()&&!t.params.loop;let p=0,m=t.slidesSizesGrid[0];for(let e=0;e=s[e]&&h=s[e])&&(p=e,m=s[s.length-1]-s[s.length-2])}let g=null,v=null;o.rewind&&(t.isBeginning?v=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(h-s[p])/m,y=po.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?g:p+y):t.slideTo(p)),"prev"===t.swipeDirection&&(b>1-o.longSwipesRatio?t.slideTo(p+y):null!==v&&b<0&&Math.abs(b)>o.longSwipesRatio?t.slideTo(v):t.slideTo(p))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:p+y),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:p)):i.target===t.navigation.nextEl?t.slideTo(p+y):t.slideTo(p)}}function fp(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=a&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=a?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function pp(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function mp(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function gp(e){const t=this;np(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function vp(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const bp=(e,t)=>{const n=Mf(),{params:r,el:i,wrapperEl:o,device:a}=e,l=!!r.nested,s="on"===t?"addEventListener":"removeEventListener",c=t;i&&"string"!=typeof i&&(n[s]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),i[s]("touchstart",e.onTouchStart,{passive:!1}),i[s]("pointerdown",e.onTouchStart,{passive:!1}),n[s]("touchmove",e.onTouchMove,{passive:!1,capture:l}),n[s]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[s]("touchend",e.onTouchEnd,{passive:!0}),n[s]("pointerup",e.onTouchEnd,{passive:!0}),n[s]("pointercancel",e.onTouchEnd,{passive:!0}),n[s]("touchcancel",e.onTouchEnd,{passive:!0}),n[s]("pointerout",e.onTouchEnd,{passive:!0}),n[s]("pointerleave",e.onTouchEnd,{passive:!0}),n[s]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[s]("click",e.onClick,!0),r.cssMode&&o[s]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",fp,!0):e[c]("observerUpdate",fp,!0),i[s]("load",e.onLoad,{capture:!0}))},yp=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Ep={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=Mf(),l="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,s=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:a.querySelector(r.breakpointsBase),c=e.getBreakpoint(o,l,s);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,d=yp(e,r),h=yp(e,u),f=e.params.grabCursor,p=u.grabCursor,m=r.enabled;d&&!h?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&h&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!p?e.unsetGrabCursor():!f&&p&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});const g=u.direction&&u.direction!==r.direction,v=r.loop&&(u.slidesPerView!==r.slidesPerView||g),b=r.loop;g&&n&&e.changeDirection(),jf(e.params,u);const y=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&w?(e.loopCreate(t),e.updateSlides()):b&&!w&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1;const i=Tf(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}},Rp={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function kp(e,t){return function(n={}){const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),jf(t,n)):jf(t,n)):jf(t,n)}}const Sp={eventsEmitter:Qf,update:op,translate:{getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=function(e,t="x"){const n=Tf();let r,i,o;const a=function(e){const t=Tf();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let l,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${s}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();l=0===u?0:(e-n.minTranslate())/u,l!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:a,wrapperEl:l}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&e>s?s:r&&e{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=up.bind(e),e.onTouchMove=dp.bind(e),e.onTouchEnd=hp.bind(e),e.onDocumentTouchStart=vp.bind(e),t.cssMode&&(e.onScroll=mp.bind(e)),e.onClick=pp.bind(e),e.onLoad=gp.bind(e),bp(e,"on")},detachEvents:function(){bp(this,"off")}},breakpoints:Ep,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:xp},Op={};class Cp{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=jf({},n),t&&!n.el&&(n.el=t);const r=Mf();if(n.el&&"string"==typeof n.el&&r.querySelectorAll(n.el).length>1){const e=[];return r.querySelectorAll(n.el).forEach(t=>{const r=jf({},n,{el:t});e.push(new Cp(r))}),e}const i=this;i.__swiper__=!0,i.support=Yf(),i.device=Xf({userAgent:n.userAgent}),i.browser=Jf(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&i.modules.indexOf(e)<0&&i.modules.push(e)});const o={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:kp(n,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const a=jf({},Rp,o);return i.params=jf({},a,Op,n),i.originalParams=jf({},i.params),i.passedParams=jf({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach(e=>{i.on(e,i.params.on[e])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=Vf(Bf(t,`.${n.slideClass}, swiper-slide`)[0]);return Vf(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Bf(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:l}=this;let s=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[l]?Math.ceil(r[l].swiperSlideSize):0;for(let n=l+1;na&&(e=!0));for(let n=l-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,s+=1,t>a&&(e=!0))}else if("current"===e)for(let e=l+1;e=0;e-=1)i[l]-i[e]{t.complete&&np(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):Bf(n,r())[0];return!i&&t.params.createElements&&(i=Hf("div",t.params.wrapperClass),n.append(i),Bf(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===zf(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===zf(n,"direction")),wrongRTL:"-webkit-box"===zf(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?np(t,e):e.addEventListener("load",e=>{np(t,e.target)})}),ip(t),t.initialized=!0,ip(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){jf(Op,e)}static get extendedDefaults(){return Op}static get defaults(){return Rp}static installModule(e){Cp.prototype.__modules__||(Cp.prototype.__modules__=[]);const t=Cp.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Cp.installModule(e)),Cp):(Cp.installModule(e),Cp)}}Object.keys(Sp).forEach(e=>{Object.keys(Sp[e]).forEach(t=>{Cp.prototype[t]=Sp[e][t]})}),Cp.use([function({swiper:e,on:t,emit:n}){const r=Tf();let i=null,o=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=r.requestAnimationFrame(()=>{const{width:n,height:r}=e;let i=n,o=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,o=n?n.height:(t[0]||t).blockSize)}),i===n&&o===r||a()})}),i.observe(e.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",l))}),t("destroy",()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",l)})},function({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Tf(),a=(t,n={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void r("observerUpdate",t[0]);const n=function(){r("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(n):o.setTimeout(n,0)});a.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),i.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=Wf(e.hostEl);for(let e=0;e{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const Mp=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ap(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function Tp(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:Ap(t[n])&&Ap(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:Tp(e[n],t[n]):e[n]=t[n]})}function Pp(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function _p(e={}){return e.pagination&&void 0===e.pagination.el}function Ip(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function Dp(e=""){const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(" ")}function jp(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{Np(e)?t.push(e):e.props&&e.props.children&&Bp(e.props.children).forEach(e=>t.push(e))}),t}function Fp(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return Pa.Children.toArray(e).forEach(e=>{if(Np(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){const r=Bp(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n["container-end"].push(e)}else n["container-end"].push(e)}),{slides:t,slots:n}}function Hp(e,t){return"undefined"==typeof window?(0,Pa.useEffect)(e,t):(0,Pa.useLayoutEffect)(e,t)}const zp=(0,Pa.createContext)(null),Vp=(0,Pa.createContext)(null),Wp=(0,Pa.forwardRef)(({className:e,tag:t="div",wrapperTag:n="div",children:r,onSwiper:i,...o}={},a)=>{let l=!1;const[s,c]=(0,Pa.useState)("swiper"),[u,d]=(0,Pa.useState)(null),[h,f]=(0,Pa.useState)(!1),p=(0,Pa.useRef)(!1),m=(0,Pa.useRef)(null),g=(0,Pa.useRef)(null),v=(0,Pa.useRef)(null),b=(0,Pa.useRef)(null),y=(0,Pa.useRef)(null),w=(0,Pa.useRef)(null),E=(0,Pa.useRef)(null),x=(0,Pa.useRef)(null),{params:R,passedParams:k,rest:S,events:O}=function(e={},t=!0){const n={on:{}},r={},i={};Tp(n,Rp),n._emitClasses=!0,n.init=!1;const o={},a=Mp.map(e=>e.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(l=>{void 0!==e[l]&&(a.indexOf(l)>=0?Ap(e[l])?(n[l]={},i[l]={},Tp(n[l],e[l]),Tp(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):0===l.search(/on[A-Z]/)&&"function"==typeof e[l]?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:i,rest:o,events:r}}(o),{slides:C,slots:M}=Fp(r),A=()=>{f(!h)};Object.assign(R.on,{_containerClasses(e,t){c(t)}});const T=()=>{Object.assign(R.on,O),l=!0;const e={...R};if(delete e.wrapperClass,g.current=new Cp(e),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=C;const e={cache:!1,slides:C,renderExternal:d,renderExternalUpdate:!1};Tp(g.current.params.virtual,e),Tp(g.current.originalParams.virtual,e)}};return m.current||T(),g.current&&g.current.on("_beforeBreakpoint",A),(0,Pa.useEffect)(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",A)}),(0,Pa.useEffect)(()=>{!p.current&&g.current&&(g.current.emitSlidesClasses(),p.current=!0)}),Hp(()=>{if(a&&(a.current=m.current),m.current)return g.current.destroyed&&T(),function({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){Pp(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),_p(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),Ip(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}({el:m.current,nextEl:y.current,prevEl:w.current,paginationEl:E.current,scrollbarEl:x.current,swiper:g.current},R),i&&!g.current.destroyed&&i(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Hp(()=>{!l&&O&&g.current&&Object.keys(O).forEach(e=>{g.current.on(e,O[e])});const e=function(e,t,n,r,i){const o=[];if(!t)return o;const a=e=>{o.indexOf(e)<0&&o.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return Mp.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t)if(Ap(e[n])&&Ap(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}))}else e[n]!==t[n]&&a(n)}),o}(k,v.current,C,b.current,e=>e.key);return v.current=k,b.current=C,e.length&&g.current&&!g.current.destroyed&&function({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:l}){const s=r.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:c,pagination:u,navigation:d,scrollbar:h,virtual:f,thumbs:p}=e;let m,g,v,b,y,w,E,x;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(g=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(v=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||!1===c.scrollbar)&&h&&!h.el&&(b=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(c.navigation||!1===c.navigation)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);const R=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),c[t].prevEl=void 0,c[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),c[t].el=void 0,e[t].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?w=!0:!c.loop&&n.loop?E=!0:x=!0),s.forEach(e=>{if(Ap(c[e])&&Ap(n[e]))Object.assign(c[e],n[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in n[e])||n[e].enabled||R(e);else{const t=n[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=n[e]:!1===t&&R(e)}}),s.includes("controller")&&!g&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&f&&c.virtual.enabled?(f.slides=t,f.update(!0)):r.includes("virtual")&&f&&c.virtual.enabled&&(t&&(f.slides=t),f.update(!0)),r.includes("children")&&t&&c.loop&&(x=!0),m&&p.init()&&p.update(!0),g&&(e.controller.control=c.controller.control),v&&(!e.isElement||l&&"string"!=typeof l||((l=document.createElement("div")).classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(c.pagination.el=l),u.init(),u.render(),u.update()),b&&(!e.isElement||a&&"string"!=typeof a||((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),y&&(e.isElement&&(i&&"string"!=typeof i||((i=document.createElement("div")).classList.add("swiper-button-next"),Kf(i,e.navigation.arrowSvg),i.part.add("button-next"),e.el.appendChild(i)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),Kf(o,e.navigation.arrowSvg),o.part.add("button-prev"),e.el.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||x)&&e.loopDestroy(),(E||x)&&e.loopCreate(),e.update()}({swiper:g.current,slides:C,passedParams:k,changedParams:e,nextEl:y.current,prevEl:w.current,scrollbarEl:x.current,paginationEl:E.current}),()=>{O&&g.current&&Object.keys(O).forEach(e=>{g.current.off(e,O[e])})}}),Hp(()=>{var e;!(e=g.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[u]),Pa.createElement(t,Lp({ref:m,className:Dp(`${s}${e?` ${e}`:""}`)},S),Pa.createElement(Vp.Provider,{value:g.current},M["container-start"],Pa.createElement(n,{className:jp(R.wrapperClass)},M["wrapper-start"],R.virtual?function(e,t,n){if(!n)return null;const r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,l=e.params.loop?-t.length:0,s=e.params.loop?2*t.length:t.length,c=[];for(let e=l;e=o&&e<=a&&c.push(t[r(e)]);return c.map((t,n)=>Pa.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${n}`}))}(g.current,C,u):C.map((e,t)=>Pa.cloneElement(e,{swiper:g.current,swiperSlideIndex:t})),M["wrapper-end"]),Pp(R)&&Pa.createElement(Pa.Fragment,null,Pa.createElement("div",{ref:w,className:"swiper-button-prev"}),Pa.createElement("div",{ref:y,className:"swiper-button-next"})),Ip(R)&&Pa.createElement("div",{ref:x,className:"swiper-scrollbar"}),_p(R)&&Pa.createElement("div",{ref:E,className:"swiper-pagination"}),M["container-end"]))});Wp.displayName="Swiper";const Zp=(0,Pa.forwardRef)(({tag:e="div",children:t,className:n="",swiper:r,zoom:i,lazy:o,virtualIndex:a,swiperSlideIndex:l,...s}={},c)=>{const u=(0,Pa.useRef)(null),[d,h]=(0,Pa.useState)("swiper-slide"),[f,p]=(0,Pa.useState)(!1);function m(e,t,n){t===u.current&&h(n)}Hp(()=>{if(void 0!==l&&(u.current.swiperSlideIndex=l),c&&(c.current=u.current),u.current&&r){if(!r.destroyed)return r.on("_slideClass",m),()=>{r&&r.off("_slideClass",m)};"swiper-slide"!==d&&h("swiper-slide")}}),Hp(()=>{r&&u.current&&!r.destroyed&&h(r.getSlideClasses(u.current))},[r]);const g={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},v=()=>"function"==typeof t?t(g):t;return Pa.createElement(e,Lp({ref:u,className:Dp(`${d}${n?` ${n}`:""}`),"data-swiper-slide-index":a,onLoad:()=>{p(!0)}},s),i&&Pa.createElement(zp.Provider,{value:g},Pa.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof i?i:void 0},v(),o&&!f&&Pa.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!i&&Pa.createElement(zp.Provider,{value:g},v(),o&&!f&&Pa.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});function qp(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&!0===n.auto){let o=Bf(e.el,`.${r[i]}`)[0];o||(o=Hf("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}Zp.displayName="SwiperSlide";const Kp='';function Up({swiper:e,extendParams:t,on:n,emit:r}){function i(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const r=e.params.navigation;(t=qf(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function s(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=qp(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=qf(n),r=qf(r);const o=(n,r)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");Kf(e,Kp),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===r?s:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>o(e,"next")),r.forEach(e=>o(e,"prev"))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=qf(t),n=qf(n);const r=(t,n)=>{t.removeEventListener("click","next"===n?s:l),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>r(e,"next")),n.forEach(e=>r(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Kp},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=qf(t),n=qf(n),e.enabled?a():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:i,prevEl:o}=e.navigation;i=qf(i),o=qf(o);const a=n.target;let l=o.includes(a)||i.includes(a);if(e.isElement&&!l){const e=n.path||n.composedPath&&n.composedPath();e&&(l=e.find(e=>i.includes(e)||o.includes(e)))}if(e.params.navigation.hideOnClick&&!l){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):o.length&&(t=o[0].classList.contains(e.params.navigation.hiddenClass)),r(!0===t?"navigationShow":"navigationHide"),[...i,...o].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:d,update:a,init:c,destroy:u})}function $p(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Gp({swiper:e,extendParams:t,on:n,emit:r}){const i="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function s(t,n){const{bulletActiveClass:r}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${r}-${n}`),(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&t.classList.add(`${r}-${n}-${n}`))}function c(t){const n=t.target.closest($p(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();const r=Vf(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===r)return;const t=(i=e.realIndex,o=r,(o%=a=e.slides.length)===1+(i%=a)?"next":o===i-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r);var i,o,a}function u(){const t=e.rtl,n=e.params.pagination;if(l())return;let i,c,u=e.pagination.el;u=qf(u);const d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,h=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,i=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(i=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,i=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const r=e.pagination.bullets;let l,d,h;if(n.dynamicBullets&&(o=Zf(r[0],e.isHorizontal()?"width":"height",!0),u.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=o*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==c&&(a+=i-(c||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),l=Math.max(i-a,0),d=l+(Math.min(r.length,n.dynamicMainBullets)-1),h=(d+l)/2),r.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),u.length>1)r.forEach(t=>{const r=Vf(t);r===i?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(r>=l&&r<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),r===l&&s(t,"prev"),r===d&&s(t,"next"))});else{const t=r[i];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&r.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),n.dynamicBullets){const e=r[l],t=r[d];for(let e=l;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));s(e,"prev"),s(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),a=(o*i-o)/2-h*o,l=t?"right":"left";r.forEach(t=>{t.style[e.isHorizontal()?l:"top"]=`${a}px`})}}u.forEach((t,o)=>{if("fraction"===n.type&&(t.querySelectorAll($p(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(i+1)}),t.querySelectorAll($p(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(h)})),"progressbar"===n.type){let r;r=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const o=(i+1)/h;let a=1,l=1;"horizontal"===r?a=o:l=o,t.querySelectorAll($p(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${l})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(Kf(t,n.renderCustom(e,i+1,h)),0===o&&r("paginationRender",t)):(0===o&&r("paginationRender",t),r("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function d(){const t=e.params.pagination;if(l())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let i=e.pagination.el;i=qf(i);let o="";if("bullets"===t.type){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):` / `),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):``),e.pagination.bullets=[],i.forEach(n=>{"custom"!==t.type&&Kf(n,o||""),"bullets"===t.type&&e.pagination.bullets.push(...n.querySelectorAll($p(t.bulletClass)))}),"custom"!==t.type&&r("paginationRender",i[0])}function h(){e.params.pagination=qp(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>Wf(t,".swiper")[0]===e.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=qf(n),n.forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",c),e.enabled||n.classList.add(t.lockClass)}))}function f(){const t=e.params.pagination;if(l())return;let n=e.pagination.el;n&&(n=qf(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:n}=e.pagination;n=qf(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.pagination.enabled?p():(h(),d(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{d(),u()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{el:t}=e.pagination;t&&(t=qf(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const i=n.target,o=qf(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=o[0].classList.contains(e.params.pagination.hiddenClass);r(!0===t?"paginationShow":"paginationHide"),o.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const p=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=qf(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),f()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=qf(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),h(),d(),u()},disable:p,render:d,update:u,init:h,destroy:f})}function Yp(e){return Yp="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},Yp(e)}function Xp(e){return Xp="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},Xp(e)}(0,m.memo)(function(e){var t=e.items,n=e.label,r=void 0===n?"":n,i=e.attributes,o=e.setAttributes,a=e.attributesKey,l=null==t?void 0:t.findIndex(function(e){return(null==e?void 0:e.value)===i});return React.createElement("div",{className:"sp-eab-layout-preset-slider-component sp-eab-component-mb"},React.createElement("div",{className:"sp-eab-component-title-wrapper sp-mb-8px"},React.createElement("span",{className:"sp-eab-component-title"},r)),React.createElement(Wp,{pagination:{clickable:!0},navigation:!0,modules:[Gp,Up],className:"mySwiper sp-eab-layout-picker-swiper",initialSlide:l,onSlideChange:function(e){return n=e.activeIndex,"vertical-six"===(i=null===(r=t[n])||void 0===r?void 0:r.value)&&o({toggleIconPosition:"start"}),void o(function(e,t,n){return(t=function(e){var t=function(e){if("object"!=Yp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a,i));var n,r,i},key:l},null==t?void 0:t.map(function(e,t){var n=e.Icon;return React.createElement(Zp,{key:t},React.createElement("div",{className:"sp-eab-preset-image sp-d-flex sp-justify-center"},React.createElement(n,null)))})))});const Jp=function(e){var t=e.attributes,n=e.attributesKey,r=e.setAttributes,i=e.label,o=e.items,a=e.onClick,l=void 0!==a&&a,s=function(e){l?l(e):r(function(e,t,n){return(t=function(e){var t=function(e){if("object"!=Xp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e))};return React.createElement("div",{className:"sp-eab-background sp-eab-component-mb"},React.createElement("div",{className:"sp-eab-background-control sp-d-flex sp-justify-between sp-align-center"},React.createElement("span",{className:"sp-eab-component-title"},i),React.createElement("div",{className:"sp-eab-background-left sp-d-flex sp-align-center sp-gap-4px"},null==o?void 0:o.map(function(e){return React.createElement("button",{key:e.value,type:"button",className:"sp-bg-indicator ".concat(t===e.value?"active":""),onClick:function(){return s(e.value)}},e.label)}))))};function Qp(e){return Qp="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},Qp(e)}function em(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 tm(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&React.createElement(Hi,{label:!1,attributes:d,items:f,onClick:function(e){return h(e)}}),React.createElement(ro,{label:(0,Bt.__)("Border Color","easy-accordion-free"),value:s[d],onChange:function(e){r(nm({},n.border,tm(tm({},null==t?void 0:t.border),{},nm({},d,e))))}})))},lm=(0,m.memo)(function(e){var t,n,r=e.videoType,i=e.bgVideo,o=e.youtubeVideo,a="";return"youtube"===r&&(a=(n=null==(t=o)?void 0:t.match(/(?:youtube\.com\/(?:.*[?&]v=|v\/|embed\/)|youtu\.be\/)([^"&?\/ ]{11})/))?n[1]:null),React.createElement("div",{className:"sp-eab-video-player sp-w-full"},"html5"===r&&React.createElement("video",{autoPlay:!0,muted:!0,loop:!0,key:null==i?void 0:i.url},React.createElement("source",{src:null==i?void 0:i.url,type:"video/mp4"})),"youtube"===r&&React.createElement("iframe",{key:a,width:"100%",height:"500px",src:"https://www.youtube.com/embed/".concat(a,"?autoplay=1&mute=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))}),sm=function(e){var t=e.divider,n=void 0===t?"vertical":t;return React.createElement("div",{className:"sp-eab-component-separator mb ".concat(n)})};var cm=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},React.createElement("path",{className:"sp-pro-icon-stroke",stroke:"#3D9E56",strokeWidth:1.185,d:"M10.384 5.882c.18.329.478.572.842.648.322.068.652-.007.922-.203l.112-.092 1.396-1.279 1.159-1.062-.81 6.437H2.124l-.812-6.437 2.556 2.341c.288.264.666.373 1.035.295.364-.076.662-.32.841-.648l2.32-4.254 2.32 4.254Z"}),React.createElement("path",{className:"sp-pro-icon-fill",fill:"#3D9E56",d:"M13.851 14.873H2.274c-.373 0-.674-.369-.674-.824V12.24h12.925v1.81c0 .454-.301.823-.674.823Z"}))};const um=function(e){var t=e.title,n=void 0===t?(0,Bt.__)("Pro Features","easy-accordion-free"):t,r=e.message,i=void 0===r?"":r,o=e.link,a=void 0===o?"https://easyaccordion.io/pricing/":o,l=e.linkText,s=void 0===l?"Upgrade to Pro!":l,c=e.className,u=void 0===c?"":c,d=e.features,h=void 0===d?[]:d,f=e.subtitle,p=void 0===f?"":f,m=e.icon,g=void 0===m||m,v=e.panelNotice,b=void 0!==v&&v,y=e.linkButton,w=void 0!==y&&y;return React.createElement("div",{className:"sp-block-pro-notice ".concat(u)},h.length>0?React.createElement(React.Fragment,null,React.createElement("div",{className:"sp-pro-notice-header sp-d-flex"},g&&React.createElement("div",{className:"sp-pro-notice-icon"},React.createElement(cm,null)),React.createElement("h4",{className:"sp-pro-notice-title"},n)),React.createElement("div",{className:"sp-pro-notice-subtitle"},p),React.createElement("ul",{className:"sp-pro-notice-list"},h.map(function(e,t){return React.createElement("li",{key:t},e)})),w&&React.createElement("div",{className:"sp-pro-button-wrapper sp-d-flex sp-justify-center"},React.createElement("a",{href:a,className:"sp-pro-notice-button normal sp-d-i-flex sp-align-center sp-justify-center",target:"_blank",rel:"noopener noreferrer"},(0,Bt.__)(s,"easy-accordion-free")))):b?React.createElement(React.Fragment,null,React.createElement("div",{className:"sp-pro-notice-header sp-d-flex sp-flex-col sp-justify-center sp-align-center"},g&&React.createElement("div",{className:"sp-pro-notice-icon"},React.createElement(cm,null)),React.createElement("h4",{className:"sp-pro-notice-title"},n)),React.createElement("div",{className:"sp-pro-notice-message"},i),React.createElement("div",{className:"sp-pro-button-wrapper sp-d-flex sp-justify-center"},React.createElement("a",{href:a,className:"sp-pro-notice-button sp-d-i-flex sp-align-center sp-justify-center",target:"_blank",rel:"noopener noreferrer"},(0,Bt.__)(s,"easy-accordion-free")))):React.createElement(React.Fragment,null,i," ",React.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer"},(0,Bt.__)(s,"easy-accordion-free"))))},dm=function(e){var t=e.label,n=void 0===t?(0,Bt.__)("Select Preset","easy-accordion-free"):t,r=e.items,i=void 0===r?[]:r,o=e.activeItem,a=void 0===o?null:o,l=e.onSelect,s=void 0===l?function(){}:l,c=e.type,u=void 0===c?"icon":c,d=e.customClass,h=void 0===d?"":d;return React.createElement("div",{className:"sp-eab-toggle-icon-picker sp-eab-component-mb"},React.createElement("span",{className:"sp-eab-component-title sp-mb-8px"},n),React.createElement("div",{className:"sp-eab-toggle-icon-sets sp-d-grid sp-grid-cols-4 sp-gap-10px ".concat(h)},null==i?void 0:i.map(function(e,t){var n="icon"===u?e.expand===(null==a?void 0:a.expand):e===a;return React.createElement("div",{key:e.set||t,className:"sp-eab-icon-set sp-cursor-pointer sp-d-flex sp-align-center sp-justify-center".concat(n?" active":"").concat(null!=e&&e.pro?" sp-eab-pro-preset":""),onClick:function(){return s(e)}},"icon"===u&&React.createElement(React.Fragment,null,e.expand&&React.createElement("span",{className:e.expand}),e.collapse&&React.createElement("span",{className:e.collapse})),"single-icon"===u&&React.createElement("span",{className:e}),"image"===u&&React.createElement("img",{src:e.src,alt:e.alt||"preset",className:"sp-eab-preset-img"}))})))};let hm=[],fm=[];function pm(e){if(e<768)return!1;for(let t=0,n=hm.length;;){let r=t+n>>1;if(e=fm[r]))return!0;t=r+1}if(t==n)return!1}}function mm(e){return e>=127462&&e<=127487}function gm(e,t,n=!0,r=!0){return(n?vm:bm)(e,t,r)}function vm(e,t,n){if(t==e.length)return t;t&&wm(e.charCodeAt(t))&&Em(e.charCodeAt(t-1))&&t--;let r=ym(e,t);for(t+=xm(r);t=0&&mm(ym(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function bm(e,t,n){for(;t>1;){let r=vm(e,t-2,n);if(r=56320&&e<57344}function Em(e){return e>=55296&&e<56320}function xm(e){return e<65536?1:2}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;tthis.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=_m(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),Sm.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=_m(this,e,t);let n=[];return this.decompose(e,t,n,0),Sm.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Mm(this),i=new Mm(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new Mm(this,e)}iterRange(e,t=this.length){return new Am(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Tm(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new km(e):Sm.from(km.split(e,[])):Rm.empty}}class km extends Rm{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new Pm(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new km(Cm(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=Om(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new km(t,e.length+i.length));else{let e=t.length>>1;n.push(new km(t.slice(0,e)),new km(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof km))return super.replace(e,t,n);[e,t]=_m(this,e,t);let r=Om(this.text,Om(n.text,Cm(this.text,0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new km(r,i):Sm.from(km.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){[e,t]=_m(this,e,t);let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=l+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new km(n,r)),n=[],r=-1);return r>-1&&t.push(new km(n,r)),t}}class Sm extends Rm{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,l=n+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=l+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=l+1}}replace(e,t,n){if([e,t]=_m(this,e,t),n.lines=i&&t<=a){let l=o.replace(e-i,t-i,n),s=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>s>>6){let i=this.children.slice();return i[r]=l,new Sm(i,this.length-(t-e)+n.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=_m(this,e,t);let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=l+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Sm))return 0;let n=0,[r,i,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==a)return n;let l=this.children[r],s=e.children[i];if(l!=s)return n+l.scanIdentical(s,t);n+=l.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new km(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,a=[],l=0,s=-1,c=[];function u(e){let t;if(e.lines>i&&e instanceof Sm)for(let t of e.children)u(t);else e.lines>o&&(l>o||!l)?(d(),a.push(e)):e instanceof km&&l&&(t=c[c.length-1])instanceof km&&e.lines+t.lines<=32?(l+=e.lines,s+=e.length+1,c[c.length-1]=new km(t.text.concat(e.text),t.length+1+e.length)):(l+e.lines>r&&d(),l+=e.lines,s+=e.length+1,c.push(e))}function d(){0!=l&&(a.push(1==c.length?c[0]:Sm.from(c,s)),s=-1,l=c.length=0)}for(let t of e)u(t);return d(),1==a.length?a[0]:new Sm(a,t)}}function Om(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(s>r&&(l=l.slice(0,r-i)),i0?1:(e instanceof km?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof km?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof km){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof km?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Am{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Mm(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class Tm{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(Rm.prototype[Symbol.iterator]=function(){return this.iter()},Mm.prototype[Symbol.iterator]=Am.prototype[Symbol.iterator]=Tm.prototype[Symbol.iterator]=function(){return this});class Pm{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function _m(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function Im(e,t,n=!0,r=!0){return gm(e,t,n,r)}function Dm(e,t){let n=e.charCodeAt(t);if(!((r=n)>=55296&&r<56320&&t+1!=e.length))return n;var r;let i=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(i)?i-56320+(n-55296<<10)+65536:n}function jm(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Lm(e){return e<65536?1:2}const Nm=/\r\n?|\n/;var Bm=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Bm||(Bm={}));class Fm{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=a}else{if(n!=Bm.Simple&&s>=e&&(n==Bm.TrackDel&&re||n==Bm.TrackBefore&&re))return null;if(s>e||s==e&&t<0&&!a)return e==r||t<0?i:i+l;i+=l}r=s}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Fm(e)}static create(e){return new Fm(e)}}class Hm extends Fm{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Wm(this,(t,n,r,i,o)=>e=e.replace(r,r+(n-t),o),!1),e}mapDesc(e,t=!1){return Zm(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r=0){t[r]=a,t[r+1]=o;let l=r>>1;for(;n.length0&&Vm(n,t,i.text),i.forward(e),a+=e}let s=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,a=null;function l(e=!1){if(!e&&!r.length)return;oa||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?Rm.of(c.split(n||Nm)):c:Rm.empty,d=u.length;if(e==a&&0==d)return;eo&&zm(r,e-o,-1),zm(r,a-e,d),Vm(i,r,u),o=a}}(e),l(!a),a}static empty(e){return new Hm(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Vm(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],s=e.sections[a++];t(i,c,o,u,d),i=c,o=u}}}function Zm(e,t,n,r=!1){let i=[],o=r?[]:null,a=new Km(e),l=new Km(t);for(let e=-1;;){if(a.done&&l.len||l.done&&a.len)throw new Error("Mismatched change set lengths");if(-1==a.ins&&-1==l.ins){let e=Math.min(a.len,l.len);zm(i,e,-1),a.forward(e),l.forward(e)}else if(l.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(l.len=0&&e=0)){if(a.done&&l.done)return o?Hm.createSet(i,o):Fm.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=a.len;for(;n;)if(-1==l.ins){let e=Math.min(n,l.len);t+=e,n-=e,l.forward(e)}else{if(!(0==l.ins&&l.lent||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}}else zm(r,0,a.ins,e),i&&Vm(i,r,a.text),a.next()}}class Km{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Rm.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Rm.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Um{constructor(e,t,n,r){this.from=e,this.to=t,this.flags=n,this.goalColumn=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get undirectional(){return(64&this.flags)>0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new Um(n,r,this.flags,this.goalColumn)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return $m.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return $m.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||this.goalColumn!=e.goalColumn||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return $m.range(e.anchor,e.head)}static create(e,t,n,r){return new Um(e,t,n,r)}}class $m{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:$m.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;ne.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new $m(e.ranges.map(e=>Um.fromJSON(e)),e.main)}static single(e,t=e){return new $m([$m.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re.from-t.from),t=e.indexOf(n);for(let n=1;nr.head?$m.range(a,o):$m.range(o,a))}}return new $m(e,t)}}function Gm(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let Ym=0;class Xm{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=Ym++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new Xm(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:Jm),!!e.static,e.enables)}of(e){return new Qm([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Qm(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Qm(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function Jm(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class Qm{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=Ym++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,l=!1,s=!1,c=[];for(let n of this.dependencies)"doc"==n?l=!0:"selection"==n?s=!0:1&(null!==(t=e[n.id])&&void 0!==t?t:1)||c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(l&&t.docChanged||s&&(t.docChanged||t.selection)||tg(e,c)){let t=n(e);if(a?!eg(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let l,s=t.config.address[i];if(null!=s){let i=hg(t,s);if(this.dependencies.every(n=>n instanceof Xm?t.facet(n)===e.facet(n):!(n instanceof ig)||t.field(n,!1)==e.field(n,!1))||(a?eg(l=n(e),i,r):r(l=n(e),i)))return e.values[o]=i,0}else l=n(e);return e.values[o]=l,1}}}get extension(){return this}}function eg(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id]),i=n.map(e=>e.type),o=r.filter(e=>!(1&e)),a=e[t.id]>>1;function l(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(rg).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r,i=e.facet(rg),o=n.facet(rg);return(r=i.find(e=>e.field==this))&&r!=o.find(e=>e.field==this)?(e.values[t]=r.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,rg.of({field:this,create:e})]}get extension(){return this}}function og(e){return t=>new lg(t,e)}const ag={highest:og(0),high:og(1),default:og(2),low:og(3),lowest:og(4)};class lg{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}}class sg{of(e){return new cg(this,e)}reconfigure(e){return sg.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class cg{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}}class ug{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;return function e(o,a){let l=i.get(o);if(null!=l){if(l<=a)return;let e=r[l].indexOf(o);e>-1&&r[l].splice(e,1),o instanceof cg&&n.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let t of o)e(t,a);else if(o instanceof cg){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(o.compartment)||o.inner;n.set(o.compartment,r),e(r,a)}else if(o instanceof lg)e(o.inner,o.prec);else if(o instanceof ig)r[a].push(o),o.provides&&e(o.provides,a);else if(o instanceof Qm)r[a].push(o),o.facet.extensions&&e(o.facet.extensions,2);else{let t=o.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(t==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,a)}}(e,2),r.reduce((e,t)=>e.concat(t))}(e,t,o))n instanceof ig?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let a=Object.create(null),l=[],s=[];for(let e of r)a[e.id]=s.length<<1,s.push(t=>e.slot(t));let c=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=c&&c[e]||[];if(t.every(e=>0==e.type))if(a[r.id]=l.length<<1|1,Jm(o,t))l.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));l.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(a[e.id]=l.length<<1|1,l.push(e.value)):(a[e.id]=s.length<<1,s.push(t=>e.dynamicSlot(t)));a[r.id]=s.length<<1,s.push(e=>ng(e,r,t))}}let u=s.map(e=>e(a));return new ug(e,o,u,a,l,i)}}function dg(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function hg(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const fg=Xm.define(),pg=Xm.define({combine:e=>e.some(e=>e),static:!0}),mg=Xm.define({combine:e=>e.length?e[0]:void 0,static:!0}),gg=Xm.define(),vg=Xm.define(),bg=Xm.define(),yg=Xm.define({combine:e=>!!e.length&&e[0]});class wg{constructor(e,t){this.type=e,this.value=t}static define(){return new Eg}}class Eg{of(e){return new wg(this,e)}}class xg{constructor(e){this.map=e}of(e){return new Rg(this,e)}}class Rg{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Rg(this.type,t)}is(e){return this.type==e}static define(e={}){return new xg(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}Rg.reconfigure=Rg.define(),Rg.appendConfig=Rg.define();class kg{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&Gm(n,t.newLength),i.some(e=>e.type==kg.time)||(this.annotations=i.concat(kg.time.of(Date.now())))}static create(e,t,n,r,i,o){return new kg(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(kg.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Sg(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=Og(r,Cg(t,o,e.changes.newLength),!0))}return r==e?e:kg.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(gg)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:Sg(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=Hm.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=kg.create(t,r,e.selection&&e.selection.map(i),Rg.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(vg);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof kg?i:Array.isArray(i)&&1==i.length&&i[0]instanceof kg?i[0]:Mg(t,Tg(i),!1)}return e}(i):i)}kg.time=wg.define(),kg.userEvent=wg.define(),kg.addToHistory=wg.define(),kg.remote=wg.define();const Ag=[];function Tg(e){return null==e?Ag:Array.isArray(e)?e:[e]}var Pg=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Pg||(Pg={}));const _g=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ig;try{Ig=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class Dg{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;ei.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(Rg.reconfigure)?(n=null,r=t.value):t.is(Rg.appendConfig)&&(n=null,r=Tg(r).concat(t.value));n?t=e.startState.values.slice():(n=ug.resolve(r,i,this),t=new Dg(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let o=e.startState.facet(pg)?e.newSelection:e.newSelection.asSingle();new Dg(n,e.newDoc,o,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:$m.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=Tg(n.effects);for(let n=1;ni.spec.fromJSON(o,e)))}return Dg.create({doc:e.doc,selection:$m.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=ug.resolve(e.extensions||[],new Map),n=e.doc instanceof Rm?e.doc:Rm.of((e.doc||"").split(t.staticFacet(Dg.lineSeparator)||Nm)),r=e.selection?e.selection instanceof $m?e.selection:$m.single(e.selection.anchor,e.selection.head):$m.single(0);return Gm(r,n.length),t.staticFacet(pg)||(r=r.asSingle()),new Dg(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(Dg.tabSize)}get lineBreak(){return this.facet(Dg.lineSeparator)||"\n"}get readOnly(){return this.facet(yg)}phrase(e,...t){for(let t of this.facet(Dg.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(fg))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return n=t.length?t[0]:"",e=>{if(!/\S/.test(e))return Pg.Space;if(function(e){if(Ig)return Ig.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||_g.test(n)))return!0}return!1}(e))return Pg.Word;for(let t=0;t-1)return Pg.Word;return Pg.Other};var n}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=Im(t,o,!1);if(i(t.slice(e,o))!=Pg.Word)break;o=e}for(;ae.length?e[0]:4}),Dg.lineSeparator=mg,Dg.readOnly=yg,Dg.phrases=Xm.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),Dg.languageData=fg,Dg.changeFilter=gg,Dg.transactionFilter=vg,Dg.transactionExtender=bg,sg.reconfigure=Rg.define();class Lg{eq(e){return this==e}range(e,t=e){return Bg.create(e,t,this)}}function Ng(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}Lg.prototype.startSide=Lg.prototype.endSide=0,Lg.prototype.point=!1,Lg.prototype.mapMode=Bm.TrackDel;class Bg{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Bg(e,t,n)}}function Fg(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Hg{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,l=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return l>=0?o:a;l>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);ic||s==c&&u.startSide>0&&u.endSide<=0)continue;(c-s||u.endSide-u.startSide)<0||(o<0&&(o=s),u.point&&(a=Math.max(a,c-s)),n.push(u),r.push(s-o),i.push(c-o))}return{mapped:n.length?new Hg(r,i,n,a):null,pos:o}}}class zg{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new zg(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Fg)),this.isEmpty)return t.length?zg.of(t):this;let a=new Zg(this,null,-1).goto(0),l=0,s=[],c=new Vg;for(;a.value||l=0){let e=t[l++];c.addInner(e.from,e.to,e.value)||s.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return qg.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return qg.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),l=Wg(o,a,n),s=new Ug(o,l,i),c=new Ug(a,l,i);n.iterGaps((e,t,n)=>$g(s,e,c,t,n,r)),n.empty&&0==n.length&&$g(s,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),o=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let a=Wg(i,o),l=new Ug(i,a,0).goto(n),s=new Ug(o,a,0).goto(n);for(;;){if(l.to!=s.to||!Gg(l.active,s.active)||l.point&&(!s.point||!Ng(l.point,s.point)))return!1;if(l.to>r)return!0;l.next(),s.next()}}static spans(e,t,n,r,i=-1){let o=new Ug(e,null,i).goto(t),a=t,l=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFroma&&(r.span(a,e,o.active,l),l=o.openEnd(e));if(o.to>n)return l+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new Vg;for(let r of e instanceof Bg?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Fg);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return zg.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=zg.empty;r=r.nextLayer)t=new zg(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}zg.empty=new zg([],[],null,-1),zg.empty.nextLayer=zg.empty;class Vg{finishChunk(e){this.chunks.push(new Hg(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Vg)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(zg.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=zg.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Wg(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new Zg(o,t,n,i));return 1==r.length?r[0]:new qg(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Kg(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Kg(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Kg(this.heap,0)}}}function Kg(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class Ug{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=qg.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Yg(this.active,e),Yg(this.activeTo,e),Yg(this.activeRank,e),this.minActive=Jg(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t0;)t++;Xg(this.active,t,n),Xg(this.activeTo,t,r),Xg(this.activeRank,t,i),e&&Xg(e,t,this.cursor.from),this.minActive=Jg(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Yg(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function $g(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,l=r,s=r-t,c=!!o.boundChange;for(let t=!1;;){let r=e.to+s-n.to,i=r||e.endSide-n.endSide,u=i<0?e.to+s:n.to,d=Math.min(u,a);if(e.point||n.point?(e.point&&n.point&&Ng(e.point,n.point)&&Gg(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(l,d,e.point,n.point),t=!1):(t&&o.boundChange(l),d>l&&!Gg(e.active,n.active)&&o.compareRange(l,d,e.active,n.active),c&&da)break;l=u,i<=0&&e.next(),i>=0&&n.next()}}function Gg(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function Jg(e,t){let n=-1,r=1e9;for(let i=0;i=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=Im(e,r)}return!0===r?-1:e.length}const tv="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),nv="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),rv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class iv{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,a){let l=[],s=/^@(\w+)\b/.exec(e[0]),c=s&&"keyframes"==s[1];if(s&&null==t)return o.push(e[0]+";");for(let n in t){let a=t[n];if(/&/.test(n))i(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),a,o);else if(a&&"object"==typeof a){if(!s)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,l,c)}else null!=a&&l.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+a+";")}(l.length||c)&&o.push((!n||s||a?e:e.map(n)).join(", ")+" {"+l.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=rv[tv]||1;return rv[tv]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[nv],i=n&&n.nonce;r?i&&r.setNonce(i):r=new av(e,i),r.mount(Array.isArray(t)?t:[t],e)}}let ov=new Map;class av{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=ov.get(n);if(t)return e[nv]=t;this.sheet=new r.CSSStyleSheet,ov.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[nv]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,o),n)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},cv="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),uv="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),dv=0;dv<10;dv++)lv[48+dv]=lv[96+dv]=String(dv);for(dv=1;dv<=24;dv++)lv[dv+111]="F"+dv;for(dv=65;dv<=90;dv++)lv[dv]=String.fromCharCode(dv+32),sv[dv]=String.fromCharCode(dv);for(var hv in lv)sv.hasOwnProperty(hv)||(sv[hv]=lv[hv]);function fv(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t2);var Ov={mac:Sv||/Mac/.test(mv.platform),windows:/Win/.test(mv.platform),linux:/Linux|X11/.test(mv.platform),ie:wv,ie_version:bv?gv.documentMode||6:yv?+yv[1]:vv?+vv[1]:0,gecko:Ev,gecko_version:Ev?+(/Firefox\/(\d+)/.exec(mv.userAgent)||[0,0])[1]:0,chrome:!!xv,chrome_version:xv?+xv[1]:0,ios:Sv,android:/Android\b/.test(mv.userAgent),webkit:Rv,webkit_version:Rv?+(/\bAppleWebKit\/(\d+)/.exec(mv.userAgent)||[0,0])[1]:0,safari:kv,safari_version:kv?+(/\bVersion\/(\d+(\.\d+)?)/.exec(mv.userAgent)||[0,0])[1]:0,tabSize:null!=gv.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function Cv(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const Mv=Object.create(null);function Av(e,t,n){if(e==t)return!0;e||(e=Mv),t||(t=Mv);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function Tv(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function Pv(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:t>0?1e8:-1e8,new Nv(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=Bv(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new Nv(e,t,n,r,e.widget||null,!0)}static line(e){return new Lv(e)}static set(e,t=!1){return zg.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Dv.none=zg.empty;class jv extends Dv{constructor(e){let{start:t,end:n}=Bv(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Cv(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Mv}eq(e){return this==e||e instanceof jv&&this.tagName==e.tagName&&Av(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}jv.prototype.point=!1;class Lv extends Dv{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Lv&&this.spec.class==e.spec.class&&Av(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Lv.prototype.mapMode=Bm.TrackBefore,Lv.prototype.point=!0;class Nv extends Dv{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?Bm.TrackBefore:Bm.TrackAfter:Bm.TrackDel}get type(){return this.startSide!=this.endSide?Iv.WidgetRange:this.startSide<=0?Iv.WidgetBefore:Iv.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Nv&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Bv(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function Fv(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}Nv.prototype.point=!0;class Hv extends Lg{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.rank=n}eq(e){return e==this||e instanceof Hv&&this.tagName==e.tagName&&Av(this.attributes,e.attributes)}static create(e){return new Hv(e.tagName,e.attributes||Mv,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return zg.of(e,t)}}function zv(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Vv(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Wv(e,t){if(!t.anchorNode)return!1;try{return Vv(e,t.anchorNode)}catch(e){return!1}}function Zv(e){return 3==e.nodeType?ib(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function qv(e,t,n,r){return!!n&&($v(e,t,n,r,-1)||$v(e,t,n,r,1))}function Kv(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Uv(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function $v(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Gv(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=Kv(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?Gv(e):0}}}function Gv(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Yv(e,t){let{left:n,right:r}=e;if(n==r)return e;let i=t?n:r;return{left:i,right:i,top:e.top,bottom:e.bottom}}function Xv(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Jv(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Qv(e,t=!0){let n=e.ownerDocument,r=null,i=null;for(let o=e.parentNode;o&&o!=n.body&&(t&&!r||!i);)if(1==o.nodeType)!i&&o.scrollHeight>o.clientHeight&&(i=o),t&&!r&&o.scrollWidth>o.clientWidth&&(r=o),o=o.assignedSlot||o.parentNode;else{if(11!=o.nodeType)break;o=o.host}return{x:r,y:i}}Hv.prototype.startSide=Hv.prototype.endSide=-1;class eb{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Gv(t):0),n,Math.min(e.focusOffset,n?Gv(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let tb,nb=null;function rb(e){if(e.setActive)return e.setActive();if(nb)return e.focus(nb);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==nb?{get preventScroll(){return nb={preventScroll:!0},!0}}:void 0),!nb){nb=!1;for(let e=0;eMath.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function lb(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;n=n.childNodes[r-1],r=Gv(n)}else{if(!n.parentNode||Uv(n))return null;r=Kv(n),n=n.parentNode}}}function sb(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r=26&&(nb=!1);class cb{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new cb(e.parentNode,Kv(e),t)}static after(e,t){return new cb(e.parentNode,Kv(e)+1,t)}}var ub=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ub||(ub={}));const db=ub.LTR,hb=ub.RTL;function fb(e){let t=[];for(let n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function Eb(e,t){if(e.length!=t.length)return!1;for(let n=0;ns&&a.push(new wb(s,p.from,h)),kb(e,p.direction==db!=!(h%2)?r+1:r,i,p.inner,p.from,p.to,a),s=p.to),f=p.to}else{if(f==n||(t?xb[f]!=l:xb[f]==l))break;f++}d?Rb(e,s,f,r+1,i,d,a):st;){let n=!0,u=!1;if(!c||s>o[c-1].to){let e=xb[s-1];e!=l&&(n=!1,u=16==e)}let d=n||1!=l?null:[],h=n?r:r+1,f=s;e:for(;;)if(c&&f==o[c-1].to){if(u)break e;let p=o[--c];if(!n)for(let e=p.from,n=c;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(xb[e-1]==l)break e;break}e=o[--n].from}d?d.push(p):(p.to=0;e-=3)if(vb[e+1]==-n){let t=vb[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(xb[a]=xb[vb[e]]=n),l=e;break}}else{if(189==vb.length)break;vb[l++]=a,vb[l++]=t,vb[l++]=s}else if(2==(r=xb[a])||1==r){let e=r==i;s=e?0:1;for(let t=l-3;t>=0;t-=3){let n=vb[t+2];if(2&n)break;if(e)vb[t+2]|=2;else{if(4&n)break;vb[t+2]|=4}}}}}(e,i,o,r,l),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,l=is;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),xb[--t]=u;s=a}else o=a,s++}}}(i,o,r,l),Rb(e,i,o,t,n,r,a)}function Sb(e){return[new wb(0,e,0)]}let Ob="";function Cb(e,t,n,r,i){var o;let a=r.head-e.from,l=wb.find(t,a,null!==(o=r.bidiLevel)&&void 0!==o?o:-1,r.assoc),s=t[l],c=s.side(i,n);if(a==c){let e=l+=i?1:-1;if(e<0||e>=t.length)return null;s=t[l=e],a=s.side(!i,n),c=s.side(i,n)}let u=Im(e.text,a,s.forward(i,n));(us.to)&&(u=c),Ob=e.text.slice(Math.min(a,u),Math.max(a,u));let d=l==(i?t.length-1:0)?null:t[l+(i?1:-1)];return d&&u==c&&d.level+(i?0:1)e.some(e=>e)}),Fb=Xm.define({combine:e=>e.some(e=>e)}),Hb=Xm.define();class zb{constructor(e,t,n,r,i,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new zb(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new zb($m.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Vb=Rg.define({map:(e,t)=>e.map(t)}),Wb=Rg.define();function Zb(e,t,n){let r=e.facet(_b);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}const qb=Xm.define({combine:e=>!e.length||e[0]});let Kb=0;const Ub=Xm.define({combine:e=>e.filter((t,n)=>{for(let r=0;r{let t=[];return o&&t.push(Jb.of(t=>{let n=t.plugin(e);return n?o(n):Dv.none})),i&&t.push(i(e)),t})}static fromClass(e,t){return $b.define((t,n)=>new e(t,n),t)}}class Gb{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Zb(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Zb(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Zb(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Yb=Xm.define(),Xb=Xm.define(),Jb=Xm.define(),Qb=Xm.define(),ey=Xm.define(),ty=Xm.define(),ny=Xm.define();function ry(e,t){let n=e.state.facet(ny);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return zg.spans(r,t.from,t.to,{point(){},span(e,n,r,o){let a=e-t.from,l=n-t.from,s=i;for(let e=r.length-1;e>=0;e--,o--){let n,i=r[e].spec.bidiIsolate;if(null==i&&(i=Mb(t.text,a,l)),o>0&&s.length&&(n=s[s.length-1]).to==a&&n.direction==i)n.to=l,s=n.inner;else{let e={from:a,to:l,direction:i,inner:[]};s.push(e),s=e.inner}}}}),i}const iy=Xm.define();function oy(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(iy)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const ay=Xm.define();class ly{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new ly(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAr.push(new ly(e,t,n,i))),this.changedRanges=r}static create(e,t,n){return new sy(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}const cy=[];class uy{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return cy}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;null==t[r]&&e.removeAttribute(r)}for(let n in t){let r=t[n];"style"==n?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let t of this.children){if(t==e)return n;n+=t.length+t.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t,n){return null}domPosFor(e,t){let n=Kv(this.dom),r=this.length?e>0:t>0;return new cb(this.parent.dom,n+(r?1:0),0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof fy)return e;return null}static get(e){return e.cmTile}}class dy extends uy{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t,n=this.dom,r=null,i=(null==e?void 0:e.node)==n?e:null,o=0;for(let a of this.children){if(a.sync(e),o+=a.length+a.breakAfter,t=r?r.nextSibling:n.firstChild,i&&t!=a.dom&&(i.written=!0),a.dom.parentNode==n)for(;t&&t!=a.dom;)t=hy(t);else n.insertBefore(a.dom,t);r=a.dom}for(t=r?r.nextSibling:n.firstChild,i&&t&&(i.written=!0);t;)t=hy(t);this.length=o}}function hy(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class fy extends dy{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=uy.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&i++,r=t.pop()}else{let o=n.children[r++];if(o instanceof py)t.push(r),n=o,r=0;else{let t=i+o.length,n=e(o,i);if(void 0!==n)return n;i=t+o.breakAfter}}}resolveBlock(e,t){let n,r,i=-1,o=-1;if(this.blockTiles((a,l)=>{let s=l+a.length;if(e>=l&&e<=s){if(a.isWidget()&&t>=-1&&t<=1){if(32&a.flags)return!0;16&a.flags&&(n=void 0)}(le||e==l&&(t>1?a.length:a.covers(-1)))&&(!r||!a.isWidget()&&r.isWidget())&&(r=a,o=e-l)}}),!n&&!r)throw new Error("No tile at position "+e);return n&&t<0||!r?{tile:n,offset:i}:{tile:r,offset:o}}}class py extends dy{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new py(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class my extends dy{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let r=new my(t||document.createElement("div"),e);return t&&n||(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(l,s){for(let c=0,u=0;c=s&&(d.isComposite()?e(d,s-u):(!o||o.isHidden&&(t>0&&!(32&o.flags)||n&&gy(o,d)))&&(h>s||32&d.flags)?(o=d,a=s-u):(ur&&(e=r);let i=e,o=e,a=0;0==e&&t<0||e==r&&t>=0?Ov.chrome||Ov.gecko||(e?(i--,a=1):o=0)?0:l.length-1];return Ov.safari&&!a&&0==s.width&&(s=Array.prototype.find.call(l,e=>e.width)||s),null==n?s:Yv(s,(a?a>0:t<0)==n)}static of(e,t){let n=new by(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class yy extends uy{constructor(e,t,n,r){super(e,t,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return Yv(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),n=null;if(!t.length)return null;let r=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let i=r?t.length-1:0;n=t[i],!(e>0?0==i:i==t.length-1||n.top0==n)}}class Ey{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:r,index:i,beforeBreak:o,parents:a}=this;for(;e||t>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(i==r.children.length){if(!e&&!a.length)break;n&&n.leave(r),o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++}else{let l=r.children[i],s=l.breakAfter;!(t>0?l.length<=e:l.length=0;e--){let n=t.marks[e],i=r.lastChild;if(i instanceof vy&&i.mark.eq(n.mark))i.dom!=n.dom&&i.setDOM(Ty(n.dom)),r=i;else{if(this.cache.reused.get(n)){let e=uy.get(n.dom);e&&e.setDOM(Ty(n.dom))}let e=vy.of(n.mark,n.dom);r.append(e),r=e}this.cache.reused.set(n,2)}let i=uy.get(e.text);i&&this.cache.reused.set(i,2);let o=new by(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,r.append(o)}addInlineWidget(e,t,n){let r=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);r||this.flushBuffer();let i=this.ensureMarks(t,n);r||16&e.flags||i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){(this.afterWidget||this.lastBlock).length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=Ay);let r=my.start(e,t||(null===(n=this.cache.find(my))||void 0===n?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let r=this.curLine;for(let i=e.length-1;i>=0;i--){let o,a=e[i];if(t>0&&(o=r.lastChild)&&o instanceof vy&&o.mark.eq(a))r=o,t--;else{let e=vy.of(a,null===(n=this.cache.find(vy,e=>e.mark.eq(a)))||void 0===n?void 0:n.dom);r.append(e),r=e,t=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;e&&My(this.curLine,!1)&&("BR"==e.dom.nodeName||!e.isWidget()||Ov.ios&&My(this.curLine,!0))||this.curLine.append(this.cache.findWidget(_y,0,32)||new yy(_y.toDOM(),0,_y,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to=this.pos){let t=102*e.rank+e.value.rank,n=new xy(e.from,e.to,e.value,t),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let r=t.lastChild;if(n.frome.wrapper.eq(n.wrapper)))||void 0===e?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(wy,void 0,1);return n&&(n.flags=t),n||new wy(t)}flushBuffer(){!this.afterWidget||32&this.afterWidget.flags||(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class ky{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skipCount);if(this.skipCount=0,r)throw new Error("Ran out of text content when drawing inline views");this.text=t;let i=this.textOff=Math.min(e,t.length);return n?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}const Sy=[yy,my,by,vy,wy,py,fy];for(let e=0;e[]),this.index=Sy.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let r=e.bucket,i=this.buckets[r],o=this.index[r];for(let e=0;e{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,i=0,o=0;;){let a=or){let e=l-r;this.preserve(e,!o,!a),r=l,i+=e}if(!a)break;t&&a.fromA<=t.range.fromA&&a.toA>=t.range.toA?(this.forward(a.fromA,t.range.fromA,t.range.fromA1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof vy&&t.push(r.mark)}return t}(this.old),i=this.openMarks;this.old.advance(e,n?1:-1,{skip:(e,t,n)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(n-t);else{let o=n>0||t{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof vy&&r.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?r.length&&(r.length=i=0):e instanceof vy&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,r=this.builder,i=-1,o=zg.spans(this.decorations,e,t,{point:(e,t,o,a,l,s)=>{if(o instanceof Nv){if(this.disallowBlockEffectsFor[s]){if(o.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=a.length,l>a.length)r.continueWidget(t-e);else{let i=o.widget||(o.block?Py.block:Py.inline),s=function(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}(o),c=this.cache.findWidget(i,t-e,s)||yy.of(i,this.view,t-e,s);o.block?(o.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(c)):(r.ensureLine(n),r.addInlineWidget(c,a,l))}n=null}else n=function(e,t){let n=t.spec.attributes,r=t.spec.class;return n||r?(e||(e={class:"cm-line"}),n&&Cv(n,e),r&&(e.class+=" "+r),e):e}(n,o);t>e&&this.text.skip(t-e)},span:(e,t,o,a)=>{for(let i=e;i-1&&(this.openWidget=o>i),this.openWidget||r.addLineStartIfNotCovered(n),this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let e=uy.get(r);if(r==this.view.contentDOM)break;e instanceof vy?t.push(e):(null==e?void 0:e.isLine())?n=e:e instanceof py||("DIV"!=r.nodeName||n||r==this.view.contentDOM?n||t.push(vy.of(new jv({tagName:r.nodeName.toLowerCase(),attributes:Pv(r)}),r)):n=new my(r,Ay))}return{line:n,marks:t}}}function My(e,t){let n=e=>{for(let r of e.children)if((t?r.isText():r.length)||n(r))return!0;return!1};return n(e)}const Ay={class:"cm-line"};function Ty(e){let t=uy.get(e);return t&&t.setDOM(e.cloneNode()),e}class Py extends _v{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Py.inline=new Py("span"),Py.block=new Py("div");const _y=new class extends _v{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class Iy{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Dv.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new fy(e,e.contentDOM),this.updateInner([new ly(0,0,0,e.state.doc.length)],null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:e,toA:t})=>tthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?r=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges((e,r)=>{et.from&&(n=!0)}),n}(e.changes,this.hasComposition)||e.selectionSet||(r=e.state.selection.main.head));let i=r>-1?function(e,t,n){let r=jy(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,l=i.nodeValue;if(/[\n\r]/.test(l))return null;if(e.state.doc.sliceString(r.from,r.to)!=l)return null;let s=t.invertedDesc;return{range:new ly(s.mapPos(o),s.mapPos(a),o,a),text:i}}(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:r}=this.hasComposition;n=new ly(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(Ov.ie||Ov.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.blockWrappers;this.updateDeco();let l=function(e,t,n){let r=new Ly;return zg.compare(e,t,n,r),r.changes}(o,this.decorations,e.changes);l.length&&(n=ly.extendWithRanges(n,l));let s=function(e,t,n){let r=new Ny;return zg.compare(e,t,n,r),r.changes}(a,this.blockWrappers,e.changes);return s.length&&(n=ly.extendWithRanges(n,s)),i&&!n.some(e=>e.fromA<=i.range.fromA&&e.toA>=i.range.toA)&&(n=i.range.addToSet(n.slice())),!(2&this.tile.flags&&0==n.length||(this.updateInner(n,i),e.transactions.length&&(this.lastUpdate=Date.now()),0))}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let n=this.tile,r=new Cy(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&uy.get(t.text)&&r.cache.reused.set(uy.get(t.text),2),this.tile=r.run(e,t),Dy(n,r.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=Ov.chrome||Ov.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),!r||!r.written&&n.selectionRange.focusNode==r.node&&this.tile.dom.contains(r.node)||(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to-1)&&Wv(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(i||t||o))return;let a=this.forceSelection;this.forceSelection=!1;let l,s,c=this.view.state.selection.main;if(c.empty?s=l=this.inlineDOMNearPos(c.anchor,c.assoc||1):(s=this.inlineDOMNearPos(c.head,c.head==c.from?1:-1),l=this.inlineDOMNearPos(c.anchor,c.anchor==c.from?1:-1)),Ov.gecko&&c.empty&&!this.hasComposition&&1==(u=l).node.nodeType&&u.node.firstChild&&(0==u.offset||"false"==u.node.childNodes[u.offset-1].contentEditable)&&(u.offset==u.node.childNodes.length||"false"==u.node.childNodes[u.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(e,l.node.childNodes[l.offset]||null)),l=s=new cb(e,0),a=!0}var u;let d=this.view.observer.selectionRange;!a&&d.focusNode&&(qv(l.node,l.offset,d.anchorNode,d.anchorOffset)&&qv(s.node,s.offset,d.focusNode,d.focusOffset)||this.suppressWidgetCursorChange(d,c))||(this.view.observer.ignore(()=>{Ov.android&&Ov.chrome&&n.contains(d.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(d.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let e=zv(this.view.root);if(e)if(c.empty){if(Ov.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(tc.head&&([l,s]=[s,l]),t.setEnd(s.node,s.offset),t.setStart(l.node,l.offset),e.removeAllRanges(),e.addRange(t)}o&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,s)),this.impreciseAnchor=l.precise?null:new cb(d.anchorNode,d.anchorOffset),this.impreciseHead=s.precise?null:new cb(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&qv(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=zv(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let l=this.coordsAt(t.head,-1),s=this.coordsAt(t.head,1);if(!l||!s||l.bottom>s.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let r=n.posAtStart;if(!n.isComposite())return n.isText()?e==n.dom?r+t:r+(t?n.length:0):r;{let i;if(e==n.dom)i=n.dom.childNodes[t];else{let r=0==Gv(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==n.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}i=r<0?e:e.nextSibling}if(i==n.dom.firstChild)return r;for(;i&&!uy.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let e=0,t=r;;e++){let r=n.children[e];if(r.dom==i)return t;t+=r.length+r.breakAfter}}}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(r,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r,i=-1,o=!1,a=-1,l=!1;return this.tile.blockTiles((t,s)=>{if(t.isWidget()){if(32&t.flags&&s>=e)return!0;16&t.flags&&(o=!0)}else{let c=s+t.length;if(s<=e&&(n=t,i=e-s,o=c=e&&!r&&(r=t,a=e-s,l=s>e),s>e&&r)return!0}}),n||r?(o&&r?n=null:l&&n&&(r=null),n&&t<0||!r?n.domIn(i,t):r.domIn(a,t)):this.domAtPos(e,t)}coordsAt(e,t,n){let{tile:r,offset:i}=this.tile.resolveBlock(e,t);return r.isWidget()?r.widget instanceof By?null:r.coordsInWidget(i,t,!0):r.coordsIn(i,t,n)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);return t.isLine()?function e(t,n){if(t.isComposite())for(let r of t.children){if(r.length>=n){let t=e(r,n);if(t)return t}if((n-=r.length)<0)break}else if(t.isText()&&nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==ub.LTR,s=0,c=(e,u,d)=>{for(let h=0;hr);h++){let r=e.children[h],f=u+r.length,p=r.dom.getBoundingClientRect(),{height:m}=p;if(d&&!h&&(s+=p.top-d.top),r instanceof py)f>n&&c(r,u,p);else if(u>=n&&(s>0&&t.push(-s),t.push(m+s),s=0,o)){let e=r.dom.lastChild,t=e?Zv(e):[];if(t.length){let e=t[t.length-1],n=l?e.right-p.left:p.right-e.left;n>a&&(a=n,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=f)}}d&&h==e.children.length-1&&(s+=d.bottom-p.bottom),u=f+r.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?ub.RTL:ub.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t,n=0;for(let r of e.children){if(!r.isText()||/[^ -~]/.test(r.text))return;let e=Zv(r.dom);if(1!=e.length)return;n+=e[0].width,t=e[0].height}if(n)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:n/e.length,textHeight:t}}});if(e)return e;let t,n,r,i=document.createElement("div");return i.className="cm-line",i.style.width="99999px",i.style.position="absolute",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(i);let e=Zv(i.firstChild)[0];t=i.getBoundingClientRect().height,n=e&&e.width?e.width/27:7,r=e&&e.height?e.height:t,i.remove()}),{lineHeight:t,charWidth:n,textHeight:r}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.view.state.doc.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(Dv.replace({widget:new By(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return Dv.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Jb).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),n=!1,r=this.view.state.facet(ey).map((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(zg.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e"function"==typeof e?e(this.view):e)}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let t of this.view.state.facet(Hb))try{if(t(this.view,e.range,e))return!0}catch(e){Zb(this.view.state,e,"scroll handler")}let t,{range:n}=e,r=this.coordsAt(n.head,n.assoc||(n.head>n.anchor?-1:1));if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=oy(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;if(function(e,t,n,r,i,o,a,l){let s=e.ownerDocument,c=s.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,h=u==s.body,f=1,p=1;if(h)e=Xv(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:f,scaleY:p}=Jv(u,t)),e={left:t.left,right:t.left+u.clientWidth*f,top:t.top,bottom:t.top+u.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+a)):t.bottom>e.bottom-a&&(g=t.bottom-e.bottom+a,n<0&&t.top-g0&&t.right>e.right+m&&(m=t.right-e.right+o)):t.right>e.right-o&&(m=t.right-e.right+o,n<0&&t.lefte.bottom||t.lefte.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,o,n.head1&&(r.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||r.bottome.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){Dy(this.tile)}}function Dy(e,t){let n=null==t?void 0:t.get(e);if(1!=n){null==n&&e.destroy();for(let n of e.children)Dy(n,t)}}function jy(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=lb(n.focusNode,n.focusOffset),i=sb(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let t=uy.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=uy.get(r.node);!e||e.isText()&&e.text!=r.node.nodeValue||(o=i)}}if(e.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=t-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}let Ly=class{constructor(){this.changes=[]}compareRange(e,t){Fv(e,t,this.changes)}comparePoint(e,t){Fv(e,t,this.changes)}boundChange(e){Fv(e,e,this.changes)}};class Ny{constructor(){this.changes=[]}compareRange(e,t){Fv(e,t,this.changes)}comparePoint(){}boundChange(e){Fv(e,e,this.changes)}}class By extends _v{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Fy(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.tot)return i;e&&(i.type!=Iv.Text||e.type==i.type&&!(n<0?i.fromt))||(e=i)}}return e||r}return r}function Hy(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let l=t,s=null;;){let t=Cb(i,o,a,l,n),c=Ob;if(!t){if(i.number==(n?e.state.doc.lines:1))return l;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(s){if(!s(c))return l}else{if(!r)return t;s=r(c)}l=t}}function zy(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&tt(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:$m.cursor(r,re.viewState.docHeight)return new Zy(e.state.doc.length,-1);if(i=e.elementAtHeight(c),null==r)break;if(i.type==Iv.Text){if(r<0?i.toe.viewport.to)break;let t=e.docView.coordsAt(r<0?i.from:i.to,r>0?-1:1);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?i.bottom+t:i.top-t}if(e.viewport.from>=i.to||e.viewport.to<=i.from){if(n)return null;if(i.type==Iv.Text){let t=function(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((i-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+ev(a,o,e.state.tabSize)}(e,o,i,l,s);return new Zy(t,t==i.from?1:-1)}}if(i.type!=Iv.Text)return c<(i.top+i.bottom)/2?new Zy(i.from,1):new Zy(i.to,-1);let u=e.docView.lineAt(i.from,2);return u&&u.length==i.length||(u=e.docView.lineAt(i.from,-2)),new Ky(e,l,s,e.textDirectionAt(i.from)).scanTile(u,i.from)}class Ky{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from>1;t:if(s.has(h)){let e=a+Math.floor(Math.random()*n);for(let t=0;t1)){if(n.bottomthis.y)(!i||i.top>n.top)&&(i=n),s=-1;else{let e=n.left>this.x?this.x-n.left:n.right(n+n+a)/3)return this.y=r.bottom-1,this.scan(e,t,!0);if(i&&i.top<(n+a+a)/3)return this.y=i.top+1,this.scan(e,t,!0)}let h=(c?this.dirAt(e[u],1):this.baseDir)==ub.LTR;return{i:u,after:this.x>(o.left+o.right)/2==h}}scanText(e,t){let n=[];for(let r=0;r{let i=n[r]-t,o=n[r+1]-t;return ib(e.dom,i,o).getClientRects()});return r.after?new Zy(n[r.i+1],-1):new Zy(n[r.i],1)}scanTile(e,t){if(!e.length)return new Zy(t,1);if(1==e.children.length){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r{let n=e.children[t];return 48&n.flags?null:(1==n.dom.nodeType?n.dom:ib(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],o=n[r.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):r.after?new Zy(n[r.i+1],-1):new Zy(o,1)}}const Uy="￿";class $y{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(Dg.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Uy}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=uy.get(r),o=r.nextSibling;if(o==t){(null==i?void 0:i.breakAfter)&&!o&&n!=this.view.contentDOM&&this.lineBreak();break}let a=uy.get(o);(i&&a?i.breakAfter:(i?i.breakAfter:Uv(r))||Uv(o)&&("BR"!=r.nodeName||(null==i?void 0:i.isWidget()))&&this.text.length>e)&&!Yy(o,t)&&this.lineBreak(),r=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){let t=uy.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Gy(e,n.node,n.offset)?t:0))}}function Gy(e,t,n){for(;;){if(!t||n-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,a=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=Qy(e.docView.tile,t,n,0))){let t=i||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new Xy(n,r)),i==n&&o==r||t.push(new Xy(i,o))),t}(e),n=new $y(t,e);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?$m.single(n+t,r+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!Vv(e.contentDOM,t.focusNode)?a.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!Vv(e.contentDOM,t.anchorNode)?a.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),l=e.viewport;if((Ov.ios||Ov.chrome)&&n!=r&&Math.min(n,r)<=a.main.from&&Math.max(n,r)>=a.main.to&&(l.from>0||l.to-1&&a.ranges.length>1)this.newSel=a.replaceRange($m.range(r,n));else if(e.lineWrapping&&r==n&&(!a.main.empty||a.main.head!=n)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(n,-1),r=0;t&&(r=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=$m.create([$m.cursor(n,r)])}else this.newSel=$m.single(r,n)}}}function Qy(e,t,n,r){if(e.isComposite()){let i=-1,o=-1,a=-1,l=-1;for(let s=0,c=r,u=r;sn)return Qy(r,t,n,c);if(d>=t&&-1==i&&(i=s,o=c),c>n&&r.dom.parentNode==e.dom){a=s,l=u;break}u=d,c=d+r.breakAfter}return{from:o,to:l<0?r+e.length:l,startDOM:(i?e.children[i-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:a=0?e.children[a].dom:null}}return e.isText()?{from:r,to:r+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function ew(e,t){let n,{newSel:r}=t,{state:i}=e,o=i.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:r}=t.bounds,l=o.from,s=null;(8===a||Ov.android&&t.text.length=e&&o.to<=r&&(t.typeOver||d!=t.text)&&d.slice(0,o.from-e)==t.text.slice(0,o.from-e)&&d.slice(o.to-e)==t.text.slice(c=t.text.length-(d.length-(o.to-e)))?n={from:o.from,to:o.to,insert:Rm.of(t.text.slice(o.from-e,c).split(Uy))}:(u=nw(d,t.text,l-e,s))&&(Ov.chrome&&13==a&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==Uy+Uy&&u.toB--,n={from:e+u.from,to:e+u.toA,insert:Rm.of(t.text.slice(u.from,u.toB).split(Uy))})}else r&&(!e.hasFocus&&i.facet(qb)||rw(r,o))&&(r=null);if(!n&&!r)return!1;if((Ov.mac||Ov.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=$m.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:Rm.of([n.insert.toString().replace("."," ")])}):i.doc.lineAt(o.from).toDate.now()-50?n={from:o.from,to:o.to,insert:i.toText(e.inputState.insertingText)}:Ov.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=$m.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:Rm.of([" "])}),n)return tw(e,n,r,a);if(r&&!rw(r,o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin,"select.pointer"==n&&(r=Vy(i.facet(ty).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function tw(e,t,n,r=-1){if(Ov.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(Ov.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&" "==e.state.sliceDoc(t.from,i.from))&&1==t.insert.length&&2==t.insert.lines&&ob(e.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&0==t.insert.length||8==r&&t.insert.lengthi.head)&&ob(e.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&0==t.insert.length&&ob(e.contentDOM,"Delete",46)))return!0;let o,a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>o||(o=function(e,t,n){let r,i=e.state,o=i.selection.main,a=-1;if(t.from==t.to&&t.fromo.to){let n=t.fromt(e)),r,n);t.from==l&&(a=l)}if(a>-1)r={changes:t,selection:$m.cursor(t.from+t.insert.length,-1)};else if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=o.fromt.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let a=i.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=o.to+10&&t.to>=o.to-10){let s,c=e.state.sliceDoc(t.from,t.to),u=n&&jy(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);s={from:u.from,to:u.to-e}}else s=e.state.doc.lineAt(o.head);let d=o.to-t.to;r=i.changeByRange(n=>{if(n.from==o.from&&n.to==o.to)return{changes:a,range:l||n.map(a)};let r=n.to-d,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=s.from&&u<=s.to)return{range:n};let h=i.changes({from:u,to:r,insert:t.insert}),f=n.to-o.to;return{changes:h,range:l?$m.range(Math.max(0,l.anchor+f),Math.max(0,l.head+f)):n.map(h)}})}else r={changes:a,selection:l&&i.selection.replaceRange(l)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:l,scrollIntoView:!0})}(e,t,n));return e.state.facet(Db).some(n=>n(e,t.from,t.to,a,l))||e.dispatch(l()),!0}function nw(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o0&&l>0&&e.charCodeAt(a-1)==t.charCodeAt(l-1);)a--,l--;return"end"==r&&(n-=a+Math.max(0,o-Math.min(a,l))-o),a=a?o-n:0,l=o+(l-a),a=o):l=l?o-n:0,a=o+(a-l),l=o),{from:o,toA:a,toB:l}}function rw(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class iw{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Ov.safari&&e.contentDOM.addEventListener("input",()=>null),Ov.gecko&&function(e){Mw.has(e)||(Mw.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=uy.get(r))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e)))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=aw(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,o=n[e];o&&i!=!o.handlers.length&&(r.removeEventListener(e,this.handleEvent),o=null),o||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&cw.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Ov.android&&Ov.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(Ov.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(lw.some(t=>t.keyCode==e.keyCode)&&!e.ctrlKey||sw.indexOf(e.key)>-1&&e.ctrlKey)){let n={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};return n.shiftKey&&Ov.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&(t=this.view.win).visualViewport&&t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85&&(n.shiftKey=!1),this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:n},setTimeout(()=>this.flushIOSKey(),250),!0}var t;return 229!=e.keyCode&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&!("Enter"==t.key&&e&&e.from0||!!(Ov.safari&&!Ov.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function ow(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){Zb(n.state,e)}}}function aw(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,r=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(r)for(let e in r){let i=r[e];i&&n(e).handlers.push(ow(t.value,i))}if(i)for(let e in i){let r=i[e];r&&n(e).observers.push(ow(t.value,r))}}for(let e in hw)n(e).handlers.push(hw[e]);for(let e in fw)n(e).observers.push(fw[e]);return t}const lw=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],sw="dthko",cw=[16,17,18,20,91,92,224,225];function uw(e){return.7*Math.max(0,e)+8}class dw{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Qv(e.contentDOM),this.atoms=e.state.facet(ty).map(t=>t(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Dg.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Ab);return n.length?n[0](t):Ov.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=zv(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=xw(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(t=this.startEvent,n=e,Math.max(Math.abs(t.clientX-n.clientX),Math.abs(t.clientY-n.clientY))<10))return;var t,n;this.select(this.lastEvent=e);let r=0,i=0,o=0,a=0,l=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:o,right:l}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:s}=this.scrollParents.y.getBoundingClientRect());let c=oy(this.view);e.clientX-c.left<=o+6?r=-uw(o-e.clientX):e.clientX+c.right>=l-6&&(r=uw(e.clientX-l)),e.clientY-c.top<=a+6?i=-uw(a-e.clientY):e.clientY+c.bottom>=s-6&&(i=uw(e.clientY-s)),this.setScrollSpeed(r,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=Vy(this.atoms,this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}const hw=Object.create(null),fw=Object.create(null),pw=Ov.ie&&Ov.ie_version<15||Ov.ios&&Ov.webkit_version<604;function mw(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function gw(e,t){t=mw(e.state,Lb,t);let n,{state:r}=e,i=1,o=r.toText(t),a=o.lines==r.selection.ranges.length;if(null!=kw&&r.selection.ranges.every(e=>e.empty)&&kw==o.toString()){let e=-1;n=r.changeByRange(n=>{let l=r.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let s=r.toText((a?o.line(i++).text:t)+r.lineBreak);return{changes:{from:l.from,insert:s},range:$m.cursor(n.from+s.length)}})}else n=a?r.changeByRange(e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:$m.cursor(e.from+t.length)}}):r.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function vw(e,t,n,r){if(1==r)return $m.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return $m.cursor(t);0==o?n=1:o==i.length&&(n=-1);let a=o,l=o;n<0?a=Im(i.text,o,!1):l=Im(i.text,o);let s=r(i.text.slice(a,l));for(;a>0;){let e=Im(i.text,a,!1);if(r(i.text.slice(e,a))!=s)break;a=e}for(;l{let t=e.inputState;t.lastScrollTop=e.scrollDOM.scrollTop,t.lastScrollLeft=e.scrollDOM.scrollLeft,Ov.ios&&!t.touchActive&&(t.lastIOSMomentumScroll=Date.now())},fw.wheel=fw.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},hw.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),fw.touchstart=(e,t)=>{let n=e.inputState,r=t.targetTouches[0];n.touchActive=!0,n.lastTouchTime=Date.now(),r&&(n.lastTouchX=r.clientX,n.lastTouchY=r.clientY),n.setSelectionOrigin("select.pointer")},fw.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},fw.touchend=(e,t)=>{e.inputState.touchActive=!1},hw.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Pb))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),r=xw(t),i=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),i=i.map(e.changes))},get(t,o,a){let l,s=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),c=vw(e,s.pos,s.assoc,r);if(n.pos!=s.pos&&!o){let t=vw(e,n.pos,n.assoc,r),i=Math.min(t.from,c.from),o=Math.max(t.to,c.to);c=i1&&(l=function(e,t){for(let n=0;n=t)return $m.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(i,s.pos))?l:a?i.addRange(c):$m.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new dw(e,t,n,r)),r&&e.observer.ignore(()=>{rb(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};const bw=Ov.ie&&Ov.ie_version<=11;let yw=null,ww=0,Ew=0;function xw(e){if(!bw)return e.detail;let t=yw,n=Ew;return yw=e,Ew=Date.now(),ww=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(ww+1)%3:1}function Rw(e,t,n,r){if(!(n=mw(e.state,Lb,n)))return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&function(e,t){let n=e.state.facet(Tb);return n.length?n[0](t):Ov.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,l={from:i,insert:n},s=e.state.changes(a?[a,l]:l);e.focus(),e.dispatch({changes:s,selection:{anchor:s.mapPos(i,-1),head:s.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}hw.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=$m.undirectionalRange(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",mw(e.state,Nb,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1},hw.dragend=e=>(e.inputState.draggedContent=null,!1),hw.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Rw(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return Rw(e,t,n,!0),!0}return!1},hw.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=pw?null:t.clipboardData;return n?(gw(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),gw(e,n.value)},50)}(e),!1)};let kw=null;hw.copy=hw.cut=(e,t)=>{if(!Wv(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:mw(e,Nb,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;kw=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=pw?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),!1)};const Sw=wg.define();function Ow(e,t){let n=[];for(let r of e.facet(jb)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:Sw.of(!0)}):null}function Cw(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Ow(e.state,t);n?e.dispatch(n):e.update([])}},10)}fw.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Cw(e)},fw.blur=e=>{e.observer.clearSelectionRange(),Cw(e)},fw.compositionstart=fw.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},fw.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Ov.chrome&&Ov.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},fw.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},hw.beforeinput=(e,t)=>{var n,r;if("insertText"!=t.inputType&&"insertCompositionText"!=t.inputType||(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let r=null===(n=t.dataTransfer)||void 0===n?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return tw(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}let i;if(Ov.chrome&&Ov.android&&(i=lw.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return Ov.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),Ov.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>fw.compositionend(e,t),20),!1};const Mw=new Set,Aw=["pre-wrap","normal","pre-line","break-spaces"];let Tw=!1;function Pw(){Tw=!1}class _w{constructor(e){this.lineWrapping=e,this.doc=Rm.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Aw.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,l=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,l){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Lw&&(Tw=!0),this.height=e)}replace(e,t,n){return Nw.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:s,fromB:c,toB:u}=r[a],d=i.lineAt(l,jw.ByPosNoHeight,n.setDoc(t),0,0),h=d.to>=s?d:i.lineAt(s,jw.ByPosNoHeight,n,0,0);for(u+=h.to-s,s=h.to;a>0&&d.from<=r[a-1].toA;)l=r[a-1].fromA,c=r[a-1].fromB,a--,l2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.lineAt(0,jw.ByPos,n,r,i))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}}class zw extends Hw{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new Dw(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof zw||r instanceof Vw&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof Vw?r=new zw(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):Nw.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Vw extends Nw{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(a=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e0){let e=n[n.length-1];e instanceof Vw?n[n.length-1]=new Vw(e.length+r):n.push(null,new Vw(r-1))}if(e>0){let t=n[0];t instanceof Vw?n[0]=new Vw(e+t.length):n.unshift(new Vw(e-1),null)}return Nw.of(n)}decomposeLeft(e,t){t.push(new Vw(e-1),null)}decomposeRight(e,t){t.push(null,new Vw(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new Vw(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++],l=0;i<0&&(l=-i,i=r.heights[r.index++]),-1==a?a=i:Math.abs(i-a)>=Lw&&(a=-2);let s=new zw(t,i,l);s.outdated=!1,n.push(s),o+=t+1}o<=i&&n.push(null,new Vw(i-o).updateHeight(e,o));let l=Nw.of(n);return(a<0||Math.abs(l.height-this.height)>=Lw||Math.abs(a-this.heightMetrics(e,t).perLine)>=Lw)&&(Tw=!0),Bw(this,l)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Ww extends Nw{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return ea))return s;let c=t==jw.ByPosNoHeight?jw.ByPosNoHeight:jw.ByPos;return l?s.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(s)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,l=i+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,t,n,a,l,o);else{let s=this.lineAt(l,jw.ByPos,n,r,i);e=e&&s.from<=t&&o(s),t>s.to&&this.right.forEachLine(s.to+1,t,n,a,l,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&Zw(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?Nw.of(this.break?[e,null,t]:[e,t]):(this.left=Bw(this.left,e),this.right=Bw(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,l=null;return r&&r.from<=t+i.length&&r.more?l=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?l=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),l?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Zw(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof Vw&&(r=e[t+1])instanceof Vw&&e.splice(t-1,3,new Vw(n.length+1+r.length))}class qw{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof zw?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new zw(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new zw(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new Vw(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof zw)return e;let t=new zw(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof zw||this.isCovered?(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),a=Math.min(a,r.right),l=Math.max(l,r.top),s=Math.min(t==e.parentNode?i.innerHeight:s,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:l-(n.top+t),bottom:Math.max(l,s)-(n.top+t)}}function $w(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Gw{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new _w(n),this.stateDeco=nE(t),this.heightMap=Nw.empty().applyChanges(this.stateDeco,Rm.empty,this.heightOracle.setDoc(t.doc),[new ly(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Dv.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Jw(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?tE:new rE(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(iE(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=nE(this.state);let r=e.changedRanges,i=ly.extendWithRanges(r,function(e,t,n){let r=new Kw;return zg.compare(e,t,n,r,0),r.changes}(n,this.stateDeco,e?e.changes:Hm.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Pw(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||Tw)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let s=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(s||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Fb)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?ub.RTL:ub.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||"refresh"===this.mustMeasureContent,a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let s=0,c=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=Jv(t,a);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,s|=16,o=l=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,this.paddingBottom=d,s|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,s|=16);let h=Qv(this.view.contentDOM,!1).y;h!=this.scrollParent&&(this.scrollParent=h,this.scrollAnchorHeight=-1,this.scrollOffset=0);let f=this.getScrollOffset();this.scrollOffset!=f&&(this.scrollAnchorHeight=-1,this.scrollOffset=f),this.scrolledToBottom=ab(this.scrollParent||e.win);let p=(this.printing?$w:Uw)(t,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(l=!0)),!this.inView&&!this.scrollTarget&&!function(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left0&&t.top0}(e.dom))return 0;let b=a.width;if(this.contentDOMWidth==b&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,s|=16),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(o=!0),o||r.lineWrapping&&Math.abs(b-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:a,textHeight:l}=e.docView.measureTextSize();o=n>0&&r.refresh(i,n,a,l,Math.max(5,b/a),t),o&&(e.docView.minWidth=0,s|=16)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),Pw();for(let n of this.viewports){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(o?Nw.empty().applyChanges(this.stateDeco,Rm.empty,this.heightOracle,[new ly(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new Iw(n.from,i))}Tw&&(s|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(2&s&&(s|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),s|=this.updateForViewport()),(2&s||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),s|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),s}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new Jw(r.lineAt(o-1e3*n,jw.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),jw.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(el.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,jw.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i>1,o=r<<1;if(this.defaultTextDirection!=ub.LTR&&!n)return[];let a=[],l=(r,o,s,c)=>{if(o-rr&&ee.from>=s.from&&e.to<=s.to&&Math.abs(e.from-r)e.fromt));if(!h){if(oe.from<=o&&e.to>=o)){let e=t.moveToLineBoundary($m.cursor(o),!1,!0).head;e>r&&(o=e)}let e=this.gapSize(s,r,o,c);h=new Gw(r,o,e,n||e<2e6?e:2e6)}a.push(h)},s=t=>{if(t.lengthi&&(r.push({from:i,to:e}),o+=e-i),i=t}},20),i2e6)for(let n of e)n.from>=t.from&&n.fromt.from&&l(t.from,a,t,i),se.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];zg.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let t=0;t=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||iE(this.heightMap.lineAt(e,jw.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||iE(this.heightMap.lineAt(this.scaler.fromDOM(e),jw.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return iE(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Jw{constructor(e,t){this.from=e,this.to=t}}function Qw({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function eE(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const tE={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function nE(e){let t=e.facet(Jb).filter(e=>"function"!=typeof e),n=e.facet(ey).filter(e=>"function"!=typeof e);return n.length&&t.push(zg.join(n)),t}class rE{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map(({from:n,to:i})=>{let o=t.lineAt(n,jw.ByPos,e,0,0).top,a=t.lineAt(i,jw.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tt.from==e.viewports[n].from&&t.to==e.viewports[n].to)}}function iE(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new Dw(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>iE(e,t)):e._content)}const oE=Xm.define({combine:e=>e.join(" ")}),aE=Xm.define({combine:e=>e.indexOf(!0)>-1}),lE=iv.newName(),sE=iv.newName(),cE=iv.newName(),uE={"&light":"."+sE,"&dark":"."+cE};function dE(e,t,n){return new iv(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}const hE=dE("."+lE,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},uE),fE={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},pE=Ov.ie&&Ov.ie_version<=11;class mE{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new eb,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(Ov.ie&&Ov.ie_version<=11||Ov.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),!window.EditContext||!Ov.android||!1===e.constructor.EDIT_CONTEXT||Ov.chrome&&Ov.chrome_version<126||(this.editContext=new bE(e),e.state.facet(qb)&&(e.contentDOM.editContext=this.editContext.editContext)),pE&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(qb)?n.root.activeElement!=this.dom:!Wv(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);i&&i.isWidget()&&i.widget.ignoreEvent(e)?t||(this.selectionChanged=!1):(Ov.ie&&Ov.ie_version<=11||Ov.android&&Ov.chrome)&&!n.state.selection.main.empty&&r.focusNode&&qv(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=zv(e.root);if(!t)return!1;let n=Ov.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return vE(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?vE(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=Wv(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&ob(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&Wv(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Jy(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=ew(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!rw(this.view.state.selection,t.newSel.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let n=gE(t,e.previousSibling||e.target.previousSibling,-1),r=gE(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(qb)!=e.state.facet(qb)&&(e.view.contentDOM.editContext=e.state.facet(qb)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function gE(e,t,n){for(;t;){let r=uy.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function vE(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor,1);return qv(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class bE{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:o}=r,a=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let s=l-a>n.text.length;a==this.from&&ithis.to&&(l=i);let c=nw(e.state.sliceDoc(a,l),n.text,(s?r.from:r.to)-a,s?"end":null);if(!c){let t=$m.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));return void(rw(t,r)||e.dispatch({selection:t,userEvent:"select"}))}let u={from:c.from+a,to:c.toA+a,insert:Rm.of(n.text.slice(c.from,c.toB).split("\n"))};if((Ov.mac||Ov.android)&&u.from==o-1&&/^\. ?$/.test(n.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(u={from:a,to:l,insert:Rm.of([n.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);tw(e,u,$m.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{let t=zv(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,a,l,s)=>{if(n)return;let c=s.length-(o-i);if(r&&o>=r.to){if(r.from==i&&r.to==o&&r.insert.eq(s))return r=this.pendingContextChange=null,t+=c,void(this.to+=c);r=null,this.revertPending(e.state)}if(i+=t,(o+=t)<=this.from)this.from+=c,this.to+=c;else if(ithis.to||this.to-this.from+s.length>3e4)return void(n=!0);this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),s.toString()),this.to+=c}t+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class yE{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach(e=>n(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Xw(this,e.state||Dg.create(e)),e.scrollTo&&e.scrollTo.is(Vb)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ub).map(e=>new Gb(e));for(let e of this.plugins)e.update(this);this.observer=new mE(this),this.inputState=new iw(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Iy(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof kg?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,r=!1,i=this.state;for(let t of e){if(t.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed)return void(this.viewState.state=i);let o=this.hasFocus,a=0,l=null;e.some(e=>e.annotation(Sw))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=Ow(i,o),l||(a=1));let s=this.observer.delayedAndroidKey,c=null;if(s?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(Dg.phrases)!=this.state.facet(Dg.phrases))return this.setState(i);t=sy.create(this,i,e),t.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:n,y:r}=this.state.facet(yE.cursorScrollMargin);u=new zb(e.empty?e:$m.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",r,n)}for(let e of t.effects)e.is(Vb)&&(u=e.value.clip(this.state))}this.viewState.update(t,u),this.bidiCache=xE.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(ay)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(t.startState.facet(oE)!=t.state.facet(oE)&&(this.viewState.mustMeasureContent=!0),(n||r||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!t.empty)for(let e of this.state.facet(Ib))try{e(t)}catch(e){Zb(this.state,e,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!ew(this,c)&&s.force&&ob(this.contentDOM,s.key,s.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Xw(this,e),this.plugins=e.facet(Ub).map(e=>new Gb(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new Iy(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ub),n=e.state.facet(Ub);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new Gb(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(ab(n||this.win))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure();if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&a||([this.measureRequests,l]=[l,this.measureRequests]);let s=l.map(e=>{try{return e.read(this)}catch(e){return Zb(this.state,e),EE}}),c=sy.create(this,this.state,[]),u=!1;c.flags|=a,t?t.flags|=a:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate());for(let e=0;e1||e<-1)&&!(Ov.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r+=e,n?n.scrollTop+=e:this.win.scrollBy(0,e),o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Ib))e(t)}get themeClasses(){return lE+" "+(this.state.facet(aE)?cE:sE)+" "+this.state.facet(oE)}updateAttrs(){let e=RE(this,Yb,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(qb)?"true":"false",class:"cm-content",style:`${Ov.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),RE(this,Xb,t);let n=this.observer.ignore(()=>{let n=Tv(this.contentDOM,this.contentAttrs,t),r=Tv(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(yE.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(ay);let e=this.state.facet(yE.cspNonce);iv.mount(this.root,this.styleModules.concat(hE).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Wy(this,e,Hy(this,e,t,n))}moveByGroup(e,t){return Wy(this,e,Hy(this,e,t,t=>function(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==Pg.Space&&(i=t),i==t}}(this,e.head,t)))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),i=n[t?n.length-1:0];return $m.cursor(i.side(t,r)+e.from,i.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=Fy(e,t.head,t.assoc||-1),o=r&&i.type==Iv.Text&&(e.lineWrapping||i.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),a=e.posAtCoords({x:n==(r==ub.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return $m.cursor(a,n?-1:1)}return $m.cursor(n?i.to:i.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return Wy(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return $m.cursor(i,t.assoc);let a,l=t.goalColumn,s=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(c)null==l&&(l=c.left-s.left),a=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(i);null==l&&(l=Math.min(s.right-s.left,e.defaultCharacterWidth*(i-t.from))),a=(o<0?t.top:t.bottom)+u}let d=s.left+l,h=e.viewState.heightOracle.textHeight>>1,f=null!=r?r:h;for(let t=0;;t+=h){let r=a+(f+t)*o,i=qy(e,{x:d,y:r},!1,o);if(n?r>s.bottom:ra:uthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>wE)return Sb(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||Eb(r.isolates,t=ry(this,e))))return r.order;t||(t=ry(this,e));let r=function(e,t,n){if(!e)return[new wb(0,0,t==hb?1:0)];if(t==db&&!n.length&&!yb.test(e))return Sb(e.length);if(n.length)for(;e.length>xb.length;)xb[xb.length]=256;let r=[],i=t==db?0:1;return kb(e,i,i,n,0,e.length,r),r}(e.text,n,t);return this.bidiCache.push(new xE(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ov.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{rb(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var n,r,i,o;return Vb.of(new zb("number"==typeof e?$m.cursor(e):e,null!==(n=t.y)&&void 0!==n?n:"nearest",null!==(r=t.x)&&void 0!==r?r:"nearest",null!==(i=t.yMargin)&&void 0!==i?i:5,null!==(o=t.xMargin)&&void 0!==o?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return Vb.of(new zb($m.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return $b.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return $b.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=iv.newName(),r=[oE.of(n),ay.of(dE(`.${n}`,e))];return t&&t.dark&&r.push(aE.of(!0)),r}static baseTheme(e){return ag.lowest(ay.of(dE("."+lE,e,uE)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&uy.get(n)||uy.get(e);return(null===(t=null==r?void 0:r.root)||void 0===t?void 0:t.view)||null}}yE.styleModule=ay,yE.inputHandler=Db,yE.clipboardInputFilter=Lb,yE.clipboardOutputFilter=Nb,yE.scrollHandler=Hb,yE.focusChangeEffect=jb,yE.perLineTextDirection=Bb,yE.exceptionSink=_b,yE.updateListener=Ib,yE.editable=qb,yE.mouseSelectionStyle=Pb,yE.dragMovesSelection=Tb,yE.clickAddsSelectionRange=Ab,yE.decorations=Jb,yE.blockWrappers=Qb,yE.outerDecorations=ey,yE.atomicRanges=ty,yE.bidiIsolatedRanges=ny,yE.cursorScrollMargin=Xm.define({combine:e=>{let t=5,n=5;for(let r of e)"number"==typeof r?t=n=r:({x:t,y:n}=r);return{x:t,y:n}}}),yE.scrollMargins=iy,yE.darkTheme=aE,yE.cspNonce=Xm.define({combine:e=>e.length?e[0]:""}),yE.contentAttributes=Xb,yE.editorAttributes=Yb,yE.lineWrapping=yE.contentAttributes.of({class:"cm-lineWrapping"}),yE.announce=Rg.define();const wE=4096,EE={};class xE{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:ub.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&Cv(o,n)}return n}const kE=Ov.mac?"mac":Ov.windows?"win":Ov.linux?"linux":"key";function SE(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const OE=Xm.define({enables:ag.default(yE.domEventHandlers({keydown:(e,t)=>PE(ME(t.state),e,t,"editor")}))}),CE=new WeakMap;function ME(e){let t=e.facet(OE),n=CE.get(t);return n||CE.set(t,n=function(e,t=kE){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,l)=>{var s,c;let u=n[e]||(n[e]=Object.create(null)),d=r.split(/ (?!$)/).map(e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,l=n[n.length-1];"Space"==l&&(l=" ");for(let e=0;e{let r=AE={view:t,prefix:n,scope:e};return setTimeout(()=>{AE==r&&(AE=null)},4e3),!0}]})}let h=d.join(" ");i(h,!1);let f=u[h]||(u[h]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(s=u._any)||void 0===s?void 0:s.run)||void 0===c?void 0:c.slice())||[]});o&&f.run.push(o),a&&(f.preventDefault=!0),l&&(f.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:i}=r;for(let t in e)e[t].run.push(e=>i(e,TE))}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(t.reduce((e,t)=>e.concat(t),[]))),n}let AE=null,TE=null;function PE(e,t,n,r){TE=t;let i=function(e){var t=!(cv&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||uv&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?sv:lv)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=Lm(Dm(i,0))==i.length&&" "!=i,a="",l=!1,s=!1,c=!1;AE&&AE.view==n&&AE.scope==r&&(a=AE.prefix+" ",cw.indexOf(t.keyCode)<0&&(s=!0,AE=null));let u,d,h=new Set,f=e=>{if(e){for(let t of e.run)if(!h.has(t)&&(h.add(t),t(n)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),s=!0)}return!1},p=e[r];return p&&(f(p[a+SE(i,t,!o)])?l=!0:!o||!(t.altKey||t.metaKey||t.ctrlKey)||Ov.windows&&t.ctrlKey&&t.altKey||Ov.mac&&t.altKey&&!t.ctrlKey&&!t.metaKey||!(u=lv[t.keyCode])||u==i?o&&t.shiftKey&&f(p[a+SE(i,t,!0)])&&(l=!0):(f(p[a+SE(u,t,!0)])||t.shiftKey&&(d=sv[t.keyCode])!=i&&d!=u&&f(p[a+SE(d,t,!1)]))&&(l=!0),!l&&f(p._any)&&(l=!0)),s&&(l=!0),l&&c&&t.stopPropagation(),TE=null,l}class _E{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=IE(e);return[new _E(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==ub.LTR,a=e.contentDOM,l=a.getBoundingClientRect(),s=IE(e),c=a.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=l.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),h=l.right-(u?parseInt(u.paddingRight):0),f=Fy(e,r,1),p=Fy(e,i,-1),m=f.type==Iv.Text?f:null,g=p.type==Iv.Text?p:null;if(m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=DE(e,r,1,m)),g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=DE(e,i,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return b(y(n.from,n.to,m));{let t=m?y(n.from,null,m):w(f,!1),r=g?y(null,n.to,g):w(p,!0),i=[];return(m||f).to<(g||p).from-(m&&g?1:0)||f.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2c&&r.from=o)break;l>i&&s(Math.max(e,i),null==t&&e<=c,Math.min(l,o),null==n&&l>=u,a.dir)}if(i=r.to+1,i>=o)break}return 0==l.length&&s(c,null==t,u,null==n,e.textDirection),{top:i,bottom:a,horizontal:l}}function w(e,t){let n=l.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function IE(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==ub.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function DE(e,t,n,r){let i=e.coordsAtPos(t,2*n);if(!i)return r;let o=e.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,l=e.posAtCoords({x:o.left+1,y:a}),s=e.posAtCoords({x:o.right-1,y:a});return null==l||null==s?r:{from:Math.max(r.from,Math.min(l,s)),to:Math.min(r.to,Math.max(l,s))}}class jE{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(LE)!=e.state.facet(LE)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(LE);for(;t{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r})){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e,Ov.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const LE=Xm.define();function NE(e){return[$b.define(t=>new jE(t,e)),LE.of(e)]}const BE=Xm.define({combine:e=>jg(e,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function FE(e){return e.startState.facet(BE)!=e.state.facet(BE)}const HE=NE({above:!0,markers(e){let{state:t}=e,n=t.facet(BE),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty||n.drawRangeCursor&&!(o&&Ov.ios&&n.iosSelectionHandles)){let t=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=i.empty?i:$m.cursor(i.head,i.assoc);for(let i of _E.forRange(e,t,n))r.push(i)}}return r},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=FE(e);return n&&zE(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){zE(t.state,e)},class:"cm-cursorLayer"});function zE(e,t){t.style.animationDuration=e.facet(BE).cursorBlinkRate+"ms"}const VE=NE({above:!1,markers(e){let t=[],{main:n,ranges:r}=e.state.selection;for(let n of r)if(!n.empty)for(let r of _E.forRange(e,"cm-selectionBackground",n))t.push(r);if(Ov.ios&&!n.empty&&e.state.facet(BE).iosSelectionHandles){for(let r of _E.forRange(e,"cm-selectionHandle cm-selectionHandle-start",$m.cursor(n.from,1)))t.push(r);for(let r of _E.forRange(e,"cm-selectionHandle cm-selectionHandle-end",$m.cursor(n.to,1)))t.push(r)}return t},update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||FE(e),class:"cm-selectionLayer"}),WE=ag.highest(yE.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),ZE=Rg.define({map:(e,t)=>null==e?null:t.mapPos(e)}),qE=ig.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce((e,t)=>t.is(ZE)?t.value:e,e))}),KE=$b.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(qE);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(qE)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(qE),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(qE)!=e&&this.view.dispatch({effects:ZE.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function UE(e,t,n,r,i){t.lastIndex=0;for(let o,a=e.iterRange(n,r),l=n;!a.next().done;l+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(l+o.index,o)}class $E{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new Vg,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))UE(e.state.doc,this.regexp,t,r,(t,r)=>this.addMatch(r,e,t,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((t,i,o,a)=>{a>=e.view.viewport.from&&o<=e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(a,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>=o){let n=e.state.doc.lineAt(o),r=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){l=o;break}for(;au.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=l-n.from;(c=this.regexp.exec(n.text))&&c.indexthis.addMatch(n,e,t,d));t=t.update({filterFrom:l,filterTo:s,filter:(e,t)=>es,add:u})}}return t}}const GE=null!=/x/.unicode?"gu":"g",YE=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",GE),XE={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let JE=null;const QE=Xm.define({combine(e){let t=jg(e,{render:null,specialChars:YE,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==JE&&"undefined"!=typeof document&&document.body){let t=document.body.style;JE=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return JE||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,GE)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,GE)),t}});let ex=null;class tx extends _v{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"␤":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(XE[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class nx extends _v{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const rx=Dv.line({class:"cm-activeLine"}),ix=$b.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(rx.range(i.from)),t=i.from)}return Dv.set(n)}},{decorations:e=>e.decorations});class ox extends _v{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?Zv(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=Yv(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}const ax=2e3;function lx(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,o=i>ax?-1:i==r.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):Qg(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}const sx={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},cx={style:"cursor: crosshair"},ux="-10000px";class dx{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=n(e,i))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter(e=>e);if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],a=t?[]:null;for(let n=0;nt[n]=e),t.length=a.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function hx(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const fx=Xm.define({combine:e=>{var t,n,r;return{position:Ov.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find(e=>e.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find(e=>e.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||hx}}}),px=new WeakMap,mx=$b.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(fx);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new dx(e,bx,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(fx);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=ux,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(Ov.safari){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}else n=!!e.offsetParent&&e.offsetParent!=this.container.ownerDocument.body}if(n||"absolute"==this.position)if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=oy(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(fx).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let l=0;l=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1)){u.style.top=ux;continue}let f=s.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,m=h.right-h.left,g=null!==(t=px.get(c))&&void 0!==t?t:h.bottom-h.top,v=c.offset||vx,b=this.view.textDirection==ub.LTR,y=h.width>r.right-r.left?b?r.left:r.right-h.width:b?Math.max(r.left,Math.min(d.left-(f?14:0)+v.x,r.right-m)):Math.min(Math.max(r.left,d.left-m+(f?14:0)-v.x),r.right-m),w=this.above[l];!s.strictSide&&(w?d.top-g-p-v.yr.bottom)&&w==r.bottom-d.bottom>d.top-r.top&&(w=this.above[l]=!w);let E=(w?d.top-r.top:r.bottom-d.bottom)-p;if(Ey&&e.topx&&(x=w?e.top-g-2-p:e.bottom+p+2);if("absolute"==this.position?(u.style.top=(x-e.parent.top)/o+"px",gx(u,(y-e.parent.left)/i)):(u.style.top=x/o+"px",gx(u,y/i)),f){let e=d.left+(b?v.x:-v.x)-(y+14-7);f.style.left=e/i+"px"}!0!==c.overlap&&a.push({left:y,top:x,right:R,bottom:x+g}),u.classList.toggle("cm-tooltip-above",w),u.classList.toggle("cm-tooltip-below",!w),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=ux}},{eventObservers:{scroll(){this.maybeMeasure()}}});function gx(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}const vx={x:0,y:0},bx=Xm.define({enables:[mx,yE.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}})]}),yx=Xm.define({combine:e=>e.reduce((e,t)=>e.concat(t),[])});class wx{static create(e){return new wx(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new dx(e,yx,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Ex=bx.compute([yx],e=>{let t=e.facet(yx);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos})),create:wx.create,above:t[0].above,arrow:t.some(e=>e.arrow)}}),xx=Xm.define();class Rx{constructor(e,t,n,r,i,o){this.view=e,this.source=t,this.field=n,this.locked=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(e){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find(e=>e.from<=r&&e.to>=r),a=o&&o.dir==ub.RTL?-1:1;i=t.x{if(t&&(!Array.isArray(t)||t.length)){let n=Array.isArray(t)?t:[t];r&&this.locked.set(n,r),e.dispatch({effects:this.setHover.of(n)})}};if(i&&"then"in i){let n=this.pending={pos:t};i.then(e=>{this.pending==n&&(this.pending=null,o(e))},t=>Zb(e.state,t,"hover tooltip"))}else o(i)}get tooltip(){let e=this.view.plugin(mx),t=e?e.manager.tooltips.findIndex(e=>e.create==wx.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&!this.locked.has(r)&&i&&!function(e,t){let n,{left:r,right:i,top:o,bottom:a}=e.getBoundingClientRect();if(n=e.querySelector(".cm-tooltip-arrow")){let e=n.getBoundingClientRect();o=Math.min(e.top,o),a=Math.max(e.bottom,a)}return t.clientX>=r-4&&t.clientX<=i+4&&t.clientY>=o-4&&t.clientY<=a+4}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,o=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==o?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,r,i){let o=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.righti||Math.min(o.bottom,a)=t&&l<=n}(this.view,i,o,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length&&!this.locked.has(t)){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t);let{active:r}=this;!r.length||this.locked.has(r)||this.view.dom.contains(n.relatedTarget)||this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function kx(e,t={}){let n=Rg.define(),r=new WeakMap,i=ig.define({create:()=>[],update(e,o){let a=r.get(e);if(e.length&&(t.hideOnChange&&(o.docChanged||o.selection)||a&&a(o)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(o,e)))),o.docChanged&&e.length){let t=[];for(let n of e){let e=o.changes.mapPos(n.pos,-1,Bm.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),n);r.pos=e,null!=r.end&&(r.end=o.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of o.effects)t.is(n)&&(e=t.value,a=void 0),(t.is(Ox)&&!t.value||t.value==i)&&(e=[]);return e.length&&a&&r.set(e,a),e},provide:e=>yx.from(e)});const o=$b.define(o=>new Rx(o,e,i,r,n,t.hoverTime||300));return{active:i,extension:[i,o,xx.of(o),Ex]}}function Sx(e,t){let n=e.plugin(mx);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const Ox=Rg.define(),Cx=Xm.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Mx(e,t){let n=e.plugin(Ax),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Ax=$b.fromClass(class{constructor(e){this.input=e.state.facet(Ix),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(Cx);this.top=new Tx(e,!0,t.topContainer),this.bottom=new Tx(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(Cx);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Tx(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Tx(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Ix);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],o=[],a=[];for(let n of t){let t,l=this.specs.indexOf(n);l<0?(t=n(e.view),a.push(t)):(t=this.panels[l],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>yE.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Tx{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Px(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Px(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Px(e){let t=e.nextSibling;return e.remove(),t}const Ix=Xm.define({enables:Ax});const Dx=ig.define({create:()=>[],update(e,t){for(let n of t.effects)n.is(jx)?e=[n.value].concat(e):n.is(Lx)&&(e=e.filter(e=>e!=n.value));return e},provide:e=>Ix.computeN([e],t=>t.field(e))}),jx=Rg.define(),Lx=Rg.define();class Nx extends Lg{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Nx.prototype.elementClass="",Nx.prototype.toDOM=void 0,Nx.prototype.mapMode=Bm.TrackBefore,Nx.prototype.startSide=Nx.prototype.endSide=-1,Nx.prototype.point=!0;const Bx=Xm.define(),Fx=Xm.define(),Hx={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>zg.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},zx=Xm.define();function Vx(e){return[Zx(),zx.of({...Hx,...e})]}const Wx=Xm.define({combine:e=>e.some(e=>e)});function Zx(e){let t=[qx];return e&&!1===e.fixed&&t.push(Wx.of(!0)),t}const qx=$b.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(zx).map(t=>new Gx(e,t)),this.fixed=!e.state.facet(Wx);for(let e of this.gutters)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Wx)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=zg.iter(this.view.state.facet(Bx),this.view.viewport.from),r=[],i=this.gutters.map(e=>new $x(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(e.type)){let t=!0;for(let o of e.type)if(o.type==Iv.Text&&t){Ux(n,r,o.from);for(let e of i)e.line(this.view,o,r);t=!1}else if(o.widget)for(let e of i)e.widget(this.view,o)}else if(e.type==Iv.Text){Ux(n,r,e.from);for(let t of i)t.line(this.view,e,r)}else if(e.widget)for(let t of i)t.widget(this.view,e);for(let e of i)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(zx),n=e.state.facet(zx),r=e.docChanged||e.heightChanged||e.viewportChanged||!zg.eq(e.startState.facet(Bx),e.state.facet(Bx),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new Gx(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>yE.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||0==n.gutters.length||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,i=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==ub.LTR?{left:r,right:i}:{right:r,left:i}})});function Kx(e){return Array.isArray(e)?e:[e]}function Ux(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class $x{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=zg.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new Yx(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Ux(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let n of e.state.facet(Fx)){let i=n(e,t.widget,t);i&&(r||(r=[])).push(i)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Gx{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let a=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()});this.markers=Kx(t.markers(e)),t.initialSpacer&&(this.spacer=new Yx(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Kx(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!zg.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Yx{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;njg(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class eR extends Nx{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function tR(e,t){return e.state.facet(Qx).formatNumber(t,e.state)}const nR=zx.compute([Qx],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Xx),lineMarker:(e,t,n)=>n.some(e=>e.toDOM)?null:new eR(tR(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,n)=>{for(let r of e.state.facet(Jx)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(Qx)!=e.state.facet(Qx),initialSpacer:e=>new eR(tR(e,rR(e.state.doc.lines))),updateSpacer(e,t){let n=tR(t.view,rR(t.view.state.doc.lines));return n==e.number?e:new eR(n)},domEventHandlers:e.facet(Qx).domEventHandlers,side:"before"}));function rR(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(iR.range(i)))}return zg.of(t)}),aR=1024;let lR=0;class sR{constructor(e,t){this.from=e,this.to=t}}class cR{constructor(e={}){this.id=lR++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=hR.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}cR.closedBy=new cR({deserialize:e=>e.split(" ")}),cR.openedBy=new cR({deserialize:e=>e.split(" ")}),cR.group=new cR({deserialize:e=>e.split(" ")}),cR.isolate=new cR({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),cR.contextHash=new cR({perNode:!0}),cR.lookAhead=new cR({perNode:!0}),cR.mounted=new cR({perNode:!0});class uR{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[cR.mounted.id]}}const dR=Object.create(null);class hR{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):dR,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new hR(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(cR.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(cR.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}hR.none=new hR("",Object.create(null),0,8);const fR=new WeakMap,pR=new WeakMap;var mR;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays",e[e.EnterBracketed=16]="EnterBracketed"}(mR||(mR={}));class gR{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=uR.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new AR(this.topNode,e)}cursorAt(e,t=0,n=0){let r=fR.get(this)||this.topNode,i=new AR(r);return i.moveTo(e,t),fR.set(this,i._tree),i}get topNode(){return new xR(this,0,0,null)}resolve(e,t=0){let n=wR(fR.get(this)||this.topNode,e,t,!1);return fR.set(this,n),n}resolveInner(e,t=0){let n=wR(pR.get(this)||this.topNode,e,t,!0);return pR.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof xR?r:r.context.parent;e;e=e.parent)if(e.index<0){let o=e.parent;(i||(i=[r])).push(o.resolve(t,n)),e=o}else{let o=uR.get(e.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new xR(o.tree,o.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(wR(a,t,n,!1))}}return i?CR(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,a=(o&mR.IncludeAnonymous)>0;for(let e=this.cursor(o|mR.IncludeAnonymous);;){let o=!1;if(e.from<=i&&e.to>=r&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:IR(hR.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new gR(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new gR(hR.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=aR,reused:o=[],minRepeatType:a=r.types.length}=e,l=Array.isArray(n)?new vR(n,n.length):n,s=r.types,c=0,u=0;function d(e,t,n,g,v,b){let{id:y,start:w,end:E,size:x}=l,R=u,k=c;if(x<0){if(l.next(),-1==x){let t=o[y];return n.push(t),void g.push(w-e)}if(-3==x)return void(c=y);if(-4==x)return void(u=y);throw new RangeError(`Unrecognized record size: ${x}`)}let S,O,C=s[y],M=w-e;if(E-w<=i&&(O=function(e,t){let n=l.fork(),r=0,o=0,s=0,c=n.end-i,u={size:0,start:0,skip:0};e:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=o,u.skip=s,s+=4,r+=4,n.next();continue}let l=n.pos-e;if(e<0||l=a?4:0,h=n.start;for(n.next();n.pos>l;){if(n.size<0){if(-3!=n.size&&-4!=n.size)break e;d+=4}else n.id>=a&&(d+=4);n.next()}o=h,r+=e,s+=d}return(t<0||r==e)&&(u.size=r,u.start=o,u.skip=s),u.size>4?u:void 0}(l.pos-t,v))){let t=new Uint16Array(O.size-O.skip),n=l.pos-O.size,i=t.length;for(;l.pos>n;)i=m(O.start,t,i);S=new bR(t,E-O.start,r),M=O.start-e}else{let e=l.pos-x;l.next();let t=[],n=[],r=y>=a?y:-1,o=0,s=E;for(;l.pos>e;)r>=0&&l.id==r&&l.size>=0?(l.end<=s-i&&(f(t,n,w,o,l.end,s,r,R,k),o=t.length,s=l.end),l.next()):b>2500?h(w,e,t,n):d(w,e,t,n,r,b+1);if(r>=0&&o>0&&o-1&&o>0){let e=function(e,t){return(n,r,i)=>{let o,a,l=0,s=n.length-1;if(s>=0&&(o=n[s])instanceof gR){if(!s&&o.type==e&&o.length==i)return o;(a=o.prop(cR.lookAhead))&&(l=r[s]+o.length+a)}return p(e,n,r,i,l,t)}}(C,k);S=IR(C,t,n,0,t.length,0,E-w,e,e)}else S=p(C,t,n,E-w,R-E,k)}n.push(S),g.push(M)}function h(e,t,n,o){let a=[],s=0,c=-1;for(;l.pos>t;){let{id:e,start:t,end:n,size:r}=l;if(r>4)l.next();else{if(c>-1&&t=0;e-=3)t[n++]=a[e],t[n++]=a[e+1]-i,t[n++]=a[e+2]-i,t[n++]=n;n.push(new bR(t,a[2]-i,r)),o.push(i-e)}}function f(e,t,n,i,o,a,l,s,c){let u=[],d=[];for(;e.length>i;)u.push(e.pop()),d.push(t.pop()+n-o);e.push(p(r.types[l],u,d,a-o,s-a,c)),t.push(o-n)}function p(e,t,n,r,i,o,a){if(o){let e=[cR.contextHash,o];a=a?[e].concat(a):[e]}if(i>25){let e=[cR.lookAhead,i];a=a?[e].concat(a):[e]}return new gR(e,t,n,r,a)}function m(e,t,n){let{id:r,start:i,end:o,size:s}=l;if(l.next(),s>=0&&r4){let r=l.pos-(s-4);for(;l.pos>r;)n=m(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==s?c=r:-4==s&&(u=r);return n}let g=[],v=[];for(;l.pos>0;)d(e.start||0,e.bufferStart||0,g,v,-1,0);let b=null!==(t=e.length)&&void 0!==t?t:g.length?v[0]+g[0].length:0;return new gR(s[e.topID],g.reverse(),v.reverse(),b)}(e)}}gR.empty=new gR(hR.none,[],[],0);class vR{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new vR(this.buffer,this.index)}}class bR{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return hR.none}toString(){let e=[];for(let t=0;t0));l=o[l+3]);return a}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let a=e,l=0;a=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function wR(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=s;e+=t){let s,c=a[e],u=l[e]+o.from;if(i&mR.EnterBracketed&&c instanceof gR&&(s=uR.get(c))&&!s.overlay&&s.bracketed&&n>=u&&n<=u+c.length||yR(r,n,u,u+c.length))if(c instanceof bR){if(i&mR.ExcludeBuffers)continue;let a=c.findChild(0,c.buffer.length,t,n-u,r);if(a>-1)return new OR(new SR(o,c,e,u),null,a)}else if(i&mR.IncludeAnonymous||!c.type.isAnonymous||TR(c)){let a;if(!(i&mR.IgnoreMounts)&&(a=uR.get(c))&&!a.overlay)return new xR(a.tree,u,e,o);let l=new xR(c,u,e,o);return i&mR.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?c.children.length-1:0,t,n,r,i)}}if(i&mR.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let r;if(!(n&mR.IgnoreOverlays)&&(r=uR.get(this._tree))&&r.overlay){let i=e-this.from,o=n&mR.EnterBracketed&&r.bracketed;for(let{from:e,to:n}of r.overlay)if((t>0||o?e<=i:e=i:n>i))return new xR(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function RR(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function kR(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class SR{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class OR extends ER{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new OR(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&mR.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new OR(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new OR(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new OR(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new gR(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function CR(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;rn.from||i.to0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&mR.IncludeAnonymous||e instanceof bR||!e.type.isAnonymous||TR(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return kR(this._tree,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function TR(e){return e.children.some(e=>e instanceof bR||!e.type.isAnonymous||TR(e))}const PR=new WeakMap;function _R(e,t){if(!e.isAnonymous||t instanceof bR||t.type!=e)return 1;let n=PR.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof gR)){n=1;break}n+=_R(e,r)}PR.set(t,n)}return n}function IR(e,t,n,r,i,o,a,l,s){let c=0;for(let n=r;n=u)break;p+=t}if(c==i+1){if(p>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+l);continue}d.push(n[i])}else{let t=r[c-1]+n[c-1].length-f;d.push(IR(e,n,r,i,c,f,t,null,s))}h.push(f+l-o)}}(t,n,r,i,0),(l||s)(d,h,a)}class DR{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new DR(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let a=0,l=0,s=0;;a++){let c=a=n)for(;o&&o.from=t.from||u<=t.to||s){let e=Math.max(t.from,l)-s,n=Math.min(t.to,u)-s;t=e>=n?null:new DR(e,n,t.tree,t.offset+s,a>0,!!c)}if(t&&r.push(t),o.to>u)break;o=inew sR(e.from,e.to)):[new sR(0,0)]:[new sR(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class LR{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new cR({perNode:!0});let NR=0;class BR{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=NR++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n="string"==typeof e?e:"?";if(e instanceof BR&&(t=e),null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");let r=new BR(n,[],null,[]);if(r.set.push(r),t)for(let e of t.set)r.set.push(e);return r}static defineModifier(e){let t=new HR(e);return e=>e.modified.indexOf(t)>-1?e:HR.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let FR=0;class HR{constructor(e){this.name=e,this.instances=[],this.id=FR++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every((e,t)=>e==i[t]));var r,i});if(n)return n;let r=[],i=new BR(e.name,r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;nt.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(HR.get(t,e));return i}}function zR(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){i=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,l=n[a];if(!l)throw new RangeError("Invalid path: "+e);let s=new WR(r,i,a>0?n.slice(0,a):null);t[l]=s.sort(t[l])}}return VR.add(t)}const VR=new cR({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let o=new WR(i.tags,i.mode,i.context);n?n.next=o:r=o,n=o}return r}});class WR{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function qR(e,t,n,r=0,i=e.length){let o=new KR(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}WR.empty=new WR([],2,null);class KR{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(o)));let s=r,c=function(e){let t=e.type.prop(VR);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||WR.empty,u=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,c.tags);if(u&&(s&&(s+=" "),s+=u,1==c.mode&&(r+=(r?" ":"")+u)),this.startSpan(Math.max(t,a),s),c.opaque)return;let d=e.tree&&e.tree.prop(cR.mounted);if(d&&d.overlay){let o=e.node.enter(d.overlay[0].from+a,1),c=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),u=e.firstChild();for(let h=0,f=a;;h++){let p=h=m)&&e.nextSibling()););if(!p||m>n)break;f=p.to+a,f>t&&(this.highlightRange(o.cursor(),Math.max(t,p.from+a),Math.min(n,f),"",c),this.startSpan(Math.min(n,f),s))}u&&e.parent()}else if(e.firstChild()){d&&(r="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),s)}}while(e.nextSibling());e.parent()}}}const UR=BR.define,$R=UR(),GR=UR(),YR=UR(GR),XR=UR(GR),JR=UR(),QR=UR(JR),ek=UR(JR),tk=UR(),nk=UR(tk),rk=UR(),ik=UR(),ok=UR(),ak=UR(ok),lk=UR(),sk={comment:$R,lineComment:UR($R),blockComment:UR($R),docComment:UR($R),name:GR,variableName:UR(GR),typeName:YR,tagName:UR(YR),propertyName:XR,attributeName:UR(XR),className:UR(GR),labelName:UR(GR),namespace:UR(GR),macroName:UR(GR),literal:JR,string:QR,docString:UR(QR),character:UR(QR),attributeValue:UR(QR),number:ek,integer:UR(ek),float:UR(ek),bool:UR(JR),regexp:UR(JR),escape:UR(JR),color:UR(JR),url:UR(JR),keyword:rk,self:UR(rk),null:UR(rk),atom:UR(rk),unit:UR(rk),modifier:UR(rk),operatorKeyword:UR(rk),controlKeyword:UR(rk),definitionKeyword:UR(rk),moduleKeyword:UR(rk),operator:ik,derefOperator:UR(ik),arithmeticOperator:UR(ik),logicOperator:UR(ik),bitwiseOperator:UR(ik),compareOperator:UR(ik),updateOperator:UR(ik),definitionOperator:UR(ik),typeOperator:UR(ik),controlOperator:UR(ik),punctuation:ok,separator:UR(ok),bracket:ak,angleBracket:UR(ak),squareBracket:UR(ak),paren:UR(ak),brace:UR(ak),content:tk,heading:nk,heading1:UR(nk),heading2:UR(nk),heading3:UR(nk),heading4:UR(nk),heading5:UR(nk),heading6:UR(nk),contentSeparator:UR(tk),list:UR(tk),quote:UR(tk),emphasis:UR(tk),strong:UR(tk),link:UR(tk),monospace:UR(tk),strikethrough:UR(tk),inserted:UR(),deleted:UR(),changed:UR(),invalid:UR(),meta:lk,documentMeta:UR(lk),annotation:UR(lk),processingInstruction:UR(lk),definition:BR.defineModifier("definition"),constant:BR.defineModifier("constant"),function:BR.defineModifier("function"),standard:BR.defineModifier("standard"),local:BR.defineModifier("local"),special:BR.defineModifier("special")};for(let e in sk){let t=sk[e];t instanceof BR&&(t.name=e)}var ck;ZR([{tag:sk.link,class:"tok-link"},{tag:sk.heading,class:"tok-heading"},{tag:sk.emphasis,class:"tok-emphasis"},{tag:sk.strong,class:"tok-strong"},{tag:sk.keyword,class:"tok-keyword"},{tag:sk.atom,class:"tok-atom"},{tag:sk.bool,class:"tok-bool"},{tag:sk.url,class:"tok-url"},{tag:sk.labelName,class:"tok-labelName"},{tag:sk.inserted,class:"tok-inserted"},{tag:sk.deleted,class:"tok-deleted"},{tag:sk.literal,class:"tok-literal"},{tag:sk.string,class:"tok-string"},{tag:sk.number,class:"tok-number"},{tag:[sk.regexp,sk.escape,sk.special(sk.string)],class:"tok-string2"},{tag:sk.variableName,class:"tok-variableName"},{tag:sk.local(sk.variableName),class:"tok-variableName tok-local"},{tag:sk.definition(sk.variableName),class:"tok-variableName tok-definition"},{tag:sk.special(sk.variableName),class:"tok-variableName2"},{tag:sk.definition(sk.propertyName),class:"tok-propertyName tok-definition"},{tag:sk.typeName,class:"tok-typeName"},{tag:sk.namespace,class:"tok-namespace"},{tag:sk.className,class:"tok-className"},{tag:sk.macroName,class:"tok-macroName"},{tag:sk.propertyName,class:"tok-propertyName"},{tag:sk.operator,class:"tok-operator"},{tag:sk.comment,class:"tok-comment"},{tag:sk.meta,class:"tok-meta"},{tag:sk.invalid,class:"tok-invalid"},{tag:sk.punctuation,class:"tok-punctuation"}]);const uk=new cR,dk=new cR;class hk{constructor(e,t,n=[],r=""){this.data=e,this.name=r,Dg.prototype.hasOwnProperty("tree")||Object.defineProperty(Dg.prototype,"tree",{get(){return pk(this)}}),this.parser=t,this.extension=[Rk.of(this),Dg.languageData.of((e,t,n)=>{let r=fk(e,t,n),i=r.type.prop(uk);if(!i)return[];let o=e.facet(i),a=r.type.prop(dk);if(a){let i=r.resolve(t-r.from,n);for(let t of a)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(e,t,n=-1){return fk(e,t,n).type.prop(uk)==this.data}findRegions(e){let t=e.facet(Rk);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(uk)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(cR.mounted);if(i){if(i.tree.prop(uk)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let gk=null;class vk{constructor(e,t,n=[],r,i,o,a,l){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new vk(e,t,[],gR.empty,0,n,[],null)}startParse(){return this.parser.startParse(new mk(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=gR.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(DR.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=gk;gk=this;try{return e()}finally{gk=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=bk(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=DR.applyChanges(n,t),r=gR.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=bk(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends jR{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let t=gk;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new gR(hR.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return gk}}function bk(e,t,n){return DR.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class yk{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new yk(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=vk.create(e.facet(Rk).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new yk(n)}}hk.state=ig.define({create:yk.init,update(e,t){for(let e of t.effects)if(e.is(hk.setState))return e.value;return t.startState.facet(Rk)!=t.state.facet(Rk)?yk.init(t.state):e.apply(t)}});let wk=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(wk=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const Ek="undefined"!=typeof navigator&&(null===(ck=navigator.scheduling)||void 0===ck?void 0:ck.isInputPending)?()=>navigator.scheduling.isInputPending():null,xk=$b.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(hk.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(hk.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=wk(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,l=i.context.work(()=>Ek&&Ek()||Date.now()>o,r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:hk.setState.of(new yk(i.context))})),this.chunkBudget>0&&(!l||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Zb(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Rk=Xm.define({combine:e=>e.length?e[0]:null,enables:e=>[hk.state,xk,yE.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}),kk=Xm.define(),Sk=Xm.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Ok(e){let t=e.facet(Sk);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function Ck(e,t){let n="",r=e.tabSize,i=e.facet(Sk)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let e=0;e=t?function(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.fromr.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return Pk(r,e,n)}(e,n,t):null}class Ak{constructor(e,t={}){this.state=e,this.options=t,this.unit=Ok(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return Qg(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Tk=new cR;function Pk(e,t,n){for(let r=e;r;r=r.next){let e=_k(r.node);if(e)return e(Dk.create(t,n,r))}return 0}function _k(e){let t=e.type.prop(Tk);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(cR.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>function(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,l=r&&o.slice(a,a+r.length)==r||i==e.pos+a,s=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=a)return null;let e=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+e}}e=i.to}}(e):null;return s?l?e.column(s.from):e.column(s.to):e.baseIndent+(l?0:e.unit*n)}(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?Ik:null}function Ik(){return 0}class Dk extends Ak{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new Dk(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(jk(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return Pk(this.context.next,this.base,this.pos)}}function jk(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}const Lk=Xm.define(),Nk=new cR;function Bk(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function Fk(e,t,n){for(let r of e.facet(Lk)){let i=r(e,t,n);if(i)return i}return function(e,t,n){let r=pk(e);if(r.lengthn)continue;if(i&&a.from=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function Hk(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const zk=Rg.define({map:Hk}),Vk=Rg.define({map:Hk});function Wk(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}const Zk=ig.define({create:()=>Dv.none,update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=qk(e,t,n)),e=e.map(t.changes);let n=[];for(let r of t.effects)r.is(zk)&&!Uk(e,r.value.from,r.value.to)?n.push(r.value):r.is(Vk)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(n.length){let{preparePlaceholder:r}=t.state.facet(Jk),i=n.map(e=>(r?Dv.replace({widget:new nS(r(t.state,e))}):tS).range(e.from,e.to));e=e.update({add:i})}return t.selection&&(e=qk(e,t.selection.main.head)),e},provide:e=>yE.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{et&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}function Kk(e,t,n){var r;let i=null;return null===(r=e.field(Zk,!1))||void 0===r||r.between(t,n,(e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})}),i}function Uk(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}function $k(e,t){return e.field(Zk,!1)?t:t.concat(Rg.appendConfig.of(Qk()))}function Gk(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return yE.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const Yk=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of Wk(e)){let n=Fk(e.state,t.from,t.to);if(n)return e.dispatch({effects:$k(e.state,[zk.of(n),Gk(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(Zk,!1))return!1;let t=[];for(let n of Wk(e)){let r=Kk(e.state,n.from,n.to);r&&t.push(Vk.of(r),Gk(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(Zk,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(Vk.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],Xk={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Jk=Xm.define({combine:e=>jg(e,Xk)});function Qk(e){let t=[Zk,oS];return e&&t.push(Jk.of(e)),t}function eS(e,t){let{state:n}=e,r=n.facet(Jk),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=Kk(e.state,n.from,n.to);r&&e.dispatch({effects:Vk.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const tS=Dv.replace({widget:new class extends _v{toDOM(e){return eS(e,null)}}});class nS extends _v{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return eS(e,this.value)}}const rS={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class iS extends Nx{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}const oS=yE.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class aS{constructor(e,t){let n;function r(e){let t=iv.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof hk?e=>e.prop(uk)==o.data:o?e=>e==o:void 0,this.style=ZR(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new iv(n):null,this.themeType=t.themeType}static define(e,t){return new aS(e,t||{})}}const lS=Xm.define(),sS=Xm.define({combine:e=>e.length?[e[0]]:null});function cS(e){let t=e.facet(lS);return t.length?t:e.facet(sS)}function uS(e,t){let n,r=[hS];return e instanceof aS&&(e.module&&r.push(yE.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(sS.of(e)):n?r.push(lS.computeN([yE.darkTheme],t=>t.facet(yE.darkTheme)==("dark"==n)?[e]:[])):r.push(lS.of(e)),r}class dS{constructor(e){this.markCache=Object.create(null),this.tree=pk(e.state),this.decorations=this.buildDeco(e,cS(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=pk(e.state),n=cS(e.state),r=n!=cS(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return Dv.none;let n=new Vg;for(let{from:r,to:i}of e.visibleRanges)qR(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=Dv.mark({class:r})))},r,i);return n.finish()}}const hS=ag.high($b.fromClass(dS,{decorations:e=>e.decorations})),fS=aS.define([{tag:sk.meta,color:"#404740"},{tag:sk.link,textDecoration:"underline"},{tag:sk.heading,textDecoration:"underline",fontWeight:"bold"},{tag:sk.emphasis,fontStyle:"italic"},{tag:sk.strong,fontWeight:"bold"},{tag:sk.strikethrough,textDecoration:"line-through"},{tag:sk.keyword,color:"#708"},{tag:[sk.atom,sk.bool,sk.url,sk.contentSeparator,sk.labelName],color:"#219"},{tag:[sk.literal,sk.inserted],color:"#164"},{tag:[sk.string,sk.deleted],color:"#a11"},{tag:[sk.regexp,sk.escape,sk.special(sk.string)],color:"#e40"},{tag:sk.definition(sk.variableName),color:"#00f"},{tag:sk.local(sk.variableName),color:"#30a"},{tag:[sk.typeName,sk.namespace],color:"#085"},{tag:sk.className,color:"#167"},{tag:[sk.special(sk.variableName),sk.macroName],color:"#256"},{tag:sk.definition(sk.propertyName),color:"#00c"},{tag:sk.comment,color:"#940"},{tag:sk.invalid,color:"#f00"}]),pS=yE.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),mS="()[]{}",gS=Xm.define({combine:e=>jg(e,{afterCursor:!0,brackets:mS,maxScanDistance:1e4,renderMatch:yS})}),vS=Dv.mark({class:"cm-matchingBracket"}),bS=Dv.mark({class:"cm-nonmatchingBracket"});function yS(e){let t=[],n=e.matched?vS:bS;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}function wS(e){let t=[],n=e.facet(gS);for(let r of e.selection.ranges){if(!r.empty)continue;let i=OS(e,r.head,-1,n)||r.head>0&&OS(e,r.head-1,1,n)||n.afterCursor&&(OS(e,r.head,1,n)||r.heade.decorations}),xS=[ES,pS],RS=new cR;function kS(e,t,n){let r=e.prop(t<0?cR.openedBy:cR.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function SS(e){let t=e.type.prop(RS);return t?t(e.node):e}function OS(e,t,n,r={}){let i=r.maxScanDistance||1e4,o=r.brackets||mS,a=pk(e),l=a.resolveInner(t,n);for(let e=l;e;e=e.parent){let r=kS(e.type,n,o);if(r&&e.from0?t>=i.from&&ti.from&&t<=i.to))return CS(0,0,n,e,i,r,o)}}return function(e,t,n,r,i,o,a){if(n<0?!t:t==e.doc.length)return null;let l=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),s=a.indexOf(l);if(s<0||s%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=o;){let o=u.value;n<0&&(e+=o.length);let l=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=a.indexOf(o[e]);if(!(t<0||r.resolveInner(l+e,1).type!=i))if(t%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:l+e,to:l+e+1},matched:t>>1==s>>1};d--}}n>0&&(e+=o.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,l.type,i,o)}function CS(e,t,n,r,i,o,a){let l=r.parent,s={from:i.from,to:i.to},c=0,u=null==l?void 0:l.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(TS.push(e),console.warn(t))}function DS(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||sk[n];r?"function"==typeof r?t.length?t=t.map(r):IS(n,`Modifier ${n} used at start of tag`):t.length?IS(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:IS(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(e=>e.id),o=PS[i];if(o)return o.id;let a=PS[i]=hR.define({id:AS.length,name:r,props:[zR({[r]:n})]});return AS.push(a),a.id}function jS(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}ub.RTL,ub.LTR;const LS=jS(zS,0),NS=jS(HS,0),BS=jS((e,t)=>HS(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function FS(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function HS(e,t,n=t.selection.ranges){let r=n.map(e=>FS(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>function(e,{open:t,close:n},r,i){let o,a,l=e.sliceDoc(r-50,r),s=e.sliceDoc(i,i+50),c=/\s*$/.exec(l)[0].length,u=/^\s*/.exec(s)[0].length,d=l.length-c;if(l.slice(d-t.length,d)==t&&s.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-r<=100?o=a=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+50),a=e.sliceDoc(i-50,i));let h=/^\s*/.exec(o)[0].length,f=/\s*$/.exec(a)[0].length,p=a.length-f-n.length;return o.slice(h,h+t.length)==t&&a.slice(p,p+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(o.charAt(h+t.length))?1:0},close:{pos:i-f-n.length,margin:/\s/.test(a.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t,n=0;ni&&(e==o||o>s.from)){i=s.from;let e=/^\s*/.exec(s.text)[0].length,t=e==s.length,o=s.text.slice(e,e+n.length)==n?e:-1;ee.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:a}of r)!a&&o||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const VS=wg.define(),WS=wg.define(),ZS=Xm.define(),qS=Xm.define({combine:e=>jg(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),KS=ig.define({create:()=>lO.empty,update(e,t){let n=t.state.facet(qS),r=t.annotation(VS);if(r){let i=JS.fromTransaction(t,r.selection),o=r.side,a=0==o?e.undone:e.done;return a=i?QS(a,a.length,n.minDepth,i):nO(a,t.startState.selection),new lO(0==o?r.rest:a,0==o?a:r.rest)}let i=t.annotation(WS);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(kg.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=JS.fromTransaction(t),a=t.annotation(kg.time),l=t.annotation(kg.userEvent);return o?e=e.addChanges(o,a,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new lO(e.done.map(JS.fromJSON),e.undone.map(JS.fromJSON))});function US(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(KS,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const $S=US(0,!1),GS=US(1,!1),YS=US(0,!0),XS=US(1,!0);class JS{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new JS(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new JS(e.changes&&Hm.fromJSON(e.changes),[],e.mapped&&Fm.fromJSON(e.mapped),e.startSelection&&$m.fromJSON(e.startSelection),e.selectionsAfter.map($m.fromJSON))}static fromTransaction(e,t){let n=tO;for(let t of e.startState.facet(ZS)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new JS(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,tO)}static selection(e){return new JS(void 0,tO,void 0,void 0,e)}}function QS(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function eO(e,t){return e.length?t.length?e.concat(t):e:t}const tO=[];function nO(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),QS(e,e.length-1,1e9,n.setSelAfter(r)))}return[JS.selection([t])]}function rO(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function iO(e,t){if(!e.length)return e;let n=e.length,r=tO;for(;n;){let i=oO(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[JS.selection(r)]:tO}function oO(e,t,n){let r=eO(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):tO,n);if(!e.changes)return JS.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new JS(i,Rg.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const aO=/^(input\.type|delete)($|\.)/;class lO{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new lO(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||aO.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t)),t.iterChangedRanges((e,t,i,o)=>{for(let e=0;e=t&&i<=a&&(r=!0)}}),r}(a.changes,e.changes))||"input.type.compose"==n)?QS(o,o.length-1,r.minDepth,new JS(e.changes.compose(a.changes),eO(Rg.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,tO)):QS(o,o.length,r.minDepth,e),new lO(o,tO,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:tO;return i.length>0&&t-this.prevTimee.empty!=a.ranges[t].empty).length)?this:new lO(nO(this.done,e),this.undone,t,n);var o,a}addMapping(e){return new lO(iO(this.done,e),iO(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:VS.of({side:e,rest:rO(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?tO:r.slice(0,r.length-1);return i.mapped&&(n=iO(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:VS.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}lO.empty=new lO(tO,tO);const sO=[{key:"Mod-z",run:$S,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:GS,preventDefault:!0},{linux:"Ctrl-Shift-z",run:GS,preventDefault:!0},{key:"Mod-u",run:YS,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:XS,preventDefault:!0}];function cO(e,t){return $m.create(e.ranges.map(t),e.mainIndex)}function uO(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function dO({state:e,dispatch:t},n){let r=cO(e.selection,n);return!r.eq(e.selection,!0)&&(t(uO(e,r)),!0)}function hO(e,t){return $m.cursor(t?e.to:e.from)}function fO(e,t){return dO(e,n=>n.empty?e.moveByChar(n,t):hO(n,t))}function pO(e){return e.textDirectionAt(e.state.selection.main.head)==ub.LTR}const mO=e=>fO(e,!pO(e)),gO=e=>fO(e,pO(e));function vO(e,t){return dO(e,n=>n.empty?e.moveByGroup(n,t):hO(n,t))}function bO(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function yO(e,t,n){let r,i,o=pk(e).resolveInner(t.head),a=n?cR.closedBy:cR.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;bO(e,t,a)?o=t:r=n?t.to:t.from}return i=o.type.prop(a)&&(r=n?OS(e,o.from,1):OS(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,$m.cursor(i,n?-1:1)}function wO(e,t){return dO(e,n=>{if(!n.empty)return hO(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;const EO=e=>wO(e,!1),xO=e=>wO(e,!0);function RO(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):hO(n,t));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+r.marginTop,s=a.bottom-r.marginBottom;t&&t.top>l&&t.bottomkO(e,!1),OO=e=>kO(e,!0);function CO(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=$m.cursor(r.from+n))}return i}function MO(e,t,n){let r=cO(e.state.selection,e=>{e.undirectional&&e.head>=e.anchor!=t&&(e=$m.range(e.head,e.anchor));let r=n(e);return $m.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(e.state.selection)&&(e.dispatch(uO(e.state,r)),!0)}function AO(e,t){return MO(e,t,n=>e.moveByChar(n,t))}const TO=e=>AO(e,!pO(e)),PO=e=>AO(e,pO(e));function _O(e,t){return MO(e,t,n=>e.moveByGroup(n,t))}function IO(e,t){return MO(e,t,n=>e.moveVertically(n,t))}const DO=e=>IO(e,!1),jO=e=>IO(e,!0);function LO(e,t){return MO(e,t,n=>e.moveVertically(n,t,RO(e).height))}const NO=e=>LO(e,!1),BO=e=>LO(e,!0),FO=({state:e,dispatch:t})=>(t(uO(e,{anchor:0})),!0),HO=({state:e,dispatch:t})=>(t(uO(e,{anchor:e.doc.length})),!0),zO=({state:e,dispatch:t})=>(t(uO(e,{anchor:e.selection.main.anchor,head:0})),!0),VO=({state:e,dispatch:t})=>(t(uO(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function WO(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let o=n.doc.lineAt(r.head);if(t?o.to0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.heado.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(uO(n,$m.create(i,i.length-1))),!0)}function ZO(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:o}=r;if(i==o){let a=t(r);ai&&(n="delete.forward",a=qO(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=qO(e,i,!1),o=qO(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:$m.cursor(i,it(e)))r.between(t,t,(e,r)=>{et&&(t=n?r:e)});return t}const KO=(e,t,n)=>ZO(e,r=>{let i,o,a=r.from,{state:l}=e,s=l.doc.lineAt(a);if(n&&!t&&a>s.from&&aKO(e,!1,!0),$O=e=>KO(e,!0,!1),GO=(e,t)=>ZO(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=Im(o.text,r-o.from,t)+o.from,s=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(s);if(null!=e&&c!=e)break;" "==s&&r==n.head||(e=c),r=l}return r}),YO=e=>GO(e,!1);function XO(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function JO(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of XO(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n){r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)i.push($m.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)i.push($m.range(e.anchor-a,e.head-a))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:$m.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function QO(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of XO(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const eC=tC(!1);function tC(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=pk(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(cR.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let l=new Ak(t,{simulateBreak:r,simulateDoubleBreak:!!a}),s=Mk(l,r);for(null==s&&(s=Qg(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));io.from&&r{let i=[];for(let o=r.from;o<=r.to;){let a=e.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}let o=e.changes(i);return{changes:i,range:$m.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const rC=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(nC(e,(t,n)=>{n.push({from:t.from,insert:e.facet(Sk)})}),{userEvent:"input.indent"})),!0),iC=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(nC(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=Qg(r,e.tabSize),o=0,a=Ck(e,Math.max(0,i-Ok(e)));for(;odO(e,t=>$m.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>MO(e,!1,t=>$m.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>dO(e,t=>$m.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>MO(e,!0,t=>$m.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:$O},{key:"Ctrl-h",run:UO},{key:"Ctrl-k",run:e=>ZO(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:Rm.of(["",""])},range:$m.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:Im(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:Im(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:$m.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:OO}],aC=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>dO(e,t=>yO(e.state,t,!pO(e))),shift:e=>{let t=!pO(e);return MO(e,t,n=>yO(e.state,n,t))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>dO(e,t=>yO(e.state,t,pO(e))),shift:e=>{let t=pO(e);return MO(e,t,n=>yO(e.state,n,t))}},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>JO(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>QO(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>JO(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>QO(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>WO(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>WO(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=$m.create([n.main]):n.main.empty||(r=$m.create([$m.cursor(n.main.head)])),!!r&&(t(uO(e,r)),!0)}},{key:"Mod-Enter",run:tC(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=XO(e).map(({from:t,to:n})=>$m.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:$m.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=cO(e.selection,t=>{let n=pk(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return $m.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t(uO(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:iC},{key:"Mod-]",run:rC},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Ak(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=nC(e,(t,i,o)=>{let a=Mk(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let l=/^\s*/.exec(t.text)[0],s=Ck(e,a);(l!=s||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(XO(t).map(({from:e,to:n})=>(e>0?e--:n{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let r=!1,i=cO(e.selection,t=>{let i=OS(e,t.head,-1)||OS(e,t.head,1)||t.head>0&&OS(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=FS(e.state,n.from);return r.line?LS(e):!!r.block&&BS(e)}},{key:"Alt-A",run:NS},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:mO,shift:TO,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>vO(e,!pO(e)),shift:e=>_O(e,!pO(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>dO(e,t=>CO(e,t,!pO(e))),shift:e=>{let t=!pO(e);return MO(e,t,n=>CO(e,n,t))},preventDefault:!0},{key:"ArrowRight",run:gO,shift:PO,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>vO(e,pO(e)),shift:e=>_O(e,pO(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>dO(e,t=>CO(e,t,pO(e))),shift:e=>{let t=pO(e);return MO(e,t,n=>CO(e,n,t))},preventDefault:!0},{key:"ArrowUp",run:EO,shift:DO,preventDefault:!0},{mac:"Cmd-ArrowUp",run:FO,shift:zO},{mac:"Ctrl-ArrowUp",run:SO,shift:NO},{key:"ArrowDown",run:xO,shift:jO,preventDefault:!0},{mac:"Cmd-ArrowDown",run:HO,shift:VO},{mac:"Ctrl-ArrowDown",run:OO,shift:BO},{key:"PageUp",run:SO,shift:NO},{key:"PageDown",run:OO,shift:BO},{key:"Home",run:e=>dO(e,t=>CO(e,t,!1)),shift:e=>MO(e,!1,t=>CO(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:FO,shift:zO},{key:"End",run:e=>dO(e,t=>CO(e,t,!0)),shift:e=>MO(e,!0,t=>CO(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:HO,shift:VO},{key:"Enter",run:eC,shift:eC},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:UO,shift:UO,preventDefault:!0},{key:"Delete",run:$O,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:YO,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>GO(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>ZO(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>ZO(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift})))),lC={key:"Tab",run:rC,shift:iC},sC="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class cC{constructor(e,t,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(sC(e)):sC,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Dm(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=jm(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Lm(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,o=!0;;e++){let n=r.charCodeAt(e),a=this.match(n,i,o,this.bufferPos+this.bufferStart,e==r.length-1);if(a)return this.value=a,this;if(e==r.length-1)break;o&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=gC(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new pC(t,e.sliceString(t,n));return fC.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=gC(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pC.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function gC(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}"undefined"!=typeof Symbol&&(hC.prototype[Symbol.iterator]=mC.prototype[Symbol.iterator]=function(){return this});const vC={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},bC=Xm.define({combine:e=>jg(e,vC,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),yC=Dv.mark({class:"cm-selectionMatch"}),wC=Dv.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function EC(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==Pg.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==Pg.Word)}const xC=$b.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(bC),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Dv.none;let i,o=r.main,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return Dv.none;let e=n.wordAt(o.head);if(!e)return Dv.none;a=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return Dv.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),a=n.charCategorizer(o.head),!EC(a,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==Pg.Word&&e(t.sliceDoc(r-1,r))==Pg.Word}(a,n,o.from,o.to))return Dv.none}else if(i=n.sliceDoc(o.from,o.to),!i)return Dv.none}let l=[];for(let r of e.visibleRanges){let e=new cC(n.doc,i,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!a||EC(a,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?l.push(wC.range(r,i)):(r>=o.to||i<=o.from)&&l.push(yC.range(r,i)),l.length>t.maxMatches))return Dv.none}}return Dv.set(l)}},{decorations:e=>e.decorations}),RC=yE.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),kC=Xm.define({combine:e=>jg(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new QC(e),scrollToMatch:e=>yE.scrollIntoView(e)})});class SC{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,dC),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new _C(this):new MC(this)}getCursor(e,t=0,n){let r=e.doc?e:Dg.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?AC(this,r,t,n):CC(this,r,t,n)}}class OC{constructor(e){this.spec=e}}function CC(e,t,n,r){let i;return e.wholeWord&&(i=function(e,t){return(n,r,i,o)=>((o>n||o+i.length{if(n&&!n(r,i,o,a))return!1;let l=r>=a&&i<=a+o.length?o.slice(r-a,i-a):t.doc.sliceString(r,i);return e(l,t,r,i)}}(e.test,t,i)),new cC(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}class MC extends OC{constructor(e){super(e)}nextMatch(e,t,n){let r=CC(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=CC(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=CC(this.spec,e,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),!r||r.from==t&&r.to==n?null:r}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=CC(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=CC(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function AC(e,t,n,r){let i;var o;return e.wholeWord&&(o=t.charCategorizer(t.selection.main.head),i=(e,t,n)=>!n[0].length||(o(TC(n.input,n.index))!=Pg.Word||o(PC(n.input,n.index))!=Pg.Word)&&(o(PC(n.input,n.index+n[0].length))!=Pg.Word||o(TC(n.input,n.index+n[0].length))!=Pg.Word)),e.test&&(i=function(e,t,n){return(r,i,o)=>(!n||n(r,i,o))&&e(o[0],t,r,i)}(e.test,t,i)),new hC(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function TC(e,t){return e.slice(Im(e,t,!1),t)}function PC(e,t){return e.slice(t,Im(e,t))}class _C extends OC{nextMatch(e,t,n){let r=AC(this.spec,e,n,e.doc.length).next();return r.done&&(r=AC(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=AC(this.spec,e,i,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=AC(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const IC=Rg.define(),DC=Rg.define(),jC=ig.define({create:e=>new LC(UC(e).create(),null),update(e,t){for(let n of t.effects)n.is(IC)?e=new LC(n.value.create(),e.panel):n.is(DC)&&(e=new LC(e.query,n.value?KC:null));return e},provide:e=>Ix.from(e,e=>e.panel)});class LC{constructor(e,t){this.query=e,this.panel=t}}const NC=Dv.mark({class:"cm-searchMatch"}),BC=Dv.mark({class:"cm-searchMatch cm-searchMatch-selected"}),FC=$b.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(jC))}update(e){let t=e.state.field(jC);(t!=e.startState.field(jC)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Dv.none;let{view:n}=this,r=new Vg;for(let t=0,i=n.visibleRanges,o=i.length;ti[t+1].from-500;)l=i[++t].to;e.highlight(n.state,a,l,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?BC:NC)})}return r.finish()}},{decorations:e=>e.decorations});function HC(e){return t=>{let n=t.state.field(jC,!1);return n&&n.query.spec.valid?e(t,n):YC(t)}}const zC=HC((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=$m.single(r.from,r.to),o=e.state.facet(kC);return e.dispatch({selection:i,effects:[nM(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),GC(e),!0}),VC=HC((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=$m.single(i.from,i.to),a=e.state.facet(kC);return e.dispatch({selection:o,effects:[nM(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),GC(e),!0}),WC=HC((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:$m.create(n.map(e=>$m.range(e.from,e.to))),userEvent:"select.search.matches"}),0))}),ZC=HC((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a,l,s=o,c=[],u=[];s.precise?s.from==r&&s.to==i&&(l=n.toText(t.getReplacement(s)),c.push({from:s.from,to:s.to,insert:l}),s=t.nextMatch(n,s.from,s.to),u.push(yE.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))):s=t.nextMatch(n,s.from,s.to);let d=e.state.changes(c);return s&&(a=$m.single(s.from,s.to).map(d),u.push(nM(e,s)),u.push(n.facet(kC).scrollToMatch(a.main,e))),e.dispatch({changes:d,selection:a,effects:u,userEvent:"input.replace"}),!0}),qC=HC((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:o}=r;o&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:yE.announce.of(r),userEvent:"input.replace.all"}),!0});function KC(e){return e.state.facet(kC).createPanel(e)}function UC(e,t){var n,r,i,o,a;let l=e.selection.main,s=l.empty||l.to>l.from+100?"":e.sliceDoc(l.from,l.to);if(t&&!s)return t;let c=e.facet(kC);return new SC({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?s:s.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:c.literal,regexp:null!==(o=null==t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:c.wholeWord})}function $C(e){let t=Mx(e,KC);return t&&t.dom.querySelector("[main-field]")}function GC(e){let t=$C(e);t&&t==e.root.activeElement&&t.select()}const YC=e=>{let t=e.state.field(jC,!1);if(t&&t.panel){let n=$C(e);if(n&&n!=e.root.activeElement){let r=UC(e.state,t.query.spec);r.valid&&e.dispatch({effects:IC.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[DC.of(!0),t?IC.of(UC(e.state,t.query.spec)):Rg.appendConfig.of(iM)]});return!0},XC=e=>{let t=e.state.field(jC,!1);if(!t||!t.panel)return!1;let n=Mx(e,KC);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:DC.of(!1)}),!0},JC=[{key:"Mod-f",run:YC,scope:"editor search-panel"},{key:"F3",run:zC,shift:VC,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:zC,shift:VC,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:XC,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let t=new cC(e.doc,e.sliceDoc(r,i));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(a=o.length),o.push($m.range(t.value.from,t.value.to))}return t(e.update({selection:$m.create(o,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:i}=function(e,t){let n,r=new Promise(e=>n=e),i=e=>function(e,t,n){let r=t.content?t.content(e,()=>a(null)):null;if(!r){if(r=fv("form"),t.input){let e=fv("input",t.input);/^(text|password|number|email|tel|url)$/.test(e.type)&&e.classList.add("cm-textfield"),e.name||(e.name="input"),r.appendChild(fv("label",(t.label||"")+": ",e))}else r.appendChild(document.createTextNode(t.label||""));r.appendChild(document.createTextNode(" ")),r.appendChild(fv("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let i="FORM"==r.nodeName?[r]:r.querySelectorAll("form");for(let e=0;e{27==e.keyCode?(e.preventDefault(),a(null)):13==e.keyCode&&(e.preventDefault(),a(t))}),t.addEventListener("submit",e=>{e.preventDefault(),a(t)})}let o=fv("div",r,fv("button",{onclick:()=>a(null),"aria-label":e.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));function a(t){o.contains(o.ownerDocument.activeElement)&&e.focus(),n(t)}return t.class&&(o.className=t.class),o.classList.add("cm-dialog"),{dom:o,top:t.top,mount:()=>{if(t.focus){let e;e="string"==typeof t.focus?r.querySelector(t.focus):r.querySelector("input")||r.querySelector("button"),e&&"select"in e?e.select():e&&"focus"in e&&e.focus()}}}}(e,t,n);e.state.field(Dx,!1)?e.dispatch({effects:jx.of(i)}):e.dispatch({effects:Rg.appendConfig.of(Dx.init(()=>[i]))});let o=Lx.of(i);return{close:o,result:r.then(t=>((e.win.queueMicrotask||(t=>e.win.setTimeout(t,10)))(()=>{e.state.field(Dx).indexOf(i)>-1&&e.dispatch({effects:o})}),t))}}(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return i.then(n=>{let i=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!i)return void e.dispatch({effects:r});let o=t.doc.lineAt(t.selection.main.head),[,a,l,s,c]=i,u=s?+s.slice(1):0,d=l?+l:o.number;if(l&&c){let e=d/100;a&&(e=e*("-"==a?-1:1)+o.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else l&&a&&(d=d*("-"==a?-1:1)+o.number);let h=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),f=$m.cursor(h.from+Math.max(0,Math.min(u,h.length)));e.dispatch({effects:[r,yE.scrollIntoView(f.from,{y:"center"})],selection:f})}),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=$m.create(n.ranges.map(t=>e.wordAt(t.head)||$m.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new cC(e.doc,t,r[r.length-1].to);;){if(i.next(),!i.done){if(n&&r.some(e=>e.from==i.value.from))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(n)return null;i=new cC(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}}(e,r);return!!i&&(t(e.update({selection:e.selection.addRange($m.range(i.from,i.to),!1),effects:yE.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class QC{constructor(e){this.view=e;let t=this.query=e.state.field(jC).query.spec;function n(e,t,n){return fv("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=fv("input",{value:t.search,placeholder:eM(e,"Find"),"aria-label":eM(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=fv("input",{value:t.replace,placeholder:eM(e,"Replace"),"aria-label":eM(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=fv("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=fv("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=fv("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=fv("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>zC(e),[eM(e,"next")]),n("prev",()=>VC(e),[eM(e,"previous")]),n("select",()=>WC(e),[eM(e,"all")]),fv("label",null,[this.caseField,eM(e,"match case")]),fv("label",null,[this.reField,eM(e,"regexp")]),fv("label",null,[this.wordField,eM(e,"by word")]),...e.state.readOnly?[]:[fv("br"),this.replaceField,n("replace",()=>ZC(e),[eM(e,"replace")]),n("replaceAll",()=>qC(e),[eM(e,"replace all")])],fv("button",{name:"close",onclick:()=>XC(e),"aria-label":eM(e,"close"),type:"button"},["×"])])}commit(){let e=new SC({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:IC.of(e)}))}keydown(e){var t,n;t=this.view,n=e,PE(ME(t.state),n,t,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?VC:zC)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),ZC(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(IC)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(kC).top}}function eM(e,t){return e.state.phrase(t)}const tM=/[\s\.,:;?!]/;function nM(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-30),a=Math.min(i,n+30),l=e.state.sliceDoc(o,a);if(o!=r.from)for(let e=0;e<30;e++)if(!tM.test(l[e+1])&&tM.test(l[e])){l=l.slice(e);break}if(a!=i)for(let e=l.length-1;e>l.length-30;e--)if(!tM.test(l[e-1])&&tM.test(l[e])){l=l.slice(0,e);break}return yE.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${r.number}.`)}const rM=yE.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),iM=[jC,ag.low(FC),rM];class oM{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=pk(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(cM(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function aM(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class lM{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function sM(e){return e.selection.main.from}function cM(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const uM=wg.define();function dM(e,t,n,r){let{main:i}=e.selection,o=n-i.from,a=r-i.from;return{...e.changeByRange(l=>{if(l!=i&&n!=r&&e.sliceDoc(l.from+o,l.from+a)!=e.sliceDoc(n,r))return{range:l};let s=e.toText(t);return{changes:{from:l.from+o,to:r==i.from?l.to:l.from+a,insert:s},range:$m.cursor(l.from+o+s.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const hM=new WeakMap;function fM(e){if(!Array.isArray(e))return e;let t=hM.get(e);return t||hM.set(e,t=function(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}(e)),t}const pM=Rg.define(),mM=Rg.define();class gM{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&s<=57||s>=97&&s<=122?2:s>=65&&s<=90?1:0:(b=jm(s))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!r||1==y&&m||0==v&&0!=y)&&(t[u]==s||n[u]==s&&(d=!0)?o[u++]=r:o.length&&(g=!1)),v=y,r+=Lm(s)}return u==l&&0==o[0]&&g?this.result((d?-200:0)-100,o,e):h==l&&0==f?this.ret(-200-e.length+(p==e.length?0:-100),[0,p]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):h==l?this.ret(-900-e.length,[f,p]):u==l?this.result((d?-200:0)-100-700+(g?0:-1100),o,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?Lm(Dm(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return this.ret(e-n.length,r)}}class vM{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.lengthjg(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:wM,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>yM(e(n),t(n)),optionClass:(e,t)=>n=>yM(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function yM(e,t){return e?t?e+" "+t:e:t}function wM(e,t,n,r,i,o){let a,l,s=e.textDirection==ub.RTL,c=s,u=!1,d="top",h=t.left-i.left,f=i.right-t.right,p=r.right-r.left,m=r.bottom-r.top;if(c&&h=m||e>t.top?a=n.bottom-t.top:(d="bottom",a=t.bottom-n.top)}return{style:`${d}: ${a/((t.bottom-t.top)/o.offsetHeight)}px; max-width: ${l/((t.right-t.left)/o.offsetWidth)}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":c?"left":"right")}}const EM=Rg.define();function xM(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}class RM{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,a=e.state.facet(bM);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,a=0;for(let e=0;ea&&i.appendChild(document.createTextNode(o.slice(a,t)));let l=i.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(o.slice(t,n))),l.className="cm-completionMatchedText",a=n}return ae.position-t.position).map(e=>e.render)}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=xM(i.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:r}=e.state.field(t).open;for(let t,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;null!=t&&(e.dispatch({effects:EM.of(t)}),n.preventDefault())}}),this.dom.addEventListener("focusout",t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(bM).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:mM.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:o,disabled:a}=n.open;r.open&&r.open.options==i||(this.range=xM(i.length,o,e.state.facet(bM).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),a!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected=this.range.to)&&(this.range=xM(t.options.length,t.selected,this.view.state.facet(bM).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let o="string"==typeof i?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>Zb(this.view.state,e,"completion info")):(this.addInfoPane(o,r),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&(n.removeAttribute("aria-selected"),n.removeAttribute("aria-describedby")):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom{e.target==r&&e.preventDefault()});let i=null;for(let o=n.from;on.from||0==n.from)&&(i=e,"string"!=typeof s&&s.header?r.appendChild(s.header(s)):r.appendChild(document.createElement("completion-section")).textContent=e)}const c=r.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(a);u&&(c.className=u);for(let e of this.optionContent){let t=e(a,this.view.state,this.view,l);t&&c.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew RM(n,e,t)}function SM(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class OM{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new OM(this.options,TM(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i,o){if(r&&!o&&e.some(e=>e.isPending))return r.setDisabled();let a=function(e,t){let n=[],r=null,i=null,o=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some(t=>t.name==e)||r.push("string"==typeof t?{name:e}:t)}},a=t.facet(bM);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(!1===r.result.filter)for(let t of r.result.options)o(new lM(t,r.source,e?e(t):[],1e9-n.length));else{let n,l=t.sliceDoc(r.from,r.to),s=a.filterStrict?new vM(l):new gM(l);for(let t of r.result.options)if(n=s.match(t.label)){let a=t.displayLabel?e?e(t,n.matched):[]:n.matched,l=n.score+(t.boost||0);if(o(new lM(t,r.source,a,l)),"object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;i||(i=Object.create(null)),i[e]=Math.max(l,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,o=(e,t)=>("dynamic"===e.rank&&"dynamic"===t.rank?i[t.name]-i[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.namet.score-e.score||c(e.completion,t.completion))){let t=e.completion;!s||s.label!=t.label||s.detail!=t.detail||null!=s.type&&null!=t.type&&s.type!=t.type||s.apply!=t.apply||s.boost!=t.boost?l.push(e):SM(e.completion)>SM(s)&&(l[l.length-1]=e),s=e.completion}return l}(e,t);if(!a.length)return r&&e.some(e=>e.isPending)?r.setDisabled():null;let l=t.facet(bM).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:BM,above:i.aboveCursor},r?r.timestamp:Date.now(),l,!1)}map(e){return new OM(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new OM(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class CM{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new CM(PM,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(bM),r=(n.override||t.languageDataAt("autocomplete",sM(t)).map(fM)).map(t=>(this.active.find(e=>e.source==t)||new IM(t,this.active.some(e=>0!=e.state)?1:0)).update(e,n));r.length==this.active.length&&r.every((e,t)=>e==this.active[t])&&(r=this.active);let i=this.open,o=e.effects.some(e=>e.is(jM));i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;ne.isPending)&&(i=null),!i&&r.every(e=>!e.isPending)&&r.some(e=>e.hasResult())&&(r=r.map(e=>e.hasResult()?new IM(e.source,0):e));for(let t of e.effects)t.is(EM)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new CM(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?MM:AM}}const MM={"aria-autocomplete":"list"},AM={};function TM(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const PM=[];function _M(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(uM);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class IM{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let n=_M(e,t),r=this;(8&n||16&n&&this.touches(e))&&(r=new IM(r.source,0)),4&n&&0==r.state&&(r=new IM(this.source,1)),r=r.updateFor(e,n);for(let t of e.effects)if(t.is(pM))r=new IM(r.source,1,t.value);else if(t.is(mM))r=new IM(r.source,0);else if(t.is(jM))for(let e of t.value)e.source==r.source&&(r=e);return r}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(sM(e.state))}}class DM extends IM{constructor(e,t,n,r,i,o){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,t){var n;if(!(3&t))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=sM(e.state);if(a>o||!r||2&t&&(sM(e.startState)==this.from||ae.map(e=>e.map(t))}),LM=ig.define({create:()=>CM.start(),update:(e,t)=>e.update(t),provide:e=>[bx.from(e,e=>e.tooltip),yE.contentAttributes.from(e,e=>e.attrs)]});function NM(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(LM).active.find(e=>e.source==t.source);return r instanceof DM&&("string"==typeof n?e.dispatch({...dM(e.state,n,r.from,r.to),annotations:uM.of(t.completion)}):n(e,t.completion,r.from,r.to),!0)}const BM=kM(LM,NM);function FM(e,t="option"){return n=>{let r=n.state.field(LM,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+o*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),n.dispatch({effects:EM.of(l)}),!0}}const HM=e=>!!e.state.field(LM,!1)&&(e.dispatch({effects:pM.of(!0)}),!0);class zM{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const VM=$b.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(LM).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(LM),n=e.state.facet(bM);if(!e.selectionSet&&!e.docChanged&&e.startState.field(LM)==t)return;let r=e.transactions.some(e=>{let t=_M(e,n);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){Zb(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(pM)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(LM);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(bM).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=sM(t),r=new oM(t,n,e.explicit,this.view),i=new zM(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(e=>{i.context.aborted||(i.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:mM.of(null)}),Zb(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(bM).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(bM),r=this.view.state.field(LM);for(let i=0;ie.source==o.active.source);if(a&&a.isPending)if(null==o.done){let e=new IM(o.active.source,0);for(let t of o.updates)e=e.update(t,n);e.isPending||t.push(e)}else this.startQuery(a)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:jM.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(LM,!1);if(t&&t.tooltip&&this.view.state.facet(bM).closeOnBlur){let n=t.open&&Sx(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:mM.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:pM.of(!1)}),20),this.composing=0}}}),WM="object"==typeof navigator&&/Win/.test(navigator.platform),ZM=ag.highest(yE.domEventHandlers({keydown(e,t){let n=t.state.field(LM,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!WM||!e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(e.key)>-1&&NM(t,r),!1}})),qM=yE.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),KM={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},UM=Rg.define({map(e,t){let n=t.mapPos(e,-1,Bm.TrackAfter);return null==n?void 0:n}}),$M=new class extends Lg{};$M.startSide=1,$M.endSide=-1;const GM=ig.define({create:()=>zg.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(UM)&&(e=e.update({add:[$M.range(n.value,n.value+1)]}));return e}}),YM="()[]{}<>«»»«[]{}";function XM(e){for(let t=0;t<16;t+=2)if(YM.charCodeAt(t)==e)return YM.charAt(t+1);return jm(e<128?e:e+1)}function JM(e,t){return e.languageDataAt("closeBrackets",t)[0]||KM}const QM="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),eA=yE.inputHandler.of((e,t,n,r)=>{if((QM?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||2==r.length&&1==Lm(Dm(r,0))||t!=i.from||n!=i.to)return!1;let o=function(e,t){let n=JM(e,e.selection.main.head),r=n.brackets||KM.brackets;for(let i of r){let o=XM(Dm(i,0));if(t==i)return o==i?aA(e,i,r.indexOf(i+i+i)>-1,n):iA(e,i,o,n.before||KM.before);if(t==o&&nA(e,e.selection.main.from))return oA(e,0,o)}return null}(e.state,r);return!!o&&(e.dispatch(o),!0)}),tA=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=JM(e,e.selection.main.head).brackets||KM.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t);return Lm(Dm(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let i of n)if(i==r&&rA(e.doc,t.head)==XM(Dm(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:$m.cursor(t.head-i.length)}}return{range:r=t}});return r||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function nA(e,t){let n=!1;return e.field(GM).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function rA(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Lm(Dm(n,0)))}function iA(e,t,n,r){let i=null,o=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:UM.of(o.to+t.length),range:$m.range(o.anchor+t.length,o.head+t.length)};let a=rA(e.doc,o.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:o.head},effects:UM.of(o.head+t.length),range:$m.cursor(o.head+t.length)}:{range:i=o}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function oA(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&rA(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:$m.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function aA(e,t,n,r){let i=r.stringPrefixes||KM.stringPrefixes,o=null,a=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:UM.of(r.to+t.length),range:$m.range(r.anchor+t.length,r.head+t.length)};let a,l=r.head,s=rA(e.doc,l);if(s==t){if(lA(e,l))return{changes:{insert:t+t,from:l},effects:UM.of(l+t.length),range:$m.cursor(l+t.length)};if(nA(e,l)){let r=n&&e.sliceDoc(l,l+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+r.length,insert:r},range:$m.cursor(l+r.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(a=sA(e,l-2*t.length,i))>-1&&lA(e,a))return{changes:{insert:t+t+t+t,from:l},effects:UM.of(l+t.length),range:$m.cursor(l+t.length)};if(e.charCategorizer(l)(s)!=Pg.Word&&sA(e,l,i)>-1&&!function(e,t,n,r){let i=pk(e).resolveInner(t,-1),o=r.reduce((e,t)=>Math.max(e,t.length),0);for(let a=0;a<5;a++){let a=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=a.indexOf(n);if(!l||l>-1&&r.indexOf(a.slice(0,l))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+l;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let s=i.to==t&&i.parent;if(!s)break;i=s}return!1}(e,l,t,i))return{changes:{insert:t+t,from:l},effects:UM.of(l+t.length),range:$m.cursor(l+t.length)}}return{range:o=r}});return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function lA(e,t){let n=pk(e).resolveInner(t+1);return n.parent&&n.from==t}function sA(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Pg.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=Pg.Word)return n}return-1}const cA=[{key:"Ctrl-Space",run:HM},{mac:"Alt-`",run:HM},{mac:"Alt-i",run:HM},{key:"Escape",run:e=>{let t=e.state.field(LM,!1);return!(!t||!t.active.some(e=>0!=e.state)||(e.dispatch({effects:mM.of(null)}),0))}},{key:"ArrowDown",run:FM(!0)},{key:"ArrowUp",run:FM(!1)},{key:"PageDown",run:FM(!0,"page")},{key:"PageUp",run:FM(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(LM,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(bM).defaultKeymap?[cA]:[]));class dA{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class hA{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=n.facet(RA).markerFilter;r&&(e=r(e,n));let i=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new Vg,a=[],l=0,s=n.doc.iter(),c=0,u=n.doc.length;for(let e=0;;){let t,n,r=e==i.length?null:i[e];if(!r&&!a.length)break;if(a.length)t=l,n=a.reduce((e,t)=>Math.min(e,t.to),r&&r.from>t?r.from:1e8);else{if(t=r.from,t>u)break;n=r.to,a.push(r),e++}for(;er.from||r.to==t)){n=Math.min(r.from,n);break}a.push(r),e++,n=Math.min(r.to,n)}n=Math.min(n,u);let d=!1;if(a.some(e=>e.from==t&&(e.to==n||n==u))&&(d=t==n,!d&&n-t<10)){let e=t-(c+s.value.length);e>0&&(s.next(e),c=t);for(let e=t;;){if(e>=n){d=!0;break}if(!s.lineBreak&&c+s.value.length>e)break;e=c+s.value.length,c+=s.value.length,s.next()}}let h=IA(a);if(d)o.add(t,t,Dv.widget({widget:new CA(h),diagnostics:a.slice()}));else{let e=a.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");o.add(t,n,Dv.mark({class:"cm-lintRange cm-lintRange-"+h+e,diagnostics:a.slice(),inclusiveEnd:a.some(e=>e.to>n)}))}if(l=n,l==u)break;for(let e=0;e{if(!(t&&i.diagnostics.indexOf(t)<0))if(r){if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new dA(r.from,n,r.diagnostic)}else r=new dA(e,n,t||i.diagnostics[0])}),r}const pA=Rg.define(),mA=Rg.define(),gA=Rg.define(),vA=ig.define({create:()=>new hA(Dv.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=fA(n,e.selected.diagnostic,i)||fA(n,null,i)}!n.size&&i&&t.state.facet(RA).autoPanel&&(i=null),e=new hA(n,i,r)}for(let n of t.effects)if(n.is(pA)){let r=t.state.facet(RA).autoPanel?n.value.length?AA.open:null:e.panel;e=hA.init(n.value,r,t.state)}else n.is(mA)?e=new hA(e.diagnostics,n.value?AA.open:null,e.selected):n.is(gA)&&(e=new hA(e.diagnostics,e.panel,n.value));return e},provide:e=>[Ix.from(e,e=>e.panel),yE.decorations.from(e,e=>e.diagnostics)]}),bA=Dv.mark({class:"cm-lintRange cm-lintRange-active"});function yA(e,t,n){let r,{diagnostics:i}=e.state.field(vA),o=-1,a=-1;i.between(t-(n<0?1:0),t+(n>0?1:0),(e,i,{spec:l})=>{if(t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t({dom:wA(e,r)})}:null}function wA(e,t){return fv("ul",{class:"cm-tooltip-lint"},t.map(t=>OA(e,t,!1)))}const EA=e=>{let t=e.state.field(vA,!1);return!(!t||!t.panel||(e.dispatch({effects:mA.of(!1)}),0))},xA=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(vA,!1);var n,r;t&&t.panel||e.dispatch({effects:(n=e.state,r=[mA.of(!0)],n.field(vA,!1)?r:r.concat(Rg.appendConfig.of(jA)))});let i=Mx(e,AA.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(vA,!1);if(!t)return!1;let n=e.state.selection.main,r=fA(t.diagnostics,null,n.to+1);return!(!r&&(r=fA(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),function(e,t,n,r={}){var i;let o=e.state.facet(xx).map(t=>e.plugin(t)).filter(e=>!!e);if(r.tooltip&&r.tooltip.active){let e=o.find(e=>e.field==r.tooltip.active);e&&(o=[e])}for(let a of o)a.activateHover(e,t,n,null!==(i=r.until)&&void 0!==i?i:()=>!1)}(e,r.from,1,{tooltip:DA,until:e=>e.docChanged||e.newSelection.main.headr.to}),0))}}],RA=Xm.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...jg(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:kA,tooltipFilter:kA,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})})});function kA(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function SA(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase())){t.push(r);continue e}}t.push("")}return t}function OA(e,t,n){var r;let i=n?SA(t.actions):[];return fv("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},fv("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map((n,r)=>{let o=!1,a=r=>{if(r.preventDefault(),o)return;o=!0;let i=fA(e.state.field(vA).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:l}=n,s=i[r]?l.indexOf(i[r]):-1,c=s<0?l:[l.slice(0,s),fv("u",l.slice(s,s+1)),l.slice(s+1)];return fv("button",{type:"button",class:"cm-diagnosticAction"+(n.markClass?" "+n.markClass:""),onclick:a,onmousedown:a,"aria-label":` Action: ${l}${s<0?"":` (access key "${i[r]})"`}.`},c)}),t.source&&fv("div",{class:"cm-diagnosticSource"},t.source))}class CA extends _v{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return fv("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class MA{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=OA(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class AA{constructor(e){this.view=e,this.items=[],this.list=fv("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(27==t.keyCode)EA(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=SA(n.actions);for(let i=0;i{for(let t=0;tEA(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(vA).selected;if(!e)return-1;for(let t=0;t{for(let e of l.diagnostics){if(o.has(e))continue;o.add(e);let a,l=-1;for(let t=n;tn&&(this.items.splice(n,l-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}});n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=fA(this.view.state.field(vA).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:gA.of(t)})}static open(e){return new AA(e)}}function TA(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}const PA=yE.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:TA("#f11")},".cm-lintRange-warning":{backgroundImage:TA("orange")},".cm-lintRange-info":{backgroundImage:TA("#999")},".cm-lintRange-hint":{backgroundImage:TA("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function _A(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function IA(e){let t="hint",n=1;for(let r of e){let e=_A(r.severity);e>n&&(n=e,t=r.severity)}return t}const DA=kx(yA,{hideOn:function(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(RA).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some(e=>e.is(pA))&&!e.changes.touchesRange(o.from,Math.max(o.to,r)))}}),jA=[vA,yE.decorations.compute([vA],e=>{let{selected:t,panel:n}=e.field(vA);return t&&n&&t.from!=t.to?Dv.set([bA.range(t.from,t.to)]):Dv.none}),DA,PA];var LA=function(e){void 0===e&&(e={});var t=e.crosshairCursor,n=void 0!==t&&t,r=[];!1!==e.closeBracketsKeymap&&(r=r.concat(tA)),!1!==e.defaultKeymap&&(r=r.concat(aC)),!1!==e.searchKeymap&&(r=r.concat(JC)),!1!==e.historyKeymap&&(r=r.concat(sO)),!1!==e.foldKeymap&&(r=r.concat(Yk)),!1!==e.completionKeymap&&(r=r.concat(cA)),!1!==e.lintKeymap&&(r=r.concat(xA));var i=[];return!1!==e.lineNumbers&&i.push(function(e={}){return[Qx.of(e),Zx(),nR]}()),!1!==e.highlightActiveLineGutter&&i.push(oR),!1!==e.highlightSpecialChars&&i.push(function(e={}){return[QE.of(e),ex||(ex=$b.fromClass(class{constructor(e){this.view=e,this.decorations=Dv.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(QE)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new $E({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=Dm(t[0],0);if(9==o){let e=i.lineAt(r),t=n.state.tabSize,o=Qg(e.text,t,r-e.from);return Dv.replace({widget:new nx((t-o%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=Dv.replace({widget:new tx(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(QE);e.startState.facet(QE)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}()),!1!==e.history&&i.push(function(e={}){return[KS,qS.of(e),yE.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?$S:"historyRedo"==e.inputType?GS:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&i.push(function(e={}){let t={...rS,...e},n=new iS(t,!0),r=new iS(t,!1),i=$b.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(Rk)!=e.state.facet(Rk)||e.startState.field(Zk,!1)!=e.state.field(Zk,!1)||pk(e.startState)!=pk(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new Vg;for(let i of e.viewportLineBlocks){let o=Kk(e.state,i.from,i.to)?r:Fk(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:o}=t;return[i,Vx({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||zg.empty},initialSpacer:()=>new iS(t,!1),domEventHandlers:{...o,click:(e,t,n)=>{if(o.click&&o.click(e,t,n))return!0;let r=Kk(e.state,t.from,t.to);if(r)return e.dispatch({effects:Vk.of(r)}),!0;let i=Fk(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:zk.of(i)}),!0)}}}),Qk()]}()),!1!==e.drawSelection&&i.push(function(e={}){return[BE.of(e),HE,VE,WE,Fb.of(!0)]}()),!1!==e.dropCursor&&i.push([qE,KE]),!1!==e.allowMultipleSelections&&i.push(Dg.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&i.push(Dg.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let o=n.sliceString(i.from,r);if(!t.some(e=>e.test(o)))return e;let{state:a}=e,l=-1,s=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==l)continue;l=t.from;let n=Mk(a,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=Ck(a,n);r!=i&&s.push({from:t.from,to:t.from+r.length,insert:i})}return s.length?[e,{changes:s,sequential:!0}]:e})),!1!==e.syntaxHighlighting&&i.push(uS(fS,{fallback:!0})),!1!==e.bracketMatching&&i.push(function(e={}){return[gS.of(e),xS]}()),!1!==e.closeBrackets&&i.push([eA,GM]),!1!==e.autocompletion&&i.push(function(e={}){return[ZM,LM,bM.of(e),VM,uA,qM]}()),!1!==e.rectangularSelection&&i.push(function(){let e=e=>e.altKey&&0==e.button;return yE.mouseSelectionStyle.of((t,n)=>e(n)?function(e,t){let n=lx(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes)}},get(t,i,o){let a=lx(e,t);if(!a)return r;let l=function(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>ax||n.off>ax||t.col<0||n.col<0){let a=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=l&&o.push($m.range(n.from+a,n.to+l))}}else{let a=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=ev(n.text,a,e.tabSize,!0);if(r<0)o.push($m.cursor(n.to));else{let t=ev(n.text,l,e.tabSize);o.push($m.range(n.from+r,n.from+t))}}}return o}(e.state,n,a);return l.length?o?$m.create(l.concat(r.ranges)):$m.create(l):r}}:null}(t,n):null)}()),!1!==n&&i.push(function(e={}){let[t,n]=sx[e.key||"Alt"],r=$b.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,yE.contentAttributes.of(e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?cx:null})]}()),!1!==e.highlightActiveLine&&i.push(ix),!1!==e.highlightSelectionMatches&&i.push(function(){let e=[RC,xC];return e}()),e.tabSize&&"number"==typeof e.tabSize&&i.push(Sk.of(" ".repeat(e.tabSize))),i.concat([OE.of(r.flat())]).filter(Boolean)};const NA="#e06c75",BA="#abb2bf",FA="#7d8799",HA="#d19a66",zA="#2c313a",VA="#282c34",WA="#353a42",ZA="#528bff",qA=[yE.theme({"&":{color:BA,backgroundColor:VA},".cm-content":{caretColor:ZA},".cm-cursor, .cm-dropCursor":{borderLeftColor:ZA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:BA},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:VA,color:FA,border:"none"},".cm-activeLineGutter":{backgroundColor:zA},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:WA},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:WA,borderBottomColor:WA},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:zA,color:BA}}},{dark:!0}),uS(aS.define([{tag:sk.keyword,color:"#c678dd"},{tag:[sk.name,sk.deleted,sk.character,sk.propertyName,sk.macroName],color:NA},{tag:[sk.function(sk.variableName),sk.labelName],color:"#61afef"},{tag:[sk.color,sk.constant(sk.name),sk.standard(sk.name)],color:HA},{tag:[sk.definition(sk.name),sk.separator],color:BA},{tag:[sk.typeName,sk.className,sk.number,sk.changed,sk.annotation,sk.modifier,sk.self,sk.namespace],color:"#e5c07b"},{tag:[sk.operator,sk.operatorKeyword,sk.url,sk.escape,sk.regexp,sk.link,sk.special(sk.string)],color:"#56b6c2"},{tag:[sk.meta,sk.comment],color:FA},{tag:sk.strong,fontWeight:"bold"},{tag:sk.emphasis,fontStyle:"italic"},{tag:sk.strikethrough,textDecoration:"line-through"},{tag:sk.link,color:FA,textDecoration:"underline"},{tag:sk.heading,fontWeight:"bold",color:NA},{tag:[sk.atom,sk.bool,sk.special(sk.variableName)],color:HA},{tag:[sk.processingInstruction,sk.string,sk.inserted],color:"#98c379"},{tag:sk.invalid,color:"#ffffff"}]))];var KA=yE.theme({"&":{backgroundColor:"#fff"}},{dark:!1});class UA{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(e=>{try{e()}catch(e){console.error("TimeoutLatch callback error:",e)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class $A{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),0===this.latches.size&&this.stop()}start(){null===this.interval&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){null!==this.interval&&(clearInterval(this.interval),this.interval=null)}}var GA=null,YA=yE.theme({"& .cm-scroller":{height:"100% !important"}}),XA=null,JA=null,QA=wg.define(),eT=[];function tT(e){var t=e.value,n=e.selection,r=e.onChange,i=e.onStatistics,o=e.onCreateEditor,a=e.onUpdate,l=e.extensions,s=void 0===l?eT:l,c=e.autoFocus,u=e.theme,d=void 0===u?"light":u,h=e.height,f=void 0===h?null:h,p=e.minHeight,m=void 0===p?null:p,g=e.maxHeight,v=void 0===g?null:g,b=e.width,y=void 0===b?null:b,w=e.minWidth,E=void 0===w?null:w,x=e.maxWidth,R=void 0===x?null:x,k=e.placeholder,S=void 0===k?"":k,O=e.editable,C=void 0===O||O,M=e.readOnly,A=void 0!==M&&M,T=e.indentWithTab,P=void 0===T||T,_=e.basicSetup,I=void 0===_||_,D=e.root,j=e.initialState,L=(0,Pa.useState)(),N=L[0],B=L[1],F=(0,Pa.useState)(),H=F[0],z=F[1],V=(0,Pa.useState)(),W=V[0],Z=V[1],q=(0,Pa.useState)(()=>({current:null}))[0],K=(0,Pa.useState)(()=>({current:null}))[0],U=function(e,t,n,r,i,o){if(!(e||t||n||r||i||o))return null;var a=JSON.stringify({height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:o});return a===XA?JA:(XA=a,JA=yE.theme({"&":{height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:o}}))}(f,m,v,y,E,R),$=yE.updateListener.of(e=>{if(e.docChanged&&"function"==typeof r&&!e.transactions.some(e=>e.annotation(QA))){q.current?q.current.reset():(q.current=new UA(()=>{if(K.current){var e=K.current;K.current=null,e()}q.current=null},200),("undefined"==typeof window?new $A:(GA||(GA=new $A),GA)).add(q.current));var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}))(e))}),G=function(e){void 0===e&&(e={});var t=e,n=t.indentWithTab,r=void 0===n||n,i=t.editable,o=void 0===i||i,a=t.readOnly,l=void 0!==a&&a,s=t.theme,c=void 0===s?"light":s,u=t.placeholder,d=void 0===u?"":u,h=t.basicSetup,f=void 0===h||h,p=[];switch(r&&p.unshift(OE.of([lC])),f&&("boolean"==typeof f?p.unshift(LA()):p.unshift(LA(f))),d&&p.unshift(function(e){let t=$b.fromClass(class{constructor(t){this.view=t,this.placeholder=e?Dv.set([Dv.widget({widget:new ox(e),side:1}).range(0)]):Dv.none}get decorations(){return this.view.state.doc.length?Dv.none:this.placeholder}},{decorations:e=>e.decorations});return"string"==typeof e?[t,yE.contentAttributes.of({"aria-placeholder":e})]:t}(d)),c){case"light":p.push(KA);break;case"dark":p.push(qA);break;case"none":break;default:p.push(c)}return!1===o&&p.push(yE.editable.of(!1)),l&&p.push(Dg.readOnly.of(!0)),[...p]}({theme:d,editable:C,readOnly:A,placeholder:S,indentWithTab:P,basicSetup:I}),Y=[$,...U?[U]:[],YA,...G];return a&&"function"==typeof a&&Y.push(yE.updateListener.of(a)),Y=Y.concat(s),(0,Pa.useLayoutEffect)(()=>{if(N&&!W){var e={doc:t,selection:n,extensions:Y},r=j?Dg.fromJSON(j.json,e,j.fields):Dg.create(e);if(Z(r),!H){var i=new yE({state:r,parent:N,root:D});z(i),o&&o(i,r)}}return()=>{H&&(Z(void 0),z(void 0))}},[N,W]),(0,Pa.useEffect)(()=>{e.container&&B(e.container)},[e.container]),(0,Pa.useEffect)(()=>()=>{H&&(H.destroy(),z(void 0)),q.current&&(q.current.cancel(),q.current=null)},[H]),(0,Pa.useEffect)(()=>{c&&H&&H.focus()},[c,H]),(0,Pa.useEffect)(()=>{H&&H.dispatch({effects:Rg.reconfigure.of(Y)})},[d,s,f,m,v,y,E,R,S,C,A,P,I,r,a]),(0,Pa.useEffect)(()=>{if(void 0!==t){var e=H?H.state.doc.toString():"";if(H&&t!==e){var n=()=>{H&&t!==H.state.doc.toString()&&H.dispatch({changes:{from:0,to:H.state.doc.toString().length,insert:t||""},annotations:[QA.of(!0)]})};q.current&&!q.current.isDone?K.current=n:n()}}},[t,H]),{state:W,setState:Z,view:H,setView:z,container:N,setContainer:B}}const nT=window.ReactJSXRuntime;var rT=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],iT=(0,Pa.forwardRef)((e,t)=>{var n=e.className,r=e.value,i=void 0===r?"":r,o=e.selection,a=e.extensions,l=void 0===a?[]:a,s=e.onChange,c=e.onStatistics,u=e.onCreateEditor,d=e.onUpdate,h=e.autoFocus,f=e.theme,p=void 0===f?"light":f,m=e.height,g=e.minHeight,v=e.maxHeight,b=e.width,y=e.minWidth,w=e.maxWidth,E=e.basicSetup,x=e.placeholder,R=e.indentWithTab,k=e.editable,S=e.readOnly,O=e.root,C=e.initialState,M=Aa(e,rT),A=(0,Pa.useRef)(null),T=tT({root:O,value:i,autoFocus:h,theme:p,height:m,minHeight:g,maxHeight:v,width:b,minWidth:y,maxWidth:w,basicSetup:E,placeholder:x,indentWithTab:R,editable:k,readOnly:S,selection:o,onChange:s,onStatistics:c,onCreateEditor:u,onUpdate:d,extensions:l,initialState:C}),P=T.state,_=T.view,I=T.container,D=T.setContainer;(0,Pa.useImperativeHandle)(t,()=>({editor:A.current,state:P,view:_}),[A,I,P,_]);var j=(0,Pa.useCallback)(e=>{A.current=e,D(e)},[D]);if("string"!=typeof i)throw new Error("value must be typeof string but got "+typeof i);var L="string"==typeof p?"cm-theme-"+p:"cm-theme";return(0,nT.jsx)("div",Da({ref:j,className:L+(n?" "+n:"")},M))});function oT(e){return oT="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},oT(e)}function aT(){return aT=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n60?(null==e||null===(n=e.title)||void 0===n?void 0:n.raw.substring(0,60))+"...":null==e||null===(r=e.title)||void 0===r?void 0:r.raw,value:null==e?void 0:e.link,id:null==e?void 0:e.id}}))||[]},[c]);return React.createElement("form",{onSubmit:i,className:"eab-faq-gen-prompt-card__form"},React.createElement("div",{className:"eab-faq-gen-prompt-card__body sp-d-flex sp-flex-col"},React.createElement("div",{className:"eab-faq-gen-prompt-card__body-top sp-d-flex"},React.createElement("div",{className:"eab-faq-gen-prompt-card__field sp-w-1/3"},React.createElement("label",{htmlFor:"numberOfFaqs"},(0,Bt.__)("Number of FAQs","easy-accordion-free")),React.createElement(HT,{items:[{label:"5 FAQs",value:"5"},{label:"10 FAQs (Pro)",value:"10",disabled:!0},{label:"15 FAQs (Pro)",value:"15",disabled:!0},{label:"20 FAQs (Pro)",value:"20",disabled:!0}],id:"numberOfFaqs",value:n.numberOfFaqs,onChange:r})),React.createElement("div",{className:"eab-faq-gen-prompt-card__field sp-w-1/3"},React.createElement("label",{htmlFor:"language"},(0,Bt.__)("Select a Language","easy-accordion-free")),React.createElement(HT,{items:LT,id:"language",value:n.language,onChange:r})),React.createElement("div",{className:"eab-faq-gen-prompt-card__field sp-w-1/3"},React.createElement("label",{htmlFor:"tune"},(0,Bt.__)("Select a Tone","easy-accordion-free")),React.createElement(HT,{items:jT,id:"tune",value:n.tune,onChange:r}))),React.createElement("div",{className:"eab-faq-gen-prompt-card__page-source sp-d-flex sp-align-end"},React.createElement("div",{className:"eab-faq-gen-prompt-card__field sp-w-1/2"},React.createElement("label",{htmlFor:"contentSource"},(0,Bt.__)("FAQ Content Source","easy-accordion-free")),React.createElement("div",{className:"eab-faq-gen-prompt-card__select"},React.createElement("select",{id:"contentSource",name:"contentSource",value:n.contentSource,onChange:function(e){r("contentSource",e.target.value),r("selectedPost","")}},NT.map(function(e){var t=e.label,n=e.value;return React.createElement("option",{key:n,value:n},t)})),React.createElement("i",{className:"eab-icon-angle-down-solid"}))),React.createElement("div",{className:"eab-faq-gen-prompt-card__field sp-w-1/2"},React.createElement(HT,{items:[{label:BT[n.contentSource]||BT.post,value:""}].concat((t=u,function(e){if(Array.isArray(e))return DT(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||IT(t)||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.")}())),id:"selectedPost",value:n.selectedPost,onChange:r}))),React.createElement("div",{className:"eab-faq-gen-prompt-card__field"},React.createElement("label",{htmlFor:"keywords"},(0,Bt.__)("Keywords & Focus Areas","easy-accordion-free")),React.createElement("input",{type:"text",id:"keywords",name:"keywords",value:n.keywords,onChange:function(e){return r("keywords",e.target.value)}}),React.createElement("span",{className:"eab-faq-gen-prompt-card__help sp-d-block"},(0,Bt.__)("Add keywords to guide the AI and generate more relevant FAQs. Separate with commas.","easy-accordion-free"))),React.createElement("div",{className:"eab-faq-gen-prompt-card__field"},React.createElement("label",{htmlFor:"prompt"},(0,Bt.__)("AI Prompt","easy-accordion-free")),React.createElement("textarea",{className:"eab-faq-gen-prompt-card-prompt sp-d-block",id:"prompt",name:"prompt",rows:5,required:!0,value:n.prompt,onChange:function(e){return r("prompt",e.target.value)}}),React.createElement("span",{className:"eab-faq-gen-prompt-card__help sp-d-block"},(0,Bt.__)("Briefly describe your product, service, or content to generate relevant FAQs.","easy-accordion-free")))),React.createElement("div",{className:"eab-faq-gen-prompt-card__footer sp-d-flex sp-align-center sp-justify-end sp-gap-12px"},React.createElement("span",{className:"eab-faq-gen-prompt-card__notice",style:{marginRight:"auto",display:"flex",alignItems:"center",fontSize:"15px"}},(0,Bt.__)("To generate unlimited FAQs with AI,","easy-accordion-free"),React.createElement("a",{href:"https://easyaccordion.io/pricing/",target:"_blank",rel:"noopener noreferrer",style:{marginLeft:"4px"}},(0,Bt.__)("Upgrade to Pro!","easy-accordion-free"))),(null==l?void 0:l.length)>0&&React.createElement("div",{className:"eab-faq-gen-prompt-card__field"},React.createElement(HT,{items:l,id:"selectedModel",value:n.selectedModel,onChange:r})),React.createElement("button",{type:"submit",className:"eab-faq-gen-prompt-card__submit sp-d-flex sp-align-center sp-gap-10px",disabled:o||0===(null==l?void 0:l.length)||"5"===s},React.createElement(ST,null),o?React.createElement("span",{className:"sp-d-flex sp-align-end sp-gap-2px"},(0,Bt.__)("Generating FAQs","easy-accordion-free"),React.createElement("span",{className:"eab-generating-spinner"})):(0,Bt.__)("Generate FAQs","easy-accordion-free"))))}),WT=(0,m.memo)(function(e){var t,n=e.apiResult,r=e.setStep,i=e.parentId,o=e.setIsOpenPopup,a=e.setApiResult,l=e.childName,s=e.resetForm,c=_T((0,m.useState)(n),2),u=c[0],d=c[1],h=_T((0,m.useState)(0),2),f=h[0],g=h[1],v=(0,p.useDispatch)("core/block-editor").insertBlock,b=function(e,t,n){d(function(r){return r.map(function(r){return r.id===e?TT(TT({},r),{},PT({},t,n)):r})})},y=function(e){d(function(t){return t.map(function(t){return TT(TT({},t),{},{isSelected:e})})})},w=null==u||null===(t=u.filter(function(e){return e.isSelected}))||void 0===t?void 0:t.length;return React.createElement("div",{className:"eab-manage-generated-faqs"},React.createElement("div",{className:"eab-manage-generated-faqs__header sp-d-flex sp-align-center sp-justify-between"},React.createElement("div",{className:"eab-manage-generated-faqs__header-titles"},React.createElement("h4",null,(0,Bt.__)("Generated FAQs","easy-accordion-free")),React.createElement("span",{className:"sp-d-block"},(0,Bt.__)("Select the FAQs you want to add to your block ","easy-accordion-free"),"(",w,(0,Bt.__)(" selected","easy-accordion-free"),")")),React.createElement("div",{className:"eab-manage-generated-faqs__header-buttons sp-d-flex sp-align-center sp-gap-10px"},React.createElement("button",{disabled:w===(null==u?void 0:u.length),onClick:function(){return y(!0)}},(0,Bt.__)("Select All","easy-accordion-free")),React.createElement("button",{disabled:0===w,onClick:function(){return y(!1)}},(0,Bt.__)("Deselect All","easy-accordion-free")))),React.createElement("div",{className:"eab-manage-generated-faqs__body"},null==u?void 0:u.map(function(e,t){var n=e.id,r=e.question,i=e.answer,o=e.isSelected;return React.createElement("div",{key:t,className:"eab-manage-generated-faqs__accordion".concat(f===n?" active":"")},React.createElement("div",{className:"eab-manage-generated-faqs__accordion-header sp-d-flex sp-align-center sp-justify-between",onClick:function(){return g(function(e){return e===n?null:n})}},React.createElement("span",{className:"sp-d-flex sp-align-center sp-gap-10px"},React.createElement("input",{type:"checkbox",checked:o,onChange:function(){return b(n,"isSelected",!o)},onClick:function(e){return e.stopPropagation()}}),React.createElement(wi.RichText,{tagName:"span",className:"eab-manage-generated-faqs__accordion-title",value:r,onChange:function(e){return b(n,"question",e)}})),React.createElement("i",{className:f===n?"eab-icon-angle-up-solid":"eab-icon-angle-down-solid"})),f===n&&React.createElement("div",{className:"eab-manage-generated-faqs__accordion-content"},React.createElement(wi.RichText,{tagName:"span",value:i,onChange:function(e){return b(n,"answer",e)}})))})),React.createElement("div",{className:"eab-faq-gen-prompt-card__footer sp-d-flex sp-align-center sp-justify-between"},React.createElement("button",{className:"eab-manage-generated-faqs__back-button",onClick:function(){return r("prompt-modal")}},(0,Bt.__)("Back to Settings","easy-accordion-free")),React.createElement("button",{className:"eab-manage-generated-faqs__next-button",onClick:function(){null==u||u.forEach(function(e){var t=e.question,n=e.answer;if(e.isSelected&&t&&n){var r=wp.blocks.createBlock(l,{accordionTitle:t},[wp.blocks.createBlock("core/paragraph",{content:n})]);v(r,void 0,i)}}),o(!1),a([]),r("prompt-modal"),s()},disabled:w<=0},(0,Bt.__)("Add Selected FAQs","easy-accordion-free"))))}),ZT=(0,m.memo)(function(e){var t,n=e.errorMessage;return React.createElement("div",{className:"eab-faq-gen-prompt-card__alert"},n,React.createElement("a",{href:"".concat(null===(t=sp_eab_localize_data)||void 0===t?void 0:t.homeUrl,"wp-admin/edit.php?post_type=sp_easy_accordion&page=eap_dashboard#integrations"),target:"_blank",rel:"noreferrer"},(0,Bt.__)(" Integrations settings ","easy-accordion-free")),(0,Bt.__)("to continue.","easy-accordion-free"))}),qT=(0,m.memo)(function(){return React.createElement("div",{className:"eab-faq-gen-prompt-card__alert eap-upgrade-message sp-d-flex sp-align-center sp-justify-between sp-gap-10px"},(0,Bt.__)("You’ve reached your AI FAQ generation limit. Upgrade to Pro to continue generating unlimited FAQs.","easy-accordion-free"),React.createElement("a",{href:"https://easyaccordion.io/pricing/?ref=1",target:"_blank",rel:"noreferrer",className:"sp-d-flex sp-align-center sp-gap-8px"},React.createElement(CT,null),(0,Bt.__)("Upgrade to Pro","easy-accordion-free")))});function KT(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return UT(c,"_invoke",function(n,r,i){var o,l,s,c=0,u=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,l=0,s=e,h.n=n,a}};function f(n,r){for(l=n,s=r,t=0;!d&&c&&!i&&t3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(UT(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,UT(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,UT(d,"constructor",c),UT(c,"constructor",s),s.displayName="GeneratorFunction",UT(c,i,"GeneratorFunction"),UT(d),UT(d,i,"Generator"),UT(d,r,function(){return this}),UT(d,"toString",function(){return"[object Generator]"}),(KT=function(){return{w:o,m:h}})()}function UT(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}UT=function(e,t,n,r){function o(t,n){UT(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},UT(e,t,n,r)}function $T(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}var GT={400:(0,Bt.__)("Invalid request. Please check API key or parameters.","easy-accordion-free"),401:(0,Bt.__)("Unauthorized. Invalid or missing API key.","easy-accordion-free"),403:(0,Bt.__)("Access denied. Check API permissions.","easy-accordion-free"),404:(0,Bt.__)("Model not found. Please use a valid model.","easy-accordion-free"),405:(0,Bt.__)("Method not allowed.","easy-accordion-free"),429:(0,Bt.__)("Rate limit exceeded. Please try again later.","easy-accordion-free"),500:(0,Bt.__)("Server error. Please try again later.","easy-accordion-free"),503:(0,Bt.__)("Service unavailable. Try again shortly.","easy-accordion-free"),default:(0,Bt.__)("Something went wrong.","easy-accordion-free"),unknown:(0,Bt.__)("An unknown error occurred.","easy-accordion-free"),networkError:(0,Bt.__)("Network request failed.","easy-accordion-free")},YT=function(){var e,t=(e=KT().m(function e(t,n,r,i){var o,a,l,s,c,u,d,h,f;return KT().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("https://generativelanguage.googleapis.com/v1beta/models/".concat(n,":generateContent?key=").concat(r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contents:[{parts:[{text:t}]}],generationConfig:{maxOutputTokens:i,temperature:.7}})});case 1:return a=e.v,e.n=2,a.json();case 2:if(l=e.v,a.ok&&!l.error){e.n=3;break}return u=(null==l||null===(s=l.error)||void 0===s?void 0:s.code)||a.status,e.a(2,{error:!0,code:u,message:GT[u]||(null==l||null===(c=l.error)||void 0===c?void 0:c.message)||(null==GT?void 0:GT.unknown)});case 3:if(d=null==l||null===(o=l.candidates)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.content)||void 0===o||null===(o=o.parts)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.text){e.n=4;break}throw new Error("Empty response from model");case 4:return e.p=4,h=JSON.parse(d.replace(/```json|```/g,"").trim()),e.a(2,{success:!0,data:h});case 5:return e.p=5,e.v,e.a(2,{error:!0,message:null==GT?void 0:GT.default});case 6:return e.p=6,f=e.v,e.a(2,{error:!0,message:f.message||(null==GT?void 0:GT.networkError)});case 7:return e.a(2)}},e,null,[[4,5],[0,6]])}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){$T(o,r,i,a,l,"next",e)}function l(e){$T(o,r,i,a,l,"throw",e)}a(void 0)})});return function(_x,e,n,r){return t.apply(this,arguments)}}();function XT(e){return XT="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},XT(e)}function JT(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return QT(c,"_invoke",function(n,r,i){var o,l,s,c=0,u=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,l=0,s=e,h.n=n,a}};function f(n,r){for(l=n,s=r,t=0;!d&&c&&!i&&t3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(QT(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,QT(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,QT(d,"constructor",c),QT(c,"constructor",s),s.displayName="GeneratorFunction",QT(c,i,"GeneratorFunction"),QT(d),QT(d,i,"Generator"),QT(d,r,function(){return this}),QT(d,"toString",function(){return"[object Generator]"}),(JT=function(){return{w:o,m:h}})()}function QT(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}QT=function(e,t,n,r){function o(t,n){QT(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},QT(e,t,n,r)}function eP(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function tP(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 nP(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n.sp-eab-accordion-content-wrapper"),styles:{color:c,background:h}},{selector:"#".concat(n,".sp-eab-accordion-item"),styles:{"border-color":o}},{selector:"#".concat(n," .eab-heading-").concat(r," .sp-eab-accordion-title-text"),styles:{color:i}}].concat(function(e){if(Array.isArray(e))return cP(e)}(t=a?[{selector:"#".concat(n," .eab-heading-").concat(r," .sp-eab-expand-collapse-icon"),styles:{color:l,background:d,"border-color":s}}]:[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return cP(e,t);var n={}.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)?cP(e,t):void 0}}(t)||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.")}());return $n({desktopCss:f,tabletCss:[],mobileCss:[]})};function dP(e){return dP="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},dP(e)}function hP(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 fP(e){for(var t=1;t3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(gP(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,gP(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,gP(d,"constructor",c),gP(c,"constructor",s),s.displayName="GeneratorFunction",gP(c,i,"GeneratorFunction"),gP(d),gP(d,i,"Generator"),gP(d,r,function(){return this}),gP(d,"toString",function(){return"[object Generator]"}),(mP=function(){return{w:o,m:h}})()}function gP(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}gP=function(e,t,n,r){function o(t,n){gP(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},gP(e,t,n,r)}function vP(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function bP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[])}:null}(R,x)},[R,x]),_=(0,m.useMemo)(function(){return Xn(s)},[s]),I=(0,m.useMemo)(function(){return{postType:r,postLimit:i,orderBy:a,orderDirection:l,categories:o,termId:c,filterProduct:u,relation:d,currentPage:h,blockName:f,postId:C,page_id:g,imageLazyLoad:b,imageSrcset:y,featuredImageSize:w,filterPost:E,selectedTerms:x,selectedTaxonomy:R,postOperator:k,paginationEnable:v,taxonomies:P,includeOnlyPost:_,itemPerPage:S}},[r,i,a,l,o,c,u,d,h,f,C,g,b,y,w,E,x,R,k,v,P,_,S]);return(0,m.useEffect)(function(){var e=!0,t=function(){var t,n=(t=mP().m(function t(){var n,r,i,o,a,l,s;return mP().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,(n=new FormData).append("action","eab_post_query"),n.append("nonce",sp_eab_localize_data.spEabAjaxNonce),n.append("queryData",JSON.stringify(I)),t.n=1,Bn(n);case 1:r=t.v,i=r.posts,o=r.post_count,a=r.posts_status,l=r.message,e&&T({posts:i,postCount:o,postsStatus:a,message:l}),t.n=3;break;case 2:t.p=2,s=t.v,console.error("Error fetching posts:",s.message);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(e){vP(o,r,i,a,l,"next",e)}function l(e){vP(o,r,i,a,l,"throw",e)}a(void 0)})});return function(){return n.apply(this,arguments)}}();return t(),function(){e=!1}},[I]),fP(fP({},A),{},{queryData:I})};function wP(e){return wP="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},wP(e)}function EP(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return xP(c,"_invoke",function(n,r,i){var o,l,s,c=0,u=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,l=0,s=e,h.n=n,a}};function f(n,r){for(l=n,s=r,t=0;!d&&c&&!i&&t3?(i=p===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),l=u,s=p;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(h.n=-1),f(l,s)):h.n=s:h.v=s);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(xP(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xP(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,xP(d,"constructor",c),xP(c,"constructor",s),s.displayName="GeneratorFunction",xP(c,i,"GeneratorFunction"),xP(d),xP(d,i,"Generator"),xP(d,r,function(){return this}),xP(d,"toString",function(){return"[object Generator]"}),(EP=function(){return{w:o,m:h}})()}function xP(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}xP=function(e,t,n,r){function o(t,n){xP(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},xP(e,t,n,r)}function RP(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function kP(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 SP(e,t,n){return(t=function(e){var t=function(e){if("object"!=wP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wP(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"frontend",i=e.postType,o=e.postLimit,a=e.orderBy,l=e.orderDirection,s=e.filterProduct,c=e.blockName,u=e.filterPost,d=e.page_id,h=(t=(0,m.useState)({authors:[],authorList:[],postCount:{},imageSizes:[],allPostTypes:[]}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return OP(e,t);var n={}.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)?OP(e,t):void 0}}(t,n)||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.")}()),f=h[0],p=h[1],g=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]&&arguments[1];a(function(n){if(t&&n===e)return n;var r=n===e?"":e;return IP(r,"general"),c("general"),t&&setTimeout(function(){var e=document.querySelector(".components-panel__body.is-opened");e&&(e.classList.add("active"),setTimeout(function(){e.classList.remove("active")},800))},300),r})},[]),d={activeTab:s,toggleActiveTab:(0,m.useCallback)(function(e){c(e),IP(o,e)},[o]),openedPanelBody:o,togglePanelBody:u};return React.createElement(TP.Provider,{value:d},n)},jP=function(){return(0,m.useContext)(TP)},LP=(0,m.createContext)({activeId:1,setActiveId:function(){},contentAnimationEffect:""});const NP=function(){return(0,m.useContext)(TP)};function BP(e){return BP="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},BP(e)}function FP(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 HP(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"sp-eab-",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=(0,p.useSelect)(function(n){var r;return!!t&&((null===(r=n("core/block-editor"))||void 0===r?void 0:r.getBlocks())||[]).some(function(n){var r,i;return n.clientId!==e&&(null===(r=n.name)||void 0===r?void 0:r.startsWith("sp-easy-accordion-pro"))&&(null===(i=n.attributes)||void 0===i?void 0:i.uniqueId)===t})},[t,e]);(0,m.useEffect)(function(){if(e&&(!t||o)){var a,l=null===(a=e.split("-"))||void 0===a?void 0:a.pop(),s={uniqueId:"".concat(r).concat(l)};if(i){var c=null==e?void 0:e.substring((null==e?void 0:e.length)-6,null==e?void 0:e.length);s=HP(HP({},s),{},{parentId:c})}n(s)}},[e,t,o])};function WP(e){return WP="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},WP(e)}function ZP(e,t,n){return(t=function(e){var t=function(e){if("object"!=WP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WP(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"Desktop",n=e.uniqueId,r=e.blockName,i=e.template,o=(e.itemsExpandWidth,e.eabPadding),a=e.eabMargin;return[{selector:".".concat(n," .").concat(Ln(["vertical-accordion","horizontal-accordion","post-accordion","product-accordion","sidebar-tab-accordion"],r)?"sp-eab-".concat(i):"sp-eab-image-accordion-container"),styles:{padding:zn(null==o?void 0:o.device[t],Vn(o,t))}},{selector:".".concat(n).concat(Ln(["vertical-accordion","horizontal-accordion","sidebar-tab-accordion","post-accordion","product-accordion"],r)?" .sp-eab-".concat(i):".eab-".concat(i)),styles:{margin:zn(null==a?void 0:a.device[t],Vn(a,t))}},{selector:".".concat(n," .sp-eab-image-accordion-item.active"),styles:{"flex-basis":"50%"}}]};const u_=function(e){var t,n,r,i=e.uniqueId,o=e.blockName,a=e.template,l=e.eabBackground,s=e.eabBorder,c=e.eabBorderWidth,u=e.eabBorderRadius,d=e.eabBoxShadow,h=function(e){var t=e.uniqueId,n=e.spEabHideOnDesktop,r=e.spEabHideOnTablet,i=e.spEabHideOnMobile,o=function(e){var n;return[{selector:".".concat(t),styles:{opacity:e?.4:1,background:e?'url("'.concat(null===(n=sp_eab_localize_data)||void 0===n?void 0:n.pluginUrl,'/assets/images/disable-bg-image.svg")'):"transparent",padding:e?"10px":""}}]};return{Desktop:o(n),Tablet:o(r),Mobile:o(i)}}(e),f="",p="";if("image"===(null==l?void 0:l.style)){switch(o){case"vertical-accordion":case"horizontal-accordion":default:f="sp-eab-accordion::after";break;case"image-accordion":case"accordion-slider":f="sp-eab-image-accordion-container::after";break;case"sidebar-tab-accordion":f="sp-eab-sidebar-tabs::after"}p=f}else"video"===(null==l?void 0:l.style)&&(f="sp-eab-video-player::after",p="sp-eab-video-player");return{sharedDesktopCss:[].concat(l_(null==h?void 0:h.Desktop),l_(c_(e,"Desktop")),[{selector:".".concat(i," .").concat(Ln(["vertical-accordion","horizontal-accordion","post-accordion","product-accordion","sidebar-tab-accordion"],o)?"sp-eab-".concat(a):"sp-eab-image-accordion-container"),styles:o_(o_(o_({background:Hn(l)},"image"===(null==l?void 0:l.style)&&(t=l,n=(null==t?void 0:t.style)||"",r=(null==t?void 0:t.imageSettings)||{},"image"===n?{"background-position":r.bgImagePosition||"","background-attachment":r.bgImageAttachment||"","background-repeat":r.bgImageRepeat||"","background-size":r.bgImageSize||""}:{})),Kn(s,c)),{},{"border-radius":zn(u.value,u.unit),"box-shadow":Fn(d)})}],l_(Ln(["image","video"],null==l?void 0:l.style)?[{selector:".".concat(i," .").concat(f),styles:{content:"''","background-color":null==l?void 0:l.bgOverlay}},{selector:".".concat(i," .").concat(p),styles:{"border-radius":zn(u.value,u.unit)}}]:[])),sharedTabletCss:[].concat(l_(null==h?void 0:h.Tablet),l_(c_(e,"Tablet"))),sharedMobileCss:[].concat(l_(null==h?void 0:h.Mobile),l_(c_(e,"Mobile")))}};function d_(e){return d_="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},d_(e)}function h_(e){return function(e){if(Array.isArray(e))return f_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f_(e,t);var n={}.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)?f_(e,t):void 0}}(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.")}()}function f_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"Desktop",n=e.uniqueId,r=e.parentId,i=e.blockName,o=e.template,a=e.accordionTitlePadding,l=e.enableExpandAndCollapseIcon,s=e.toggleIconSize,c=e.toggleIconPadding,u=e.toggleIconMargin,d=e.accordionContentPadding,h=e.itemsWidth,f=e.itemsVerticalGap,p=e.itemsHeight,m=e.titleMinWidth,g=e.titleToContentGap,v=[{selector:".sp-easy-accordion-block>.".concat(n),styles:{"max-width":zn(h.device[t],Vn(h,t))}},{selector:".".concat(n,">.sp-eab-accordion>.block-editor-inner-blocks>.block-editor-block-list__layout"),styles:{gap:zn(f.device[t],Vn(f,t))}},{selector:".eab-heading-".concat(r," .").concat("vertical-six"===o?"sp-eab-accordion-header-start":"sp-eab-accordion-header-wrapper"),styles:{padding:zn(a.device[t],Vn(a,t))}},{selector:".eab-heading-".concat(r," .sp-eab-accordion-title-text"),styles:m_({},qn(e,t,"accordionTitle"))},{selector:".eab-content-".concat(r,">.").concat("vertical-three"===o?"sp-eab-accordion-content-wrapper>.sp-eab-accordion-body":"sp-eab-accordion-content-wrapper"),styles:m_({padding:zn(d.device[t],Vn(d,t))},qn(e,t,"accordionContent"))}];return"horizontal-accordion"===i&&(v=[].concat(h_(v),[{selector:".eab-item-".concat(r),styles:{height:zn(p.device[t],Vn(p,t))}},{selector:".eab-heading-".concat(r),styles:{width:zn(m.device[t],Vn(m,t))}}])),l&&(v=[].concat(h_(v),[{selector:".eab-heading-".concat(r," .sp-eab-expand-collapse-icon"),styles:{"font-size":zn(s.device[t],Vn(s,t)),padding:zn(c.device[t],Vn(c,t)),margin:zn(u.device[t],Vn(u,t))}}])),"sidebar-tab-accordion"===i&&(v=[].concat(h_(v),[{selector:".".concat(n,">.sp-eab-sidebar-tabs>.sp-eab-sidebar-tabs-nav-wrapper"),styles:{width:"40%"}},{selector:".".concat(n,">.sp-eab-sidebar-tabs>.sp-eab-sidebar-tabs-content"),styles:{width:"calc(100% - 40%)"}},{selector:".".concat(n,">.sp-eab-sidebar-tabs"),styles:{gap:zn(g.device[t],Vn(g,t))}},{selector:".".concat(n," .sp-eab-sidebar-tabs-nav"),styles:{gap:zn(f.device[t],Vn(f,t))}}])),v};const b_=function(e){var t,n=u_(e),r=n.sharedDesktopCss,i=n.sharedTabletCss,o=n.sharedMobileCss,a=e.uniqueId,l=e.parentId,s=e.template,c=e.enableExpandAndCollapseIcon,u=e.toggleIconColors,d=e.toggleIconBackground,h=e.accordionContentTypography,f=e.rotate90deg,p=e.toggleIconsSet,m=e.toggleIconBorder,g=e.toggleIconBorderWidth,v=e.toggleIconBorderRadius,b=e.contentAnimationEffect,y=e.contentTransitionTime,w=e.accordionTitleColors,E=e.accordionTitleBackground,x=e.accordionContentColor,R=e.accordionContentBackground,k=(e.contentHeight,e.contentMaxHeight,e.itemContentBorder),S=e.itemContentBorderWidth,O=e.itemContentBorderRadius,C=e.blockName,M=e.accordionTitleBorder,A=e.accordionTitleTypography,T=e.accordionTitleNormalBoxShadow,P=e.accordionTitleBorderWidth,_=e.accordionTitleBorderRadius,I=Ln(["vertical-accordion","horizontal-accordion"],C),D=[].concat(h_(r),h_(v_(e,"Desktop")),[{selector:".".concat(a,".sp-eab-wrapper .eab-heading-").concat(l),styles:m_({color:w,background:E},Zn(A))},{selector:".".concat(a,".sp-eab-wrapper .eab-content-").concat(l,">.sp-eab-accordion-content-wrapper"),styles:m_({color:x,background:R},Zn(h))},"none"!==b&&{selector:".eab-content-".concat(l,">.sp-eab-accordion-content-wrapper"),styles:{"animation-duration":"".concat((null==y?void 0:y.value)||"").concat((null==y?void 0:y.unit)||"")}}]);c&&(D=[].concat(h_(D),[{selector:".eab-heading-".concat(l," .sp-eab-expand-collapse-icon"),styles:m_(m_({color:u,background:d,"border-radius":zn(v.value,Vn(v))},f&&Ln([1,4,5,6,9,10,12],p.set)&&{display:"block",transform:"rotate(-90deg)"}),Kn(m,g))}])),I&&(D=[].concat(h_(D),[{selector:".eab-item-".concat(l),styles:m_(m_({},Kn(M,P)),{},{"border-radius":zn(_.value,Vn(_)),"box-shadow":Fn(T)})}])),"sidebar-tab-accordion"===C&&(D=[].concat(h_(D),[{selector:".".concat(a," .").concat("sidebar-tab-accordion-one"===s?"sp-eab-sidebar-tabs-nav":"sp-eab-accordion-heading"),styles:m_(m_({},Kn(M,P)),{},{"border-radius":zn(_.value,null==_?void 0:_.unit)},"sidebar-tab-accordion-one"===s&&{"margin-right":"-".concat(null==P||null===(t=P.value)||void 0===t?void 0:t.right).concat(P.unit),overflow:"hidden","border-top-right-radius":0,"border-bottom-right-radius":0})},{selector:".".concat(a," .sp-eab-sidebar-tabs-content"),styles:m_(m_({},Kn(k,S)),{},{"border-radius":zn(O.value,null==O?void 0:O.unit)},"sidebar-tab-accordion-one"===s&&{"border-top-left-radius":0})}]));var j=[].concat(h_(i),h_(v_(e,"Tablet"))),L=[].concat(h_(o),h_(v_(e,"Mobile")));return $n({desktopCss:D,tabletCss:j,mobileCss:L})};function y_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n{let{transform:t}=e;return{...t,x:0}};function K_(e){return K_="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},K_(e)}function U_(e){return function(e){if(Array.isArray(e))return $_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $_(e,t);var n={}.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)?$_(e,t):void 0}}(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.")}()}function $_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?f:[{label:"Posts",value:"post"},{label:"Pages",value:"page"}],attributes:o,attributesKey:"postType",setAttributes:r,flexStyle:!0}),React.createElement(Xo,{label:b,items:v,attributes:a,flexStyle:!0,attributesKey:"filterPost",setAttributes:r}),React.createElement(Xo,{label:(0,Bt.__)("Order By","easy-accordion-free"),items:bn,attributes:l,attributesKey:"orderBy",setAttributes:r,flexStyle:!0}),React.createElement(Hi,{label:(0,Bt.__)("Order Direction","easy-accordion-free"),items:[{label:"Ascending",value:"ASC"},{label:"Descending",value:"DESC"}],attributes:s,attributesKey:"orderDirection",setAttributes:r}),React.createElement(na,{label:p?(0,Bt.__)("Posts To Show","easy-accordion-free"):(0,Bt.__)("Products To Show","easy-accordion-free"),flex:!0,attributes:c,inputType:"number",attributesKey:"postLimit",setAttributes:r}),React.createElement(oa,{label:(0,Bt.__)("Taxonomy Filter","easy-accordion-free"),attributes:u,attributesKey:"taxonomyFilterEnable",setAttributes:r,onlyPro:!0}))},Q_=function(e){var t=e.attributes,n=e.setAttributes,r=t.metaDataOptions,i=(t.metaDivider,t.blockName),o=function(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(function(e,t){return(0,Pa.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(xh,{activationConstraint:{distance:5}})),a={};return"post-accordion"===i&&(a={author:(0,Bt.__)("Author","easy-accordion-free"),category:(0,Bt.__)("Category","easy-accordion-free"),date:(0,Bt.__)("Date","easy-accordion-free")}),React.createElement(React.Fragment,null,"post-accordion"===i&&React.createElement(Qh,{sensors:o,onDragEnd:function(e){var t=e.active,i=e.over;if(t&&i&&t.id!==i.id){var o=r.findIndex(function(e){return t.id===e.id}),a=r.findIndex(function(e){return i.id===e.id});n({metaDataOptions:rf(r,o,a)})}},modifiers:[q_]},React.createElement(hf,{items:r,strategy:cf},null==r?void 0:r.map(function(e){var t=e.value,i=e.isActive,o=e.id;return React.createElement(Ef,{key:o,id:o},React.createElement(oa,{updated:!0,label:a[t],attributes:i,onChange:function(){return function(e){var t=null==r?void 0:r.map(function(t){return t.id===e?Y_(Y_({},t),{},{isActive:!t.isActive}):t});n({metaDataOptions:t})}(o)}}))}))))},eI=function(e){var t=e.attributes,n=e.setAttributes,r=t.template,i=t.showFeaturedImage,o=t.featuredImageSize,a=t.showExcerpt,l=t.excerptLength,s=t.animationEffect,c=t.animationTransitionDuration,u=t.showCloseButton,d=t.contentHeight,h=CP(t).imageSizes,f=h?null==h?void 0:h.map(function(e){return{label:e,value:e}}):[];return React.createElement(React.Fragment,null,"post-accordion-one"===r&&React.createElement(React.Fragment,null,React.createElement(oa,{label:(0,Bt.__)("Featured Image","easy-accordion-free"),attributes:i,attributesKey:"showFeaturedImage",setAttributes:n}),i&&React.createElement(React.Fragment,null,React.createElement(Xo,{label:(0,Bt.__)("Image Size","easy-accordion-free"),attributes:o,attributesKey:"featuredImageSize",setAttributes:n,items:[].concat(U_(f),[{label:(0,Bt.__)("Custom Size (Pro)","easy-accordion-free"),value:"custom",pro:!0}])}),React.createElement(sm,null))),React.createElement(oa,{label:(0,Bt.__)("Excerpt","easy-accordion-free"),attributes:a,attributesKey:"showExcerpt",setAttributes:n}),React.createElement(Hi,{label:(0,Bt.__)("Excerpt Type","easy-accordion-free"),items:[{label:"Full",value:"full"},{label:"Limit",value:"limit",pro:!0}],attributes:l,attributesKey:"excerptLength",setAttributes:n}),React.createElement(sm,null),React.createElement(Hi,{label:(0,Bt.__)("Content Height","easy-accordion-free"),items:[{label:"Auto",value:"auto"},{label:"Limit",value:"limit",pro:!0}],attributes:d,attributesKey:"contentHeight",setAttributes:n}),React.createElement(Xo,{label:(0,Bt.__)("Animation Effects","easy-accordion-free"),items:yn,attributes:s,attributesKey:"animationEffect",setAttributes:n,flexStyle:!0}),React.createElement(bo,{label:(0,Bt.__)("Transition Time","easy-accordion-free"),attributes:c,attributesKey:"animationTransitionDuration",setAttributes:n,units:["ms"],max:1e4,defaultValue:{unit:"ms",value:400}}),React.createElement(oa,{label:(0,Bt.__)("Close Button","easy-accordion-free"),attributes:u,attributesKey:"showCloseButton",setAttributes:n,onlyPro:!0}),React.createElement(um,{subtitle:(0,Bt.__)("Unlock Advanced Content Controls for Post Accordion","easy-accordion-free"),features:["Featured Image Custom Sizing","Limit Excerpt Length by Words","Read More Button and Button Label","Control Accordion Content Height","25+ Content Animation Effects"],linkButton:!0}))},tI=function(e){var t=e.attributes,n=e.setAttributes,r=t.template,i=t.showFeaturedImage,o=t.featuredImageSize,a=t.showExcerpt,l=t.excerptLength,s=t.showBadge,c=t.showRating,u=t.showPrice,d=t.showProductAttrs,h=t.showAddToCart,f=t.imgToDescGap,p=t.contentHeight,m=t.animationEffect,g=t.animationTransitionDuration,v=t.postTitleLenght,b=t.linkPostTitle,y=t.linkOpenNewTab,w=t.showProductTitle,E=t.accordionTitleTag,x=CP(t).imageSizes,R=x?null==x?void 0:x.map(function(e){return{label:e,value:e}}):[];return React.createElement(React.Fragment,null,"product-accordion-one"===r&&React.createElement(React.Fragment,null,React.createElement(oa,{label:(0,Bt.__)("Product Image","easy-accordion-free"),attributes:i,attributesKey:"showFeaturedImage",setAttributes:n}),i&&React.createElement(React.Fragment,null,React.createElement(Xo,{label:(0,Bt.__)("Image Size","easy-accordion-free"),attributes:o,attributesKey:"featuredImageSize",setAttributes:n,items:[].concat(U_(R),[{label:(0,Bt.__)("Custom Size (Pro)","easy-accordion-free"),value:"custom",pro:!0}])}),React.createElement(sm,null),React.createElement(bo,{label:(0,Bt.__)("Image to Description Gap","easy-accordion-free"),attributes:f,attributesKey:"imgToDescGap",setAttributes:n,units:["px","%","Em"],defaultValue:{unit:"px",value:24},max:200}))),"product-accordion-one"!==r&&React.createElement(React.Fragment,null,React.createElement(oa,{label:(0,Bt.__)("Product Title","easy-accordion-free"),attributes:w,attributesKey:"showProductTitle",setAttributes:n}),w&&React.createElement(React.Fragment,null,React.createElement(Hi,{label:(0,Bt.__)("HTML Tag","easy-accordion-free"),attributes:E,items:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"p",value:"p"},{label:"span",value:"span"}],attributesKey:"accordionTitleTag",setAttributes:n}),React.createElement(Hi,{label:(0,Bt.__)("Title Length","easy-accordion-free"),items:[{label:"Full",value:"full"},{label:"Limit",value:"limit",pro:!0}],attributes:v,attributesKey:"postTitleLenght",setAttributes:n}),React.createElement(oa,{label:(0,Bt.__)("Link Product Title","easy-accordion-free"),attributes:b,attributesKey:"linkPostTitle",setAttributes:n}),b&&React.createElement(oa,{label:(0,Bt.__)("Link Open in a New Tab","easy-accordion-free"),attributes:y,attributesKey:"linkOpenNewTab",setAttributes:n}),React.createElement(sm,null))),React.createElement(oa,{label:(0,Bt.__)("Badge","easy-accordion-free"),attributes:s,attributesKey:"showBadge",setAttributes:n}),React.createElement(oa,{label:(0,Bt.__)("Rating","easy-accordion-free"),attributes:c,attributesKey:"showRating",setAttributes:n}),React.createElement(oa,{label:(0,Bt.__)("Price","easy-accordion-free"),attributes:u,attributesKey:"showPrice",setAttributes:n}),React.createElement(oa,{label:(0,Bt.__)("Short Description","easy-accordion-free"),attributes:a,attributesKey:"showExcerpt",setAttributes:n}),a&&React.createElement(React.Fragment,null,React.createElement(Hi,{label:(0,Bt.__)("Description Type","easy-accordion-free"),items:[{label:"Full",value:"full"},{label:"Limit",value:"limit",pro:!0}],attributes:l,attributesKey:"excerptLength",setAttributes:n})),React.createElement(oa,{label:(0,Bt.__)("Attributes","easy-accordion-free"),attributes:d,attributesKey:"showProductAttrs",setAttributes:n,onlyPro:!0}),React.createElement(oa,{label:(0,Bt.__)("Add to Cart","easy-accordion-free"),attributes:h,attributesKey:"showAddToCart",setAttributes:n}),React.createElement(sm,null),React.createElement(Hi,{label:(0,Bt.__)("Content Height","easy-accordion-free"),items:[{label:"Auto",value:"auto"},{label:"Limited",value:"limit",pro:!0}],attributes:p,attributesKey:"contentHeight",setAttributes:n}),React.createElement(Xo,{label:(0,Bt.__)("Animation Effects","easy-accordion-free"),items:yn,attributes:m,attributesKey:"animationEffect",setAttributes:n,flexStyle:!0}),React.createElement(bo,{label:(0,Bt.__)("Transition Time","easy-accordion-free"),attributes:g,attributesKey:"animationTransitionDuration",setAttributes:n,units:["ms"],max:1e4,defaultValue:{unit:"ms",value:400}}),React.createElement(um,{subtitle:(0,Bt.__)("Unlock Advanced Content Controls for Product Accordion","easy-accordion-free"),features:["Product Image Custom Sizing","Control Product Description Length","Show Product Attributes (Size, Color)","Change Add to Cart Button Label","Control Accordion Content Height","25+ Content Animation Effects"],linkButton:!0}))};const nI=function(e){var t=e.attributes,n=e.setAttributes,r=t.blockName,i=t.template,o=t.enableExpandAndCollapseIcon,a=jP(),l=a.togglePanelBody,s=a.openedPanelBody,c=a.activeTab,u=a.toggleActiveTab,d=function(e){return s===e},h={"post-accordion":(0,Bt.__)("Post Title","easy-accordion-free"),"product-accordion":(0,Bt.__)("Product Title","easy-accordion-free")},f={"post-accordion":(0,Bt.__)("Post Content","easy-accordion-free"),"product-accordion":(0,Bt.__)("Product Content","easy-accordion-free")},p=h[r]||(0,Bt.__)("Title","easy-accordion-free"),m=f[r]||(0,Bt.__)("Content","easy-accordion-free");return React.createElement(React.Fragment,null,React.createElement(fr.PanelBody,{title:(0,Bt.__)("Accordion Templates","easy-accordion-free"),opened:d("defaultOpen"),onToggle:function(){return l("defaultOpen")},initialOpen:!0},React.createElement(w_,{attributes:t,setAttributes:n})),("post-accordion"===r||"product-accordion"===r)&&React.createElement(React.Fragment,null,React.createElement(fr.PanelBody,{title:(0,Bt.__)("Query Builder","easy-accordion-free"),opened:d("query-builder"),onToggle:function(){return l("query-builder")},initialOpen:!0},d("query-builder")&&React.createElement(J_,{attributes:t,setAttributes:n})),React.createElement(fr.PanelBody,{title:(0,Bt.__)("Taxonomy Filter","easy-accordion-free"),opened:d("taxonomy-filter"),onToggle:function(){return l("taxonomy-filter")},className:"sp-panel-pro"},d("taxonomy-filter")&&React.createElement(um,{subtitle:(0,Bt.__)("Unlock Powerful Taxonomy Filter options for your FAQs","easy-accordion-free"),features:["List and Button Filter Style","Choose Taxonomies to Filter","Top, Left, Right Button Position","Control Button Area Width","Full Control Over Filter Styling"],linkButton:!0}))),React.createElement(fr.PanelBody,{title:(0,Bt.__)("Accordion Interactions","easy-accordion-free"),opened:d("general"),onToggle:function(){return l("general")}},React.createElement(E_,{attributes:t,setAttributes:n})),("image-accordion"===r||"accordion-slider"===r)&&React.createElement(React.Fragment,null,React.createElement(fr.PanelBody,{title:(0,Bt.__)("Image","easy-accordion-free"),opened:d("image"),onToggle:function(){return l("image")}},React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:x_,StyleTab:N_,tabName:c,setTabName:u}))),Ln(["vertical-accordion","horizontal-accordion","post-accordion","sidebar-tab-accordion","product-accordion"],r)&&"product-accordion-two"!==i&&React.createElement(React.Fragment,null,React.createElement(fr.PanelBody,{title:(0,Bt.__)("Toggle Icon","easy-accordion-free"),opened:d("icon"),onToggle:function(){return l("icon")}},React.createElement(oa,{label:(0,Bt.__)("Toggle Icon","easy-accordion-free"),attributes:o,attributesKey:"enableExpandAndCollapseIcon",setAttributes:n}),o&&d("icon")&&React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:O_,StyleTab:L_,tabName:c,setTabName:u})),React.createElement(fr.PanelBody,{title:p,opened:d("title"),onToggle:function(){return l("title")}},d("title")&&React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:S_,StyleTab:j_,tabName:c,setTabName:u}))),("post-accordion"===r||"product-accordion"===r)&&React.createElement(fr.PanelBody,{title:"product-accordion"===r?(0,Bt.__)("Product Meta","easy-accordion-free"):(0,Bt.__)("Post Meta","easy-accordion-free"),opened:d("post-meta"),onToggle:function(){return l("post-meta")},className:"product-accordion"===r?"sp-panel-pro":""},"post-accordion"===r&&d("post-meta")&&React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:Q_,StyleTab:H_,tabName:c,setTabName:u}),"product-accordion"===r&&d("post-meta")&&React.createElement(um,{subtitle:(0,Bt.__)("Unlock advanced product details with smart meta options","easy-accordion-free"),features:["Show Category","Product SKU","Add Meta Divider & Divider Gap"],linkButton:!0})),React.createElement(fr.PanelBody,{title:m,opened:d("content"),onToggle:function(){return l("content")}},("image-accordion"===r||"accordion-slider"===r)&&React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:R_,StyleTab:B_,tabName:c,setTabName:u}),"post-accordion"===r&&React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:eI,StyleTab:z_,tabName:c,setTabName:u}),"product-accordion"===r&&React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:tI,StyleTab:z_,tabName:c,setTabName:u}),Ln(["vertical-accordion","horizontal-accordion","sidebar-tab-accordion"],r)&&React.createElement(Ci,{attributes:t,setAttributes:n,GeneralTab:k_,StyleTab:F_,tabName:c,setTabName:u})),React.createElement(fr.PanelBody,{title:(0,Bt.__)("Motion Effects","easy-accordion-free"),opened:d("motion-effect"),onToggle:function(){return l("motion-effect")},className:"sp-panel-pro"},d("motion-effect")&&React.createElement(um,{subtitle:(0,Bt.__)("Unlock Pro-level motion effects for your FAQs section","easy-accordion-free"),features:["Modern Scrolling Effect","Sticky (Top, Bottom)","25+ Entrance Animation","Animation Delay and More..."],linkButton:!0})),React.createElement(fr.PanelBody,{title:(0,Bt.__)("Advanced","easy-accordion-free"),opened:d("advanced"),onToggle:function(){return l("advanced")}},d("advanced")&&React.createElement(Ci,{attributes:t,setAttributes:n,displayIcon:!1,GeneralTab:V_,VisibilityTab:W_,AdvancedTab:Z_,tabName:c,setTabName:u})),React.createElement(um,{title:(0,Bt.__)("Design Without Limits","easy-accordion-free"),subtitle:(0,Bt.__)("Unlock custom linking for your FAQs","easy-accordion-free"),message:(0,Bt.__)("Give your design a boost with premium templates & advanced features.","easy-accordion-free"),panelNotice:!0,className:"sp-inspector-pro-notice"}))};function rI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:void 0,t=wp.blocks.createBlock("sp-easy-accordion-pro/sidebar-tab-item");N(t,e,o)},V=h;(0,m.useEffect)(function(){"limit"!==f?setTimeout(function(){var e;O("".concat(null==I||null===(e=I.current)||void 0===e?void 0:e.offsetHeight,"px"))},100):O("100%")},[l.length,d,f,null==v||null===(n=v.device)||void 0===n?void 0:n.Desktop,b]),(0,m.useLayoutEffect)(function(){if("sidebar-tab-accordion-one"===d&&I.current&&D.current){var e=I.current.offsetHeight,t=D.current.offsetHeight;A({borderBottomLeftRadius:t>e?"":0})}else A({})},[d,x,S]);var W=function(e){B(P,o,o,e)},Z=function(){F([P])},q=function(){H([P])};return React.createElement(LP.Provider,{value:{activeId:x,setActiveId:R,contentAnimationEffect:g}},React.createElement("div",{className:"sp-eab-wrapper sp-eab-sidebar-tab-accordion ".concat(c)},"video"===(null==y?void 0:y.style)&&React.createElement(lm,{videoType:null==y?void 0:y.videoType,bgVideo:null==y||null===(r=y.video)||void 0===r?void 0:r.html5,youtubeVideo:null==y||null===(i=y.video)||void 0===i?void 0:i.youtube}),tr("generate_faqs_with_ai")&&React.createElement(lP,{parentId:o,childName:"sp-easy-accordion-pro/sidebar-tab-item",generatedFaqItems:w,setAttributes:s}),React.createElement("div",{className:"sp-eab-sidebar-tabs sp-eab-".concat(d," sp-d-flex")},React.createElement("div",{className:"sp-eab-sidebar-tabs-nav-wrapper"},React.createElement("div",{className:"sp-eab-sidebar-tabs-nav sp-d-flex sp-flex-col",ref:I},null==l?void 0:l.map(function(e,t){var n;return React.createElement(V,{key:null==e?void 0:e.clientId,className:"sp-eab-accordion-heading sp-d-flex sp-align-center eab-heading-".concat(u).concat(x===(null==e?void 0:e.clientId)?" eab-expand":""),onClick:function(){R(null==e?void 0:e.clientId),_(null==e?void 0:e.clientId)}},P===(null==e?void 0:e.clientId)&&React.createElement("span",{className:"sp-eab-editor-toolbar sp-d-flex sp-align-center"},React.createElement(fr.Tooltip,{text:(0,Bt.__)("Move Item","easy-accordion-free")},React.createElement("span",{className:"eab-toolbar-button sp-d-flex sp-flex-col"},React.createElement("i",{className:"eab-icon-angle-up-regular",onClick:function(){return W(t-1)}}),React.createElement("i",{className:"eab-icon-angle-down-regular",onClick:function(){return W(t+1)}}))),React.createElement(fr.Tooltip,{text:(0,Bt.__)("Duplicate","easy-accordion-free")},React.createElement("span",{className:"eab-toolbar-button",onClick:Z},React.createElement(rn,null))),React.createElement(fr.Tooltip,{text:(0,Bt.__)("Add New Item After Current","easy-accordion-free")},React.createElement("span",{className:"eab-toolbar-button",onClick:function(){return z(t+1)}},React.createElement(nn,null))),React.createElement(fr.Tooltip,{text:(0,Bt.__)("Remove Item","easy-accordion-free")},React.createElement("span",{className:"eab-toolbar-button",onClick:q},React.createElement(on,null)))),"sidebar-tab-accordion-two"===d&&React.createElement("span",{className:"sp-eab-title-number sp-d-flex sp-align-center sp-justify-center"},null==e||null===(n=e.attributes)||void 0===n?void 0:n.faqNumber),React.createElement(sP,{attributes:null==e?void 0:e.attributes,onChangeTitle:function(t){return j(e.clientId,{accordionTitle:t})},onChangeSubtitle:function(t){return j(e.clientId,{accordionSubtitle:t})}}))}))),React.createElement("div",{className:"sp-eab-sidebar-tabs-content sp-d-flex",ref:D,style:LI({minHeight:S},M)},React.createElement(wi.InnerBlocks,{allowedBlocks:["sp-easy-accordion-pro/sidebar-tab-item"],template:[["sp-easy-accordion-pro/sidebar-tab-item"],["sp-easy-accordion-pro/sidebar-tab-item"],["sp-easy-accordion-pro/sidebar-tab-item"]],renderAppender:!1}))),React.createElement(RT,{blockAppenderFn:function(){return z(void 0)}})))}),zI=function(e){var t=e.clientId,n=e.attributes,r=e.setAttributes,i=n.parentId,o=n.uniqueId,a=n.customIdName,l=n.customClassName,s=n.blockName,c=n.template,u=n.toggleIconsSet,d=n.enableExpandAndCollapseIcon,h=n.accordionTitleTag,f=n.toggleIconPosition,g=n.featuredIconVerticalAlignment,v=n.titleAlignment,b=n.accordionTitleTypography,y=n.accordionContentTypography,w=n.contentAnimationEffect;VP(t,o,r);var E=(0,p.useSelect)(function(e){return e("core/block-editor").getBlock(t)},[t]),x=null==E?void 0:E.innerBlocks,R=(0,m.useRef)(c);(0,m.useEffect)(function(){if(R.current!==c){R.current=c;var e=function(e){var t=e.template,n=e.titleToContentGap,r=e.itemsVerticalGap;return{titleToContentGap:_I(_I({},n),{},{device:_I(_I({},n.device),{},{Desktop:"sidebar-tab-accordion-one"===t?0:12})}),itemsVerticalGap:_I(_I({},r),{},{device:_I(_I({},r.device),{},{Desktop:"sidebar-tab-accordion-one"===t?0:10})}),enableExpandAndCollapseIcon:"sidebar-tab-accordion-one"===t}}(n);e&&r(e)}},[c]),(0,m.useEffect)(function(){E.innerBlocks.forEach(function(e,t){(0,p.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{template:c,parentId:i,toggleIconsSet:u,enableExpandAndCollapseIcon:d,accordionTitleTag:h,toggleIconPosition:f,featuredIconVerticalAlignment:g,titleAlignment:v,parentBlockName:s,contentAnimationEffect:w})})},[c,s,null==x?void 0:x.length,u,d,h,f,v,g,w,i]);var k=Gn((0,wi.useBlockProps)(),a,l),S=(0,m.useMemo)(function(){return b_(n)},[n]),O=[b,y];return(0,m.useEffect)(function(){r({fontLists:Yn(O,"frontend")})},[b,y]),React.createElement(DP,null,React.createElement("div",k,React.createElement("style",null,S),React.createElement("style",null,Yn(O,"editor")),React.createElement(Oi,{attributes:n,setAttributes:r,Inspector:nI}),c?React.createElement(HI,{clientId:t,attributes:n,setAttributes:r,childBlocks:x}):React.createElement(bT,{blockName:s,setAttributes:r})))},VI=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"sp-easy-accordion-pro/sidebar-tab-accordion","title":"Sidebar Tab Accordion","category":"sp-easy-accordion-pro","icon":"editor-table","description":"Display FAQs compactly using a sidebar tab accordion to save space.","textdomain":"easy-accordion-free","supports":{"align":["wide","full"],"customClassName":false},"example":{"attributes":{"isPreview":true}},"editorScript":"sp_eab_admin_index_js","editorStyle":"sp_eab_editor_style","script":["sp-eap-accordion","sp_eab_script_js"],"style":["sp_eab_main_css","sp_eab_google_fonts","sp_eab_fontello_style","sp-ea-animation"]}');function WI(e){return WI="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},WI(e)}var ZI;function qI(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 KI(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var r=n.map(function(e){return(0,i.createBlock)("sp-easy-accordion-pro/image-accordion-item",{singleImgTitle:null==e?void 0:e.title,singleImgDesc:null==e?void 0:e.description,singleImgData:e,singleImgId:null==e?void 0:e.id,parentSettings:T})});wp.data.dispatch("core/block-editor").insertBlocks(r,t.length,s)}}else wp.data.dispatch("core/block-editor").replaceInnerBlocks(s,H,!1)}}},[p,s,H,T]),(0,m.useEffect)(function(){var e;if(s){var t=wp.data.select("core/block-editor").getBlock(s);t&&(null===(e=t.innerBlocks)||void 0===e||e.forEach(function(e){wp.data.dispatch("core/block-editor").updateBlockAttributes(e.clientId,{parentSettings:T})}))}},[T,s]),(0,m.useEffect)(function(){if(s){var e=wp.data.subscribe(function(){var e=wp.data.select("core/block-editor").getBlock(s);if(e){var t=e.innerBlocks||[],n=t.map(function(e){return e.attributes.singleImgId}),r=e.attributes.accordionGallery||[];if(t.lengtht.length){var i=r.filter(function(e){return n.includes(null==e?void 0:e.id)});i.length!==r.length&&wp.data.dispatch("core/block-editor").updateBlockAttributes(s,{accordionGallery:i})}j.current=t.length,L.current=r.length}});return function(){return e()}}},[s]),(0,m.useEffect)(function(){if(p.length)if("first-item"===y)I(0);else if("close-all"===y)I(-1);else if("open-selected-item"===y){var e=b-1;e>=0&&e0&&React.createElement("div",{className:"sp-eab-image-accordion-container"},"video"===(null==A?void 0:A.style)&&React.createElement(lm,{videoType:null==A?void 0:A.videoType,bgVideo:null==A||null===(t=A.video)||void 0===t?void 0:t.html5,youtubeVideo:null==A||null===(n=A.video)||void 0===n?void 0:n.youtube}),React.createElement("div",{className:"sp-eab-image-accordion-items sp-d-flex eab-accordion-orientation-vertical sp-flex-col ".concat("none"!==w?"eab-image-effect":"")},React.createElement(wi.InnerBlocks,{allowedBlocks:sD,renderAppender:!1}))),p.length>0&&React.createElement(wi.MediaUploadCheck,null,React.createElement(wi.MediaUpload,{onSelect:B,allowedTypes:["image"],multiple:!0,gallery:!0,render:function(e){var t=e.open;return React.createElement(RT,{blockAppenderFn:t,label:(0,Bt.__)("Add New Image Accordion","easy-accordion-free")})}})))))},uD=function(e){var t=e.attributes,n=e.setAttributes,r=t.customClassName,i=jP(),o=i.togglePanelBody,a=i.openedPanelBody,l=function(e){return a===e};return React.createElement(React.Fragment,null,React.createElement(fr.PanelBody,{title:(0,Bt.__)("Accordion Item","easy-accordion-free"),opened:l("defaultOpen"),onToggle:function(){return o("defaultOpen")}},l("defaultOpen")&&React.createElement(C_,{attributes:t,setAttributes:n})),React.createElement(fr.PanelBody,{title:(0,Bt.__)("Icon","easy-accordion-free"),opened:l("ea-single-item-icon"),onToggle:function(){return o("ea-single-item-icon")},className:"sp-panel-pro"},React.createElement(um,{subtitle:(0,Bt.__)("Unlock Advanced Lightbox Options for Image Accordions","easy-accordion-free"),features:["Add Icon from Library","Upload Custom Icon","Stylize Icon Color, Border & Background"],linkButton:!0})),React.createElement(fr.PanelBody,{title:(0,Bt.__)("Advanced","easy-accordion-free"),opened:"advanced"===a,onToggle:function(){return o("advanced")}},React.createElement(na,{label:(0,Bt.__)("Custom CSS Class","easy-accordion-free"),placeholder:(0,Bt.__)("Custom Class","easy-accordion-free"),inputType:"text",attributes:r,attributesKey:"customClassName",setAttributes:n})),React.createElement(um,{title:(0,Bt.__)("Design Without Limits","easy-accordion-free"),message:(0,Bt.__)("Give your design a boost with premium templates & advanced features.","easy-accordion-free"),panelNotice:!0,className:"sp-inspector-pro-notice"}))};function dD(e){return dD="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},dD(e)}function hD(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 fD(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"Desktop",n=e.uniqueId,r=e.itemsWidth,i=e.itemsVerticalGap,o=e.itemsHeight,a=e.contentPadding;return[{selector:".".concat(n," .sp-eab-block-appender"),styles:{"max-width":zn(null==r?void 0:r.device[t],Vn(r,t))}},{selector:".".concat(n," .sp-eab-image-accordion-container"),styles:{"max-width":zn(null==r?void 0:r.device[t],Vn(r,t)),height:zn(null==o?void 0:o.device[t],Vn(o,t))}},{selector:".".concat(n," .block-editor-block-list__layout"),styles:{gap:zn(null==i?void 0:i.device[t],Vn(i,t))}},{selector:".".concat(n," .sp-eab-image-accordion-item .sp-eab-image-title"),styles:kD({},qn(e,t,"accordionTitle"))},{selector:".".concat(n," .sp-eab-image-accordion-item .sp-eab-overlay"),styles:{padding:zn(null==a?void 0:a.device[t],Vn(a,t))}},{selector:".".concat(n," .sp-eab-image-accordion-item .sp-eab-image-desc"),styles:kD({},qn(e,t,"description"))}]};const CD=function(e){var t=e.clientId,n=e.attributes,r=e.setAttributes,i=n.uniqueId,o=n.template,a=n.blockName,l=n.accordionTitleTypography,s=n.descriptionTypography;VP(t,i,r);var c=function(e){var t=u_(e),n=t.sharedDesktopCss,r=t.sharedTabletCss,i=t.sharedMobileCss,o=e.uniqueId,a=e.accordionTitleTypography,l=e.accordionTitleColors,s=e.descriptionTypography,c=e.descriptionColor,u=e.imgBorderRadius,d=e.imgBorder,h=e.imgBorderWidth,f=e.imgOverlayColor,p=e.contentTransitionTime,m=".".concat(o," .sp-eab-image-accordion-item"),g=[{selector:"".concat(m,":not(.active) .sp-eab-accordion-bg .sp-eab-overlay"),styles:{background:f}},{selector:"".concat(m,":is(.active) .sp-eab-accordion-bg .sp-eab-overlay"),styles:{background:f}},{selector:"".concat(m,":not(.active):hover .sp-eab-accordion-bg .sp-eab-overlay"),styles:{background:f}}],v=[].concat(ED(OD(e,"Desktop")),ED(n),[{selector:".".concat(o," .sp-eab-image-accordion-item .sp-eab-accordion-bg"),styles:{"border-style":null==d?void 0:d.style,"border-color":null==d?void 0:d.color,"border-width":zn(h.value,h.unit),"border-radius":zn(u.value,u.unit)}}],g,[{selector:".".concat(o," .sp-eab-image-accordion-item .sp-eab-image-title"),styles:kD({color:l},Zn(a))},{selector:".".concat(o," .sp-eab-image-accordion-item .sp-eab-image-desc"),styles:kD({color:c},Zn(s))},{selector:".".concat(o," .sp-eab-accordion-bg .animated "),styles:{"animation-duration":"".concat(null==p?void 0:p.value,"ms")}}]),b=[].concat(ED(OD(e,"Tablet")),ED(r)),y=[].concat(ED(OD(e,"Mobile")),ED(i));return $n({desktopCss:v,tabletCss:b,mobileCss:y})}(n),u=[l,s];return(0,m.useEffect)(function(){r({fontLists:Yn(u,"frontend")})},[l,s]),React.createElement("div",(0,wi.useBlockProps)(),React.createElement("style",null,c),React.createElement("style",null,Yn(u,"editor")),React.createElement(DP,null,React.createElement(Oi,{attributes:n,setAttributes:r,Inspector:nI}),o?React.createElement(cD,{attributes:n,setAttributes:r,clientId:t}):React.createElement(bT,{blockName:a,setAttributes:r})))},MD=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"sp-easy-accordion-pro/image-accordion","title":"Image Accordion","category":"sp-easy-accordion-pro","description":"Show images in a stylish accordion layout with expand effects.","textdomain":"easy-accordion-free","supports":{"align":["wide","full"],"customClassName":false},"example":{"attributes":{"isPreview":true}},"editorScript":"sp_eab_admin_index_js","editorStyle":"sp_eab_editor_style","script":["sp_eab_lightbox_js","sp_eab_script_js"],"style":["sp_eab_main_css","sp_eab_google_fonts","sp_eab_fontello_style","sp-ea-animation","sp_eab_lightBox_style"]}');function AD(e){return AD="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},AD(e)}var TD;function PD(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 _D(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"Desktop",n=e.uniqueId,r=e.blockName,i=e.itemsWidth,o=e.itemsVerticalGap,a=e.enableExpandAndCollapseIcon,l=e.toggleIconSize,s=e.toggleIconPadding,c=e.accordionTitlePadding,u=e.postMetaGap,d=e.postMetaMargin,h=e.contentPadding,f=e.toggleIconMargin,p=e.cartButtonPadding,m=e.metaDividerGap,g=e.imgToDescGap;return[{selector:".".concat(n,".sp-eab-wrapper"),styles:{"max-width":zn(null==i?void 0:i.device[t],Vn(i,t))}},{selector:".".concat(n," .sp-eab-accordion"),styles:{gap:zn(null==o?void 0:o.device[t],Vn(o,t))}},{selector:".".concat(n," .sp-eab-accordion-header-wrapper"),styles:{padding:zn(c.device[t],Vn(c,t))}},{selector:".".concat(n," .sp-eab-accordion-title-wrapper"),styles:VD({},qn(e,t,"accordionTitle"))},{selector:".".concat(n," .sp-eab-accordion-body"),styles:{padding:zn(null==h?void 0:h.device[t],Vn(h,t))}},{selector:".".concat(n," .sp-eab-post-details"),styles:VD({gap:zn(null==u?void 0:u.device[t],Vn(u,t)),margin:zn(null==d?void 0:d.device[t],Vn(d,t))},qn(e,t,"postMeta"))},{selector:".".concat(n," .sp-eab-post-excerpt"),styles:VD({},qn(e,t,"excerpt"))}].concat(ZD(a?[{selector:".".concat(n," .sp-eab-expand-collapse-icon"),styles:{"font-size":zn(l.device[t],Vn(l,t)),padding:zn(s.device[t],Vn(s,t))}}]:[]),ZD(a?[{selector:".".concat(n," .sp-eab-expand-collapse-icon"),styles:{"font-size":zn(l.device[t],Vn(l,t)),padding:zn(s.device[t],Vn(s,t)),margin:zn(f.device[t],Vn(f,t))}}]:[]),ZD("product-accordion"===r?[{selector:".".concat(n," .sp-eab-accordion-title-wrapper"),styles:VD({},qn(e,t,"accordionTitle"))},{selector:".".concat(n," .sp-eab-accordion-body"),styles:{gap:zn(g.device[t],Vn(g,t))}},{selector:".".concat(n," .eab-product-price .woocommerce-Price-amount"),styles:VD({},qn(e,t,"price"))},{selector:".".concat(n," .eab-add-to-cart"),styles:VD(VD({},qn(e,t,"addToCart")),{},{padding:zn(p.device[t],Vn(p,t))})},{selector:".".concat(n," .single_add_to_cart_button"),styles:VD(VD({},qn(e,t,"addToCart")),{},{padding:zn(p.device[t],Vn(p,t))})},{selector:".".concat(n," .eab-meta-divider"),styles:{margin:"".concat(zn(m.device[t],Vn(m,t))," auto")}}]:[]))};const UD=function(e){var t=u_(e),n=t.sharedDesktopCss,r=t.sharedTabletCss,i=t.sharedMobileCss,o=e.uniqueId,a=e.template,l=e.blockName,s=e.postMetaColor,c=e.excerptColor,u=e.postMetaTypography,d=e.excerptTypography,h=e.ContentBackground,f=e.animationTransitionDuration,p=e.animationEffect,m=e.enableExpandAndCollapseIcon,g=e.toggleIconColors,v=e.toggleIconBackground,b=e.toggleIconBorderRadius,y=e.rotate90deg,w=e.toggleIconsSet,E=e.toggleIconBorder,x=e.toggleIconBorderWidth,R=e.priceTypography,k=e.priceColor,S=e.addToCartTypography,O=e.cartButtonColors,C=e.cartButtonBgColors,M=e.cartButtonBorder,A=e.cartButtonBorderWidth,T=e.cartButtonBorderRadius,P=e.metaDividerColor,_=[].concat(ZD(KD(e,"Desktop")),ZD(n),ZD("product-accordion-two"!==a?function(e){var t=e.uniqueId,n=(e.template,e.accordionTitleBorder),r=e.accordionTitleTypography,i=e.accordionTitleNormalBoxShadow,o=e.accordionTitleBorderWidth,a=e.accordionTitleBorderRadius,l=e.accordionTitleColors,s=e.accordionTitleBackground;return[{selector:".".concat(t," .sp-eab-accordion-item"),styles:VD(VD({},Kn(n,o)),{},{"border-radius":zn(a.value,Vn(a)),"box-shadow":Fn(i)})},{selector:".".concat(t," .sp-eab-accordion-title-wrapper"),styles:VD({},Zn(r))},{selector:".".concat(t,".sp-eab-wrapper .sp-eab-accordion-heading"),styles:{color:l,background:s}}]}(e):[]),[{selector:".".concat(o," div:is(.sp-eab-accordion-body,.sp-eab-product-content-wrapper)"),styles:{background:h}},{selector:".".concat(o," .sp-eab-post-details"),styles:VD({color:s},Zn(u))},{selector:".".concat(o," .sp-eab-post-excerpt"),styles:VD({color:c},Zn(d))},"none"!==p&&{selector:".".concat(o," div:is(.eab-product-slider-content,.sp-eab-accordion-content-wrapper)"),styles:{"animation-duration":"".concat((null==f?void 0:f.value)||"").concat((null==f?void 0:f.unit)||"")}}],ZD(m?[{selector:".".concat(o," .sp-eab-expand-collapse-icon"),styles:VD(VD({color:g,background:v,"border-radius":zn(b.value,Vn(b))},y&&Ln([1,4,5,6,9,10,12],w.set)&&{display:"block",transform:"rotate(-90deg)"}),Kn(E,x))}]:[]),ZD("product-accordion"===l?[{selector:".".concat(o," .eab-product-price .woocommerce-Price-amount"),styles:VD({color:k},Zn(R))},{selector:".".concat(o," .eab-review-text"),styles:VD({color:c},Zn(d))},{selector:".".concat(o," .eab-product-price del .woocommerce-Price-amount"),styles:{color:Jn(k,.5)}},{selector:".".concat(o," .eab-product-price del"),styles:{color:Jn(k,.5)}},{selector:".".concat(o," .eab-add-to-cart"),styles:VD(VD({color:O.color,background:C.color},Kn(M,A)),{},{"border-radius":zn(T.value,T.unit)},Zn(S))},{selector:".".concat(o," .single_add_to_cart_button"),styles:VD(VD({color:O.color,background:C.color},Kn(M,A)),{},{"border-radius":zn(T.value,T.unit)},Zn(S))},{selector:".".concat(o," .eab-add-to-cart:hover"),styles:{color:O.hoverColor,background:C.hoverColor}},{selector:".".concat(o," .single_add_to_cart_button:hover"),styles:{color:O.hoverColor,background:C.hoverColor}},{selector:".".concat(o," .eab-meta-divider"),styles:{"border-top-color":P}}]:[])),I=[].concat(ZD(KD(e,"Tablet")),ZD(r)),D=[].concat(ZD(KD(e,"Mobile")),ZD(i));return $n({desktopCss:_,tabletCss:I,mobileCss:D})};var $D=(0,m.memo)(function(e){var t=e.data,n=(e.link,e.onClick,t.attachment_metadata),r=t.attachment_srcset,i=t.image_alt,o=(t.generalLinkOpen,t.imageSrcset),a=t.lazy,l=void 0!==a&&a,s=t.postTitle,c=t.attachment_url,u=t.showBadge,d=t.sale_badge,h=t.featuredImageSize,f=o?r:"",p=c||"";if(n&&"custom"!==h){var m,g=null===(m=n.sizes)||void 0===m?void 0:m[h];if(g){var v=null==c?void 0:c.replace(/\/[^\/]+$/,"/");p="".concat(v).concat(g.file)}}return React.createElement("div",{"data-component":"general",className:"sp-eab-featured-image-wrapper"},n&&React.createElement("img",{src:p,alt:i||s,srcSet:f,loading:l?"lazy":void 0}),u&&d&&React.createElement("span",{className:"sp-eab-sale-badge",dangerouslySetInnerHTML:{__html:d}}))}),GD=(0,m.memo)(function(e){e.author_url;var t=e.author,n=e.postDate,r=e.categoryList,i=e.metaDataOptions,o=(e.sku,e.type),a=e.onClick,l={author:React.createElement(m.Fragment,{key:"1"},React.createElement("span",{className:"sp-eab-post-meta sp-eab-post-author"},React.createElement("a",{href:"#",rel:"noreferrer"},React.createElement("span",{className:"sp-eab-post-meta-icon"},React.createElement(Xt,null)),React.createElement("span",{className:"sp-eab-post-meta-text"},t)))),category:React.createElement(m.Fragment,{key:"2"},React.createElement(YD,{categoryList:r,type:o})),date:React.createElement(m.Fragment,{key:"3"},React.createElement(React.Fragment,null,React.createElement("span",{className:"sp-eab-post-meta sp-eab-post-date"},React.createElement("span",{className:"sp-eab-post-meta-icon"},React.createElement(Jt,null)),React.createElement("span",{className:"sp-eab-post-meta-text"},(null==n?void 0:n.default)+" "))))};return React.createElement("div",{className:"sp-meta-data sp-eab-post-meta-details sp-d-flex"},React.createElement(React.Fragment,null,React.createElement("span",{key:i,className:"sp-eab-post-details sp-d-flex sp-gap-10px",onClick:a||null,"data-component":"meta_data"},null==i?void 0:i.map(function(e){return(null!=e&&e.isActive?l[e.value]:null)||null}))))}),YD=(0,m.memo)(function(e){var t=e.categoryList,n=e.type,r=(0,m.useRef)(null);return(0,m.useEffect)(function(){r.current&&r.current.querySelectorAll("li a").forEach(function(e){var t=function(e){e.preventDefault()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}})},[]),t&&React.createElement("span",{className:"sp-eab-post-meta sp-metadata-taxonomy",ref:r},"product"!==n?React.createElement("span",{className:"sp-metadata-taxonomy-icon sp-eab-post-meta-icon"},React.createElement(Qt,null)):"Categories: ",React.createElement("span",{className:"sp-eab-post-meta-text",dangerouslySetInnerHTML:{__html:t}}))}),XD=(0,m.memo)(function(e){var t=e.excerpt;return React.createElement("div",{className:"sp-eab-post-excerpt-wrapper"},React.createElement("div",{className:"sp-eab-post-excerpt",dangerouslySetInnerHTML:{__html:t}}))});const JD=(0,m.memo)(function(e){var t=e.data,n=e.imageData,r=t.title,i=t.link,o=t.toggleIconsSet,a=t.enableExpandAndCollapseIcon,l=t.toggleIconPosition,s=Ln([1,4,5,6,9,10,12],null==o?void 0:o.set),c=r||"No Title Found!";return React.createElement("span",{className:"sp-eab-accordion-header-wrapper sp-d-flex sp-align-center eab-icon-position-".concat(l)},React.createElement("span",{className:"sp-eab-accordion-header-start sp-d-flex sp-justify-start sp-align-center"},"post-accordion-two"===n.template&&n.showFeaturedImage&&n.attachment_metadata&&React.createElement("span",{className:"eab-feature-image"},React.createElement($D,{data:n,link:i})),React.createElement("span",{className:"sp-eab-title-subtitle-wrapper sp-d-flex sp-flex-col"},React.createElement("span",{className:"sp-eab-accordion-title-wrapper sp-d-flex sp-align-center"},c))),React.createElement("span",{className:"sp-eab-accordion-header-end ".concat(s?"eab-icon-animated":"eab-icon-static")},a&&React.createElement("span",{className:"sp-eab-expand-collapse-icon sp-d-block"},React.createElement("span",{className:"sp-eab-expand-icon ".concat(null==o?void 0:o.expand)}),React.createElement("span",{className:"sp-eab-collapse-icon ".concat(null==o?void 0:o.collapse)}))))});function QD(e){return QD="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},QD(e)}function ej(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 tj(e){for(var t=1;t=0&&ue.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:0,t=Math.floor(e),n=e%1>=.5,r=5-t-(n?1:0);return React.createElement(React.Fragment,null,Array(t).fill().map(function(e,t){return React.createElement("span",{key:"full-".concat(t),className:"eab-star full"},"★")}),n&&React.createElement("span",{className:"eab-star half"},"★"),Array(r).fill().map(function(e,t){return React.createElement("span",{key:"empty-".concat(t),className:"eab-star empty"},"★")}))}(Number(t.average_rating))),React.createElement("span",{className:"eab-review-text"},"(",null==t?void 0:t.review_count," reviews)")):null}),mj=(0,m.memo)(function(e){var t=e.product;return null!=t&&t.product_price?React.createElement("div",{className:"eab-product-price eab-price-".concat(t.type||"simple"),dangerouslySetInnerHTML:{__html:t.product_price}}):null}),gj=(0,m.memo)(function(e){var t,n,r=e.product,i=e.label,o=e.template,a=void 0===o?"":o,l=(t=(0,m.useState)(1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return hj(e,t);var n={}.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)?hj(e,t):void 0}}(t,n)||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.")}()),s=l[0],c=l[1];return r?"variable"===r.type?React.createElement("div",{className:"eab-product-cart-wrapper"},React.createElement("a",{href:"undefined",target:"_blank",rel:"noopener noreferrer",className:"button eab-add-to-cart"},r.button_text||(0,Bt.__)("Select Options","easy-accordion-free"))):"grouped"===r.type?React.createElement("div",{className:"eab-product-cart-wrapper"},React.createElement("a",{href:"undefined",className:"button eab-add-to-cart"},(0,Bt.__)("View products","easy-accordion-free"))):"external"===r.type?React.createElement("div",{className:"eab-product-cart-wrapper"},React.createElement("a",{href:"undefined",target:"_blank",rel:"noopener noreferrer",className:"button eab-add-to-cart"},r.button_text||(0,Bt.__)("Buy now","easy-accordion-free"))):React.createElement("div",{className:"eab-product-cart-wrapper"},"product-accordion-two"!==a&&React.createElement(fj,{value:s,onChange:c}),React.createElement("a",{href:"undefined","data-product_id":r.post_id,"data-quantity":s,className:"button add_to_cart_button ajax_add_to_cart eab-add-to-cart"},i||(0,Bt.__)("Add to cart","easy-accordion-free"))):null});function vj(e){return vj="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},vj(e)}function bj(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 yj(e){for(var t=1;t=0&&u0?React.createElement("div",{className:"speap-gutenberg-shortcode editor-styles-wrapper"},React.createElement("select",{className:"speap-shortcode-selector",onChange:function(e){return i({shortcode:e.target.value})},value:null==r?void 0:r.shortcode,name:"sp-eap-select-".concat(n)},React.createElement("option",{value:""},(0,Bt.__)("-- Select a shortcode --","easy-accordion-free")),null==o?void 0:o.map(function(e){var t=e.title.length>35?"".concat(e.title.substring(0,30),".... #(").concat(e.id,")"):"".concat(e.title," #(").concat(e.id,")");return React.createElement("option",{value:e.id.toString(),key:e.id.toString()},t)}))):React.createElement("div",{className:"sp-eap-shortcode-no-found-message"},(0,Bt.__)("No shortcode found. Please use an Easy Accordion block to continue.","easy-accordion-free"))))},save:function(){return null}};!function(){var e,t;null!==(e=sp_eab_localize_data)&&void 0!==e&&null!==(e=e.activeBlockList)&&void 0!==e&&e.includes(null==Lj?void 0:Lj.name)&&(null===(t=sp_easy_accordion_pro)||void 0===t?void 0:t.shortCodeList)&&(0,i.registerBlockType)(Lj.name,Lj)}(),(0,i.updateCategory)("sp-easy-accordion-pro",{icon:React.createElement(u,null)}),(0,i.updateCategory)("sp-easy-accordion-pro-blocks",{icon:React.createElement(d,null)}),ui()},611(){function e(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var _n=0,i=function(){};return{s:i,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:i}}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 o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n30)&&clearInterval(s)},100);else var c=0,u=setInterval(function(){c++,(function(){if(!wp.data.dispatch)return!1;var e=wp.data.dispatch;e("core/editor")?e("core/editor").setIsInserterOpened(!0):e("core/edit-post")&&e("core/edit-post").setIsInserterOpened(!0),t.searchParams.delete("eabblock_inserter"),history.replaceState(null,"",t.toString());var n=0,r=setInterval(function(){var e,t,o;n++,t=document.querySelectorAll(".block-editor-inserter__panel-title"),((o=Array.from(t).find(function(e){return"EASY ACCORDION"===e.textContent.trim()}))&&(o.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),1)||n>30)&&(clearInterval(r),i&&(e=i,setTimeout(function(){if(wp.blocks&&wp.data.dispatch)try{var t=wp.data.dispatch,n=t("core/block-editor");if(!n)return;var r=wp.blocks.createBlock(e);if(!r)return;n.insertBlock(r);var i=t("core/editor");i&&i.editPost({title:"Easy Accordion Page"}),setTimeout(function(){var e=(0,wp.data.dispatch)("core/block-editor");e&&r.clientId&&e.selectBlock(r.clientId)},200),setTimeout(function(){d()},1500);var o=new URL(window.location.href);o.searchParams.delete("eab_auto_insert"),history.replaceState(null,"",o.toString())}catch(e){}},500)))},100);return!0}()||c>20)&&clearInterval(u)},100)}function d(){var t,n=function(){var e=[document],t=document.querySelector('iframe[name="editor-canvas"]');return t&&t.contentDocument&&e.push(t.contentDocument),e}(),r=e(n);try{for(r.s();!(t=r.n()).done;){var i=t.value.querySelector(".sp-eab-layout-modal-skip-button");if(i)return i.click(),!0}}catch(e){r.e(e)}finally{r.f()}var l,s=e(n);try{for(s.s();!(l=s.n()).done;){var c,u=e(l.value.querySelectorAll("span, button, .components-button"));try{for(u.s();!(c=u.n()).done;){var h=c.value;if("Skip"===h.textContent.trim())return h.click(),!0}}catch(e){u.e(e)}finally{u.f()}}}catch(e){s.e(e)}finally{s.f()}return o{if(!n){var a=1/0;for(u=0;u=o)&&Object.keys(r.O).every(e=>r.O[e](n[s]))?n.splice(s--,1):(l=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={532:0,587:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,l,s]=n,c=0;if(a.some(t=>0!==e[t])){for(i in l)r.o(l,i)&&(r.m[i]=l[i]);if(s)var u=s(r)}for(t&&t(n);cr(3));i=r.O(i)})();