datocms-plugin-everything-svg 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle.js +1 -1
- package/build/main.css +8 -8
- package/package.json +1 -1
package/build/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t,n={7688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._meta=void 0,this._task=e,this._scheduler=t}withDescriptor(e){return this._descriptor=e,this}withMutex(e){return this._mutex=e,this}withMeta(e){return this._meta=e,this}runBeforeExecuting(e){return this._onPreExecute=e,this}handleCollisions(e){return this._onTaskCollision=e,this}execute(e){return this._scheduler.enqueue({priority:e,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}},2556:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollisionStrategy=void 0,(n=t.TaskCollisionStrategy||(t.TaskCollisionStrategy={}))[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"},7026:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2556),a=o(n(8918)),u=n(6846),s=o(n(7688));var l;function c(e,t){for(let n of e.listeners)n.reject(t)}!function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"}(l||(l={})),t.default=class{constructor(e,t={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=e,this._samePriorityMutex=!!t.samePriorityMutex,this._mutexStrategy=t.mutexStrategy||u.mutexEquality,t.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(e){return new Promise(((t,n)=>{"function"==typeof e&&(e={priority:0,execute:e});const r=this._checkMutexes(e,t,n);r.task?this._addTask(r.task):r.canceled&&n(this.createCanceledError())}))}prepare(e){return new s.default(e,this)}_addTask(e){this._queue.push(e),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce(((e,t)=>t.state===l.EXECUTING?e+1:e),0)}createCanceledError(){return new a.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find((e=>e.state===l.PENDING))}_isIdle(){return 0===this._queue.length||!this._queue.find((e=>e.state!==l.TERMINATED))}_removeTaskAt(e){this._queue.splice(e,1)}_executeTask(e){return r(this,void 0,void 0,(function*(){try{return e.task.onPreExecute&&e.task.onPreExecute(),yield e.task.execute()}catch(e){throw e}finally{e.state=l.TERMINATED;let t=this._queue.indexOf(e);this._removeTaskAt(t),this._executeNextTasks()}}))}_executeNextTasks(){let e=this.executingTasks;if(e>=this._maxConcurrentTasks)return;let t=this._maxConcurrentTasks-e;for(let e=0;e<t;e++){const e=this._findFirstPendingTask();if(!e)return void(this._isIdle()&&this._switchToIdle());e.state=l.EXECUTING,this._executeTask(e).then((t=>{for(const{resolve:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while resolving listener",e)}})).catch((t=>{for(const{reject:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while rejecting listener",e)}}))}}_switchToIdle(){this._isExecuting=!1;const e=this._idleListeners;this._idleListeners=[];for(const{resolve:t}of e)try{t()}catch(e){}}waitForIdle(){return this._isExecuting?new Promise(((e,t)=>{this._idleListeners.push({resolve:e,reject:t})})):Promise.resolve()}_applyPriorities(){this._queue.sort(((e,t)=>t.task.priority-e.task.priority))}_checkMutexes(e,t,n){for(let r=0;r<this._queue.length;r++){let o,a,u=this._queue[r];if(u.state!==l.TERMINATED&&(!this._samePriorityMutex||u.task.priority==e.priority)&&u.task.mutex&&e.mutex&&this._mutexStrategy(u.task.mutex,e.mutex)){if(u.task.onTaskCollision){if(o=u.task.onTaskCollision(e),o===i.TaskCollisionStrategy.KEEP_OTHER&&u.state!==l.EXECUTING){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(o===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(o===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}};if(o===i.TaskCollisionStrategy.RESOLVE_THIS)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1}}if(e.onTaskCollision){if(a=e.onTaskCollision(u.task),a===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(a===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(a===i.TaskCollisionStrategy.RESOLVE_OTHER)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1};if(a===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}}}if(o!==i.TaskCollisionStrategy.KEEP_BOTH||a!==i.TaskCollisionStrategy.KEEP_BOTH)return{canceled:!0}}}return{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n}]}}}}},8918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._code=e,this._message=t}get code(){return this._code}get message(){return this._message}}},6846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=void 0,t.mutexBitwiseAnd=function(e,t){return!!(e&t)},t.mutexEquality=function(e,t){return e===t}},3271:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=t.SchedulerError=t.TaskCollisionStrategy=t.Scheduler=void 0;const o=r(n(7026));t.Scheduler=o.default;const i=n(2556);Object.defineProperty(t,"TaskCollisionStrategy",{enumerable:!0,get:function(){return i.TaskCollisionStrategy}});const a=r(n(8918));t.SchedulerError=a.default;const u=n(6846);Object.defineProperty(t,"mutexBitwiseAnd",{enumerable:!0,get:function(){return u.mutexBitwiseAnd}}),Object.defineProperty(t,"mutexEquality",{enumerable:!0,get:function(){return u.mutexEquality}})},6454:(e,t,n)=>{"use strict";const r=n(3918),o=n(2923),i=n(8904);e.exports={XMLParser:o,XMLValidator:r,XMLBuilder:i}},5334:(e,t)=>{"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),o=r.length;for(let i=0;i<o;i++)e[r[i]]="strict"===n?[t[r[i]]]:t[r[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==o.exec(e))},t.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const o=[];o.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)o.push(r[e]);n.push(o),r=t.exec(e)}return n},t.nameRegexp=r},3918:(e,t,n)=>{"use strict";const r=n(5334),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function a(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function u(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},o,t);const n=[];let s=!1,l=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=a(e,o),o.err)return o}else{if("<"!==e[o]){if(i(e[o]))continue;return h("InvalidChar","char '"+e[o]+"' is not expected.",y(e,o))}{let m=o;if(o++,"!"===e[o]){o=u(e,o);continue}{let v=!1;"/"===e[o]&&(v=!0,o++);let g="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)g+=e[o];if(g=g.trim(),"/"===g[g.length-1]&&(g=g.substring(0,g.length-1),o--),f=g,!r.isName(f)){let t;return t=0===g.trim().length?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",h("InvalidTag",t,y(e,o))}const b=c(e,o);if(!1===b)return h("InvalidAttr","Attributes for '"+g+"' have open quote.",y(e,o));let w=b.value;if(o=b.index,"/"===w[w.length-1]){const n=o-w.length;w=w.substring(0,w.length-1);const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,n+r.err.line));s=!0}else if(v){if(!b.tagClosed)return h("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",y(e,o));if(w.trim().length>0)return h("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",y(e,m));if(0===n.length)return h("InvalidTag","Closing tag '"+g+"' has not been opened.",y(e,m));{const t=n.pop();if(g!==t.tagName){let n=y(e,t.tagStartPos);return h("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+g+"'.",y(e,m))}0==n.length&&(l=!0)}}else{const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,o-w.length+r.err.line));if(!0===l)return h("InvalidXml","Multiple possible root nodes found.",y(e,o));-1!==t.unpairedTags.indexOf(g)||n.push({tagName:g,tagStartPos:m}),s=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=u(e,o);continue}if("?"!==e[o+1])break;if(o=a(e,++o),o.err)return o}else if("&"===e[o]){const t=d(e,o);if(-1==t)return h("InvalidChar","char '&' is not expected.",y(e,o));o=t}else if(!0===l&&!i(e[o]))return h("InvalidXml","Extra text at the end",y(e,o));"<"===e[o]&&o--}}}var f;return s?1==n.length?h("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",y(e,n[0].tagStartPos)):!(n.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};const s='"',l="'";function c(e,t){let n="",r="",o=!1;for(;t<e.length;t++){if(e[t]===s||e[t]===l)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){o=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:o}}const f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const n=r.getAllMatches(e,f),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return h("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return h("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const r=n[e][2];if(!m(r))return h("InvalidAttr","Attribute '"+r+"' is an invalid name.",v(n[e]));if(o.hasOwnProperty(r))return h("InvalidAttr","Attribute '"+r+"' is repeated.",v(n[e]));o[r]=1}return!0}function d(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function h(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return r.isName(e)}function y(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},8904:(e,t,n)=>{"use strict";const r=n(2788),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},o,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=s),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function u(e){return this.options.indentBy.repeat(e)}function s(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let n="",r="";for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===e[o])this.isAttribute(o)&&(r+="");else if(null===e[o])this.isAttribute(o)?r+="":"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const i=this.isAttribute(o);if(i)n+=this.buildAttrPairStr(i,""+e[o]);else if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const n=e[o].length;let i="";for(let a=0;a<n;a++){const n=e[o][a];void 0===n||(null===n?"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:"object"==typeof n?this.options.oneListGroup?i+=this.j2x(n,t+1).val:i+=this.processTextOrObjNode(n,o,t):i+=this.buildTextValNode(n,o,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",t)),r+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const t=Object.keys(e[o]),r=t.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(t[i],""+e[o][t[i]])}else r+=this.processTextOrObjNode(e[o],o,t);return{attrStr:n,val:r}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,n,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+i+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+n+i+">"+e+o}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=i},2788:e=>{function t(e,a,u,s){let l="",c=!1;for(let f=0;f<e.length;f++){const p=e[f],d=n(p);if(void 0===d)continue;let h="";if(h=0===u.length?d:`${u}.${d}`,d===a.textNodeName){let e=p[d];o(h,a)||(e=a.tagValueProcessor(d,e),e=i(e,a)),c&&(l+=s),l+=e,c=!1;continue}if(d===a.cdataPropName){c&&(l+=s),l+=`<![CDATA[${p[d][0][a.textNodeName]}]]>`,c=!1;continue}if(d===a.commentPropName){l+=s+`\x3c!--${p[d][0][a.textNodeName]}--\x3e`,c=!0;continue}if("?"===d[0]){const e=r(p[":@"],a),t="?xml"===d?"":s;let n=p[d][0][a.textNodeName];n=0!==n.length?" "+n:"",l+=t+`<${d}${n}${e}?>`,c=!0;continue}let m=s;""!==m&&(m+=a.indentBy);const y=s+`<${d}${r(p[":@"],a)}`,v=t(p[d],a,h,m);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?l+=y+">":l+=y+"/>":v&&0!==v.length||!a.suppressEmptyNode?v&&v.endsWith(">")?l+=y+`>${v}${s}</${d}>`:(l+=y+">",v&&""!==s&&(v.includes("/>")||v.includes("</"))?l+=s+a.indentBy+v+s:l+=v,l+=`</${d}>`):l+=y+"/>",c=!0}return l}function n(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(e.hasOwnProperty(r)&&":@"!==r)return r}}function r(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let o=t.attributeValueProcessor(r,e[r]);o=i(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function o(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}e.exports=function(e,n){let r="";return n.format&&n.indentBy.length>0&&(r="\n"),t(e,n,"",r)}},9400:(e,t,n)=>{const r=n(5334);function o(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const r=e[t++];let o="";for(;t<e.length&&e[t]!==r;t++)o+=e[t];return[n,o,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function u(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function s(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function l(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function c(e){if(r.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let r=1,f=!1,p=!1,d="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,r--):r--,0===r)break}else"["===e[t]?f=!0:d+=e[t];else{if(f&&a(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(n[c(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(f&&u(e,t))t+=8;else if(f&&s(e,t))t+=8;else if(f&&l(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");p=!0}r++,d=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}},460:(e,t)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},7680:(e,t,n)=>{"use strict";const r=n(5334),o=n(3832),i=n(9400),a=n(7983);function u(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function s(e,t,n,r,o,i,a){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,o,i);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?w(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function l(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){const n=r.getAllMatches(e,c),o=n.length,i={};for(let e=0;e<o;e++){const r=this.resolveNameSpace(n[e][1]);let o=n[e][4],a=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==o){this.options.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o);const e=this.options.attributeValueProcessor(r,o,t);i[a]=null==e?o:typeof e!=typeof o||e!==o?e:w(o,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[a]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const p=function(e){e=e.replace(/\r\n?/g,"\n");const t=new o("!xml");let n=t,r="",a="";for(let u=0;u<e.length;u++)if("<"===e[u])if("/"===e[u+1]){const t=v(e,">",u,"Closing Tag is not closed.");let o=e.substring(u+2,t).trim();if(this.options.removeNSPrefix){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),n&&(r=this.saveTextToParentTag(r,n,a));const i=a.substring(a.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);let s=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(s=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):s=a.lastIndexOf("."),a=a.substring(0,s),n=this.tagsNodeStack.pop(),r="",u=t}else if("?"===e[u+1]){let t=g(e,u,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new o(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}u=t.closeIndex+1}else if("!--"===e.substr(u+1,3)){const t=v(e,"--\x3e",u+4,"Comment is not closed.");if(this.options.commentPropName){const o=e.substring(u+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}u=t}else if("!D"===e.substr(u+1,2)){const t=i(e,u);this.docTypeEntities=t.entities,u=t.i}else if("!["===e.substr(u+1,2)){const t=v(e,"]]>",u,"CDATA is not closed.")-2,o=e.substring(u+9,t);r=this.saveTextToParentTag(r,n,a);let i=this.parseTextData(o,n.tagname,a,!0,!1,!0,!0);null==i&&(i=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]):n.add(this.options.textNodeName,i),u=t+2}else{let i=g(e,u,this.options.removeNSPrefix),s=i.tagName;const l=i.rawTagName;let c=i.tagExp,f=i.attrExpPresent,p=i.closeIndex;this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));const d=n;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),s!==t.tagname&&(a+=a?"."+s:s),this.isItStopNode(this.options.stopNodes,a,s)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),u=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(s))u=i.closeIndex;else{const n=this.readStopNodeData(e,l,p+1);if(!n)throw new Error(`Unexpected end of ${l}`);u=n.i,t=n.tagContent}const r=new o(s);s!==c&&f&&(r[":@"]=this.buildAttributesMap(c,a,s)),t&&(t=this.parseTextData(t,s,a,!0,f,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),this.options.transformTagName&&(s=this.options.transformTagName(s));const e=new o(s);s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new o(s);this.tagsNodeStack.push(n),s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),n=e}r="",u=p}}else r+=e[u];return t.child};function d(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const h=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,n){const r="*."+n;for(const n in e){const o=e[n];if(r===o||t===o)return!0}return!1}function v(e,t,n,r){const o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}function g(e,t,n,r=">"){const o=function(e,t,n=">"){let r,o="";for(let i=t;i<e.length;i++){let t=e[i];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,r);if(!o)return;let i=o.data;const a=o.index,u=i.search(/\s/);let s=i,l=!0;-1!==u&&(s=i.substring(0,u),i=i.substring(u+1).trimStart());const c=s;if(n){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1),l=s!==o.data.substr(e+1))}return{tagName:s,tagExp:i,closeIndex:a,attrExpPresent:l,rawTagName:c}}function b(e,t,n){const r=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=v(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,0===o))return{tagContent:e.substring(r,n),i};n=i}else if("?"===e[n+1])n=v(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=v(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=v(e,"]]>",n,"StopNode is not closed.")-2;else{const r=g(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&o++,n=r.closeIndex)}}function w(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=s,this.resolveNameSpace=l,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=h,this.readStopNodeData=b,this.saveTextToParentTag=m,this.addChild=d}}},2923:(e,t,n)=>{const{buildOptions:r}=n(460),o=n(7680),{prettify:i}=n(5629),a=n(3918);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new o(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:i(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},5629:(e,t)=>{"use strict";function n(e,t,a){let u;const s={};for(let l=0;l<e.length;l++){const c=e[l],f=r(c);let p="";if(p=void 0===a?f:a+"."+f,f===t.textNodeName)void 0===u?u=c[f]:u+=""+c[f];else{if(void 0===f)continue;if(c[f]){let e=n(c[f],t,p);const r=i(e,t);c[":@"]?o(e,c[":@"],p,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[f]&&s.hasOwnProperty(f)?(Array.isArray(s[f])||(s[f]=[s[f]]),s[f].push(e)):t.isArray(f,p,r)?s[f]=[e]:s[f]=e}}}return"string"==typeof u?u.length>0&&(s[t.textNodeName]=u):void 0!==u&&(s[t.textNodeName]=u),s}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function o(e,t,n,r){if(t){const o=Object.keys(t),i=o.length;for(let a=0;a<i;a++){const i=o[a];r.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function i(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}t.prettify=function(e,t){return n(e,t)}},3832:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=s(t),m=s(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||u&&u[v])){var g=p(n,v);try{l(t,v,g)}catch(e){}}}}return t}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),a=n(2749),u=n(5749);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},79:(e,t,n)=>{var r=n(3702),o=n(80),i=n(4739),a=n(8655),u=n(1175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),a=n(4509),u=n(2949);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),i=n(3805),a=n(7473),u=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,f=l.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},7556:(e,t,n)=>{var r=n(1873),o=n(4932),i=n(6449),a=n(4394),u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1769:(e,t,n)=>{var r=n(6449),o=n(8586),i=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8586:(e,t,n)=>{var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1802:(e,t,n)=>{var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},6449:e=>{var t=Array.isArray;e.exports=t},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},104:(e,t,n)=>{var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},4482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(5363);t.default=(e,t,n)=>{const i=e.localName,a=e.local,u=e.remote,s=e.originForSending,l=e.originForReceiving;let c=!1;n(`${i}: Connecting call receiver`);const f=e=>{if(e.source!==u||e.data.penpal!==r.CALL)return;if(e.origin!==l)return void n(`${i} received message from origin ${e.origin} which did not match expected origin ${l}`);const a=e.data,f=a.methodName,p=a.args,d=a.id;n(`${i}: Received ${f}() call`);const h=e=>t=>{if(n(`${i}: Sending ${f}() reply`),c)return void n(`${i}: Unable to send ${f}() reply due to destroyed connection`);const a={penpal:r.REPLY,id:d,resolution:e,returnValue:t};e===r.REJECTED&&t instanceof Error&&(a.returnValue=(0,o.serializeError)(t),a.returnValueIsError=!0);try{u.postMessage(a,s)}catch(e){throw e.name===r.DATA_CLONE_ERROR&&u.postMessage({penpal:r.REPLY,id:d,resolution:r.REJECTED,returnValue:(0,o.serializeError)(e),returnValueIsError:!0},s),e}};new Promise((e=>e(t[f].apply(t,p)))).then(h(r.FULFILLED),h(r.REJECTED))};return a.addEventListener(r.MESSAGE,f),()=>{c=!0,a.removeEventListener(r.MESSAGE,f)}},e.exports=t.default},2502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(5884),i=n(8005),a=(r=n(1043))&&r.__esModule?r:{default:r},u=n(5363);t.default=(e,t,n,r,s)=>{const l=t.localName,c=t.local,f=t.remote,p=t.originForSending,d=t.originForReceiving;let h=!1;return s(`${l}: Connecting call sender`),n.reduce(((e,t)=>(e[t]=(e=>function(){for(var t=arguments.length,n=new Array(t),m=0;m<t;m++)n[m]=arguments[m];let y;s(`${l}: Sending ${e}() call`);try{f.closed&&(y=!0)}catch(e){y=!0}if(y&&r(),h){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=i.ERR_CONNECTION_DESTROYED,t}return new Promise(((t,r)=>{const i=(0,a.default)(),h=n=>{if(n.source!==f||n.data.penpal!==o.REPLY||n.data.id!==i)return;if(n.origin!==d)return void s(`${l} received message from origin ${n.origin} which did not match expected origin ${d}`);s(`${l}: Received ${e}() reply`),c.removeEventListener(o.MESSAGE,h);let a=n.data.returnValue;n.data.returnValueIsError&&(a=(0,u.deserializeError)(a)),(n.data.resolution===o.FULFILLED?t:r)(a)};c.addEventListener(o.MESSAGE,h),f.postMessage({penpal:o.CALL,id:i,methodName:e,args:n},p)}))})(t),e)),e),()=>{h=!0}},e.exports=t.default},7414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(8005),i=l(n(686)),a=l(n(4482)),u=l(n(2502)),s=l(n(6913));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentOrigin,n=void 0===t?"*":t,l=e.methods,c=void 0===l?{}:l,f=e.timeout,p=e.debug;const d=(0,s.default)(p);if(window===window.top){const e=new Error("connectToParent() must be called within an iframe");throw e.code=o.ERR_NOT_IN_IFRAME,e}const h=(0,i.default)(),m=h.destroy,y=h.onDestroy,v=window,g=v.parent;return{promise:new Promise(((e,t)=>{let i;void 0!==f&&(i=setTimeout((()=>{const e=new Error(`Connection to parent timed out after ${f}ms`);e.code=o.ERR_CONNECTION_TIMEOUT,t(e),m()}),f));const s=t=>{try{clearTimeout()}catch(e){return}if(t.source!==g||t.data.penpal!==r.HANDSHAKE_REPLY)return;if("*"!==n&&n!==t.origin)return void d(`Child received handshake reply from origin ${t.origin} which did not match expected origin ${n}`);d("Child: Received handshake reply"),v.removeEventListener(r.MESSAGE,s);const o={localName:"Child",local:v,remote:g,originForSending:"null"===t.origin?"*":t.origin,originForReceiving:t.origin},l={},f=(0,a.default)(o,c,d);y(f);const p=(0,u.default)(l,o,t.data.methodNames,m,d);y(p),clearTimeout(i),e(l)};v.addEventListener(r.MESSAGE,s),y((()=>{v.removeEventListener(r.MESSAGE,s);const e=new Error("Connection destroyed");e.code=o.ERR_CONNECTION_DESTROYED,t(e)})),d("Child: Sending handshake"),g.postMessage({penpal:r.HANDSHAKE,methodNames:Object.keys(c)},n)})),destroy:m}},e.exports=t.default},5884:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DATA_CLONE_ERROR=t.MESSAGE=t.REJECTED=t.FULFILLED=t.REPLY=t.CALL=t.HANDSHAKE_REPLY=t.HANDSHAKE=void 0,t.HANDSHAKE="handshake",t.HANDSHAKE_REPLY="handshake-reply",t.CALL="call",t.REPLY="reply",t.FULFILLED="fulfilled",t.REJECTED="rejected",t.MESSAGE="message",t.DATA_CLONE_ERROR="DataCloneError"},686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=()=>{const e=[];let t=!1;return{destroy(){t=!0,e.forEach((e=>{e()}))},onDestroy(n){t?n():e.push(n)}}},e.exports=t.default},6913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>function(){if(e){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.log("[Penpal]",...n)}},e.exports=t.default},8005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERR_NO_IFRAME_SRC=t.ERR_NOT_IN_IFRAME=t.ERR_CONNECTION_TIMEOUT=t.ERR_CONNECTION_DESTROYED=void 0,t.ERR_CONNECTION_DESTROYED="ConnectionDestroyed",t.ERR_CONNECTION_TIMEOUT="ConnectionTimeout",t.ERR_NOT_IN_IFRAME="NotInIframe",t.ERR_NO_IFRAME_SRC="NoIframeSrc"},5363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeError=t.serializeError=void 0,t.serializeError=e=>({name:e.name,message:e.message,stack:e.stack}),t.deserializeError=e=>{const t=new Error;return Object.keys(e).forEach((n=>t[n]=e[n])),t}},1043:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=0;t.default=()=>++n,e.exports=t.default},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function s(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(d,e)&&(p.test(e)?h[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var A,R=Object.assign;function M(e){if(void 0===A)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var V=!1;function z(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=u);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case O:return"Profiler";case E:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:B(n)}}function ie(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ve=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ee=null;function Oe(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function ke(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function Pe(){if(xe){var e=xe,t=Ee;if(Ee=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Te(e,t){return e(t)}function Ce(){}var Ie=!1;function Ne(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==xe||null!==Ee)&&(Ce(),Pe())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Le=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Le=!1}function Fe(e,t,n,r,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Ae=!1,Re=null,Me=!1,Ve=null,ze={onError:function(e){Ae=!0,Re=e}};function Ue(e,t,n,r,o,i,a,u,s){Ae=!1,Re=null,Fe.apply(ze,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Be(e){if(qe(e)!==e)throw Error(i(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Be(o),e;if(a===r)return Be(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,s=o.child;s;){if(s===n){u=!0,n=o,r=a;break}if(s===r){u=!0,r=o,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=o;break}if(s===r){u=!0,r=a,n=o;break}s=s.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,We=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/st|0)|0},ut=Math.log,st=Math.LN2,lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var u=a&~o;0!==u?r=ft(u):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,St,xt,Et,Ot,kt=!1,Pt=[],Tt=null,Ct=null,It=null,Nt=new Map,jt=new Map,Lt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function At(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Rt(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Vt(e,t,n){Mt(e)&&n.delete(t)}function zt(){kt=!1,null!==Tt&&Mt(Tt)&&(Tt=null),null!==Ct&&Mt(Ct)&&(Ct=null),null!==It&&Mt(It)&&(It=null),Nt.forEach(Vt),jt.forEach(Vt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Ct&&Ut(Ct,e),null!==It&&Ut(It,e),Nt.forEach(t),jt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Rt(n),null===n.blockedOn&&Lt.shift()}var Ht=w.ReactCurrentBatchConfig,Bt=!0;function Gt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function $t(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Yt(e,t,n,r){if(Bt){var o=Qt(e,t,n,r);if(null===o)Br(e,t,r,Wt,n),Ft(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=At(Tt,e,t,n,r,o),!0;case"dragenter":return Ct=At(Ct,e,t,n,r,o),!0;case"mouseover":return It=At(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,At(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jt.set(i,At(jt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&_t(i),null===(i=Qt(e,t,n,r))&&Br(e,t,r,Wt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Wt=null;function Qt(e,t,n,r){if(Wt=null,null!==(e=bo(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,un,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),fn=R({},ln,{view:0,detail:0}),pn=on(fn),dn=R({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,un=e.screenY-sn.screenY):un=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=on(dn),mn=on(R({},dn,{dataTransfer:0})),yn=on(R({},fn,{relatedTarget:0})),vn=on(R({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=R({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(R({},ln,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return En}var kn=R({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(kn),Tn=on(R({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=on(R({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),In=on(R({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=R({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(Nn),Ln=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var An=c&&"TextEvent"in window&&!Fn,Rn=c&&(!Dn||Fn&&8<Fn&&11>=Fn),Mn=String.fromCharCode(32),Vn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Gn(e,t,n,r){ke(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Yn=null;function Wn(e){Mr(e,0)}function Qn(e){if(Y(_o(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Yn=$n=null)}function nr(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];Gn(t,Yn,e,_e(e)),Ne(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==W(r)||(r="selectionStart"in(r=yr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=$r(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},xr={},Er={};function Or(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return xr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Or("animationend"),Pr=Or("animationiteration"),Tr=Or("animationstart"),Cr=Or("transitionend"),Ir=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Ir.set(e,t),s(t,[e])}for(var Lr=0;Lr<Nr.length;Lr++){var Dr=Nr[Lr];jr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}jr(kr,"onAnimationEnd"),jr(Pr,"onAnimationIteration"),jr(Tr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Cr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,s,l){if(Ue.apply(this,arguments),Ae){if(!Ae)throw Error(i(198));var c=Re;Ae=!1,Re=null,Me||(Me=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;Rr(o,u,l),i=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;Rr(o,u,l),i=s}}}if(Me)throw e=Ve,Me=!1,Ve=null,e}function Vr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Kt(t)){case 1:var o=Gt;break;case 4:o=$t;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=bo(u)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}u=u.parentNode}}r=r.return}Ne((function(){var r=i,o=_e(n),a=[];e:{var u=Ir.get(e);if(void 0!==u){var s=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":l="focus",s=yn;break;case"focusout":l="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Cn;break;case kr:case Pr:case Tr:s=vn;break;case Cr:s=In;break;case"scroll":s=pn;break;case"wheel":s=jn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=!!(4&t),f=!c&&"scroll"===e,p=c?null!==u?u+"Capture":null:u;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&null!=(m=je(h,p))&&c.push(Gr(h,m,d))),f)break;h=h.return}0<c.length&&(u=new s(u,l,null,n,o),a.push({event:u,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!bo(l)&&!l[mo])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?bo(l):null)&&(l!==(f=qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==s?u:_o(s),d=null==l?u:_o(l),(u=new c(m,h+"leave",s,n,o)).target=f,u.relatedTarget=d,m=null,bo(o)===r&&((c=new c(p,h+"enter",l,n,o)).target=d,c.relatedTarget=f,m=c),f=m,s&&l)e:{for(p=l,h=0,d=c=s;d;d=Yr(d))h++;for(d=0,m=p;m;m=Yr(m))d++;for(;0<h-d;)c=Yr(c),h--;for(;0<d-h;)p=Yr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Yr(c),p=Yr(p)}c=null}else c=null;null!==s&&Wr(a,u,s,c,!1),null!==l&&null!==f&&Wr(a,f,l,c,!0)}if("select"===(s=(u=r?_o(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=Kn;else if(Bn(u))if(Xn)y=ar;else{y=or;var v=rr}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(y=ir);switch(y&&(y=y(e,r))?Gn(a,y,n,o):(v&&v(e,u,r),"focusout"===e&&(v=u._wrapperState)&&v.controlled&&"number"===u.type&&ee(u,"number",u.value)),v=r?_o(r):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,qn=!0)),0<(v=$r(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Un(n)))&&(b.data=g))),(g=An?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Vn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=$r(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Mr(a,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,n))&&r.unshift(Gr(e,i,o)),null!=(i=je(e,t))&&r.push(Gr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(s=je(n,i))&&a.unshift(Gr(n,s,u)):o||null!=(s=je(n,i))&&a.push(Gr(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(uo)}:ro;function uo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function lo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,yo="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var xo=[],Eo=-1;function Oo(e){return{current:e}}function ko(e){0>Eo||(e.current=xo[Eo],xo[Eo]=null,Eo--)}function Po(e,t){Eo++,xo[Eo]=e.current,e.current=t}var To={},Co=Oo(To),Io=Oo(!1),No=To;function jo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=e.childContextTypes}function Do(){ko(Io),ko(Co)}function Fo(e,t,n){if(Co.current!==To)throw Error(i(168));Po(Co,t),Po(Io,n)}function Ao(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return R({},n,r)}function Ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,No=Co.current,Po(Co,e),Po(Io,Io.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ao(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,ko(Io),ko(Co),Po(Co,e)):ko(Io),Po(Io,n)}var Vo=null,zo=!1,Uo=!1;function qo(e){null===Vo?Vo=[e]:Vo.push(e)}function Ho(){if(!Uo&&null!==Vo){Uo=!0;var e=0,t=bt;try{var n=Vo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vo=null,zo=!1}catch(t){throw null!==Vo&&(Vo=Vo.slice(e+1)),Ye(Ze,Ho),t}finally{bt=t,Uo=!1}}return null}var Bo=[],Go=0,$o=null,Yo=0,Wo=[],Qo=0,Ko=null,Xo=1,Jo="";function Zo(e,t){Bo[Go++]=Yo,Bo[Go++]=$o,$o=e,Yo=t}function ei(e,t,n){Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Ko=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===$o;)$o=Bo[--Go],Bo[Go]=null,Yo=Bo[--Go],Bo[Go]=null;for(;e===Ko;)Ko=Wo[--Qo],Wo[Qo]=null,Jo=Wo[--Qo],Wo[Qo]=null,Xo=Wo[--Qo],Wo[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function ui(e,t){var n=Nl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=lo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function li(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(li(e))throw Error(i(418));t=lo(n.nextSibling);var r=ri;t&&si(e,t)?ui(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(li(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(li(e))throw di(),Error(i(418));for(;t;)ui(e,t),t=lo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=lo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?lo(e.stateNode.nextSibling):null;return!0}function di(){for(var e=oi;e;)e=lo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var yi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Rl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===x?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===j&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Dl(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Fl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Rl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Dl(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case S:return(t=Ml(t,e.mode,n)).return=e,t;case j:return p(e,(0,t._init)(t._payload),n)}if(te(t)||F(t))return(t=Fl(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?l(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case j:return d(e,t,(o=n._init)(n._payload),r)}if(te(n)||F(n))return null!==o?null:f(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case j:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||F(r))return f(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(o,i,u,s){for(var l=null,c=null,f=i,m=i=0,y=null;null!==f&&m<u.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],s);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?l=v:c.sibling=v,c=v,f=y}if(m===u.length)return n(o,f),ii&&Zo(o,m),l;if(null===f){for(;m<u.length;m++)null!==(f=p(o,u[m],s))&&(i=a(f,i,m),null===c?l=f:c.sibling=f,c=f);return ii&&Zo(o,m),l}for(f=r(o,f);m<u.length;m++)null!==(y=h(f,o,m,u[m],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),l}function y(o,u,s,l){var c=F(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var f=c=null,m=u,y=u=0,v=null,g=s.next();null!==m&&!g.done;y++,g=s.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=d(o,m,g.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=a(b,u,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),ii&&Zo(o,y),c;if(null===m){for(;!g.done;y++,g=s.next())null!==(g=p(o,g.value,l))&&(u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return ii&&Zo(o,y),c}for(m=r(o,m);!g.done;y++,g=s.next())null!==(g=h(m,o,y,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,y),c}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var l=a.key,c=i;null!==c;){if(c.key===l){if((l=a.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===j&&bi(l)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=vi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((i=Fl(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Dl(a.type,a.key,a.props,null,r.mode,s)).ref=vi(r,i,a),s.return=r,r=s)}return u(r);case S:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ml(a,r.mode,s)).return=r,r=i}return u(r);case j:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(F(a))return y(r,i,a,s);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Rl(a,r.mode,s)).return=r,r=i),u(r)):n(r,i)}}var _i=wi(!0),Si=wi(!1),xi=Oo(null),Ei=null,Oi=null,ki=null;function Pi(){ki=Oi=Ei=null}function Ti(e){var t=xi.current;ko(xi),e._currentValue=t}function Ci(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){Ei=e,ki=Oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bu=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Oi){if(null===Ei)throw Error(i(308));Oi=e,Ei.dependencies={lanes:0,firstContext:e}}else Oi=Oi.next=e;return t}var ji=null;function Li(e){null===ji?ji=[e]:ji.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Li(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ai=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ts){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return null===(o=r.interleaved)?(t.next=t,Li(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Ai=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,l=s.next;s.next=null,null===a?i=l:a.next=l,a=s;var c=e.alternate;null!==c&&(u=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s)}if(null!==i){var f=o.baseState;for(a=0,c=l=s=null,u=i;;){var p=u.lane,d=u.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,m=u;switch(p=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(d,f,p);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(d,f,p):h))break e;f=R({},f,p);break e;case 2:Ai=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=d,s=f):c=c.next=d,a|=p;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(p=u).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);As|=a,e.lanes=a,e.memoizedState=f}}function Bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Gi={},$i=Oo(Gi),Yi=Oo(Gi),Wi=Oo(Gi);function Qi(e){if(e===Gi)throw Error(i(174));return e}function Ki(e,t){switch(Po(Wi,t),Po(Yi,e),Po($i,Gi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko($i),Po($i,t)}function Xi(){ko($i),ko(Yi),ko(Wi)}function Ji(e){Qi(Wi.current);var t=Qi($i.current),n=se(t,e.type);t!==n&&(Po(Yi,e),Po($i,n))}function Zi(e){Yi.current===e&&(ko($i),ko(Yi))}var ea=Oo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,ua=null,sa=null,la=null,ca=!1,fa=!1,pa=0,da=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ya(e,t,n,r,o,a){if(aa=a,ua=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:eu,e=n(r,o),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(i(301));a+=1,la=sa=null,t.updateQueue=null,oa.current=tu,e=n(r,o)}while(fa)}if(oa.current=Ja,t=null!==sa&&null!==sa.next,aa=0,la=sa=ua=null,ca=!1,t)throw Error(i(300));return e}function va(){var e=0!==pa;return pa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?ua.memoizedState=la=e:la=la.next=e,la}function ba(){if(null===sa){var e=ua.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===la?ua.memoizedState:la.next;if(null!==t)la=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===la?ua.memoizedState=la=e:la=la.next=e}return la}function wa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=u=null,l=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=p,u=r):l=l.next=p,ua.lanes|=f,As|=f}c=c.next}while(null!==c&&c!==a);null===l?u=r:l.next=s,ur(r,t.memoizedState)||(bu=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ua.lanes|=a,As|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);ur(a,t.memoizedState)||(bu=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Ea(e,t){var n=ua,r=ba(),o=t(),a=!ur(r.memoizedState,o);if(a&&(r.memoizedState=o,bu=!0),r=r.queue,Aa(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Na(9,ka.bind(null,n,r,o,t),void 0,null),null===Cs)throw Error(i(349));30&aa||Oa(n,t,o)}return o}function Oa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ca(e)}function Pa(e,t,n){return n((function(){Ta(t)&&Ca(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(e){return!0}}function Ca(e){var t=Fi(e,1);null!==t&&nl(t,e,1,-1)}function Ia(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Wa.bind(null,ua,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return ba().memoizedState}function La(e,t,n,r){var o=ga();ua.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}ua.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function Fa(e,t){return La(8390656,8,e,t)}function Aa(e,t){return Da(2048,8,e,t)}function Ra(e,t){return Da(4,2,e,t)}function Ma(e,t){return Da(4,4,e,t)}function Va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Da(4,4,Va.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ba(e,t,n){return 21&aa?(ur(n,t)||(n=mt(),ua.lanes|=n,As|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bu=!0),e.memoizedState=n)}function Ga(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function $a(){return ba().memoizedState}function Ya(e,t,n){var r=tl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e)?Ka(t,n):null!==(n=Di(e,t,n,r))&&(nl(n,e,r,el()),Xa(n,t,r))}function Wa(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Ka(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,ur(u,a)){var s=t.interleaved;return null===s?(o.next=o,Li(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nl(n,e,r,o=el()),Xa(n,t,r))}}function Qa(e){var t=e.alternate;return e===ua||null!==t&&t===ua}function Ka(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Ja={readContext:Ni,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ni,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:Fa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,La(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,ua,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Ia,useDebugValue:Ua,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ga.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ua,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Cs)throw Error(i(349));30&aa||Oa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Fa(Pa.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=Cs.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=da++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Aa,useImperativeHandle:za,useInsertionEffect:Ra,useLayoutEffect:Ma,useMemo:Ha,useReducer:_a,useRef:ja,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ba(ba(),sa.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:$a,unstable_isNewReconciler:!1},tu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Aa,useImperativeHandle:za,useInsertionEffect:Ra,useLayoutEffect:Ma,useMemo:Ha,useReducer:Sa,useRef:ja,useState:function(){return Sa(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===sa?t.memoizedState=e:Ba(t,sa.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:$a,unstable_isNewReconciler:!1};function nu(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ru(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ou={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),o=Vi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(nl(t,e,r,n),Ui(t,e,r))}};function iu(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,i))}function au(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=Lo(t)?No:Co.current,i=(r=null!=(r=t.contextTypes))?jo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ou,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function uu(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ou.enqueueReplaceState(t,t.state,null)}function su(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ri(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ni(i):(i=Lo(t)?No:Co.current,o.context=jo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ru(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ou.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function lu(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cu(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fu(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pu="function"==typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=Vi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bs||(Bs=!0,Gs=r),fu(0,t)},n}function hu(e,t,n){(n=Vi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fu(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fu(0,t),"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ol.bind(null,e,t,n),t.then(e,e))}function yu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vu(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Vi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var gu=w.ReactCurrentOwner,bu=!1;function wu(e,t,n,r){t.child=null===e?Si(t,null,n,r):_i(t,e.child,n,r)}function _u(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ya(e,t,n,r,i,o),n=va(),null===e||bu?(ii&&n&&ti(t),t.flags|=1,wu(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bu(e,t,o))}function Su(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||jl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xu(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Bu(e,t,o)}return t.flags|=1,(e=Ll(i,r)).ref=t.ref,e.return=t,t.child=e}function xu(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(bu=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Bu(e,t,o);131072&e.flags&&(bu=!0)}}return ku(e,t,n,r,o)}function Eu(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ls,js),js|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Ls,js),js|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ls,js),js|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Ls,js),js|=r;return wu(e,t,o,n),t.child}function Ou(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,o){var i=Lo(n)?No:Co.current;return i=jo(t,i),Ii(t,o),n=ya(e,t,n,r,i,o),r=va(),null===e||bu?(ii&&r&&ti(t),t.flags|=1,wu(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bu(e,t,o))}function Pu(e,t,n,r,o){if(Lo(n)){var i=!0;Ro(t)}else i=!1;if(Ii(t,o),null===t.stateNode)Hu(e,t),au(t,n,r),su(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;l="object"==typeof l&&null!==l?Ni(l):jo(t,l=Lo(n)?No:Co.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||s!==l)&&uu(t,a,r,l),Ai=!1;var p=t.memoizedState;a.state=p,Hi(t,r,a,o),s=t.memoizedState,u!==r||p!==s||Io.current||Ai?("function"==typeof c&&(ru(t,n,c,r),s=t.memoizedState),(u=Ai||iu(t,n,u,r,p,s,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Mi(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:nu(t.type,u),a.props=l,f=t.pendingProps,p=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ni(s):jo(t,s=Lo(n)?No:Co.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==f||p!==s)&&uu(t,a,r,s),Ai=!1,p=t.memoizedState,a.state=p,Hi(t,r,a,o);var h=t.memoizedState;u!==f||p!==h||Io.current||Ai?("function"==typeof d&&(ru(t,n,d,r),h=t.memoizedState),(l=Ai||iu(t,n,l,r,p,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Tu(e,t,n,r,i,o)}function Tu(e,t,n,r,o,i){Ou(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Mo(t,n,!1),Bu(e,t,i);r=t.stateNode,gu.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,u,i)):wu(e,t,u,i),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Cu(e){var t=e.stateNode;t.pendingContext?Fo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fo(0,t.context,!1),Ki(e,t.containerInfo)}function Iu(e,t,n,r,o){return hi(),mi(o),t.flags|=256,wu(e,t,n,r),t.child}var Nu,ju,Lu,Du,Fu={dehydrated:null,treeContext:null,retryLane:0};function Au(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ru(e,t,n){var r,o=t.pendingProps,a=ea.current,u=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(u=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,u?(o=t.mode,u=t.child,s={mode:"hidden",children:s},1&o||null===u?u=Al(s,o,0,null):(u.childLanes=0,u.pendingProps=s),e=Fl(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Au(n),t.memoizedState=Fu,e):Mu(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,u){if(n)return 256&t.flags?(t.flags&=-257,Vu(e,t,u,r=cu(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Al({mode:"visible",children:r.children},o,0,null),(a=Fl(a,o,u,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&_i(t,e.child,null,u),t.child.memoizedState=Au(u),t.memoizedState=Fu,a);if(!(1&t.mode))return Vu(e,t,u,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Vu(e,t,u,r=cu(a=Error(i(419)),r,void 0))}if(s=!!(u&e.childLanes),bu||s){if(null!==(r=Cs)){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|u)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Fi(e,o),nl(r,e,o,-1))}return ml(),Vu(e,t,u,r=cu(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Pl.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=lo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Xo=e.id,Jo=e.overflow,Ko=t),(t=Mu(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(u){u=o.fallback,s=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Ll(a,l)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?u=Ll(r,u):(u=Fl(u,s,n,null)).flags|=2,u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,s=null===(s=e.child.memoizedState)?Au(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Fu,o}return e=(u=e.child).sibling,o=Ll(u,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Mu(e,t){return(t=Al({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vu(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=Mu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ci(e.return,t,n)}function Uu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wu(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zu(e,n,t);else if(19===e.tag)zu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Uu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Uu(t,!0,n,null,i);break;case"together":Uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hu(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),As|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gu(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $u(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yu(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $u(t),null;case 1:case 17:return Lo(t.type)&&Do(),$u(t),null;case 3:return r=t.stateNode,Xi(),ko(Io),ko(Co),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(al(ai),ai=null))),ju(e,t),$u(t),null;case 5:Zi(t);var o=Qi(Wi.current);if(n=t.type,null!==e&&null!=t.stateNode)Lu(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return $u(t),null}if(e=Qi($i.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(o=0;o<Fr.length;o++)Vr(Fr[o],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":K(r,a),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Vr("invalid",r);break;case"textarea":oe(r,a),Vr("invalid",r)}for(var s in ge(n,a),o=null,a)if(a.hasOwnProperty(s)){var l=a[s];"children"===s?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",""+l]):u.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Vr("scroll",r)}switch(n){case"input":$(r),Z(r,a,!0);break;case"textarea":$(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Nu(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),o=r;break;case"iframe":case"object":case"embed":Vr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fr.length;o++)Vr(Fr[o],e);o=r;break;case"source":Vr("error",e),o=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),o=r;break;case"details":Vr("toggle",e),o=r;break;case"input":K(e,r),o=Q(e,r),Vr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=R({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Vr("invalid",e)}for(a in ge(n,o),l=o)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Vr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+B(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $u(t),null;case 6:if(e&&null!=t.stateNode)Du(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Wi.current),Qi($i.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return $u(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))di(),hi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$u(t),a=!1}else null!==ai&&(al(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ds&&(Ds=3):ml())),null!==t.updateQueue&&(t.flags|=4),$u(t),null);case 4:return Xi(),ju(e,t),null===e&&qr(t.stateNode.containerInfo),$u(t),null;case 10:return Ti(t.type._context),$u(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return $u(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)Gu(a,!1);else{if(0!==Ds||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Gu(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>qs&&(t.flags|=128,r=!0,Gu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return $u(t),null}else 2*Xe()-a.renderingStartTime>qs&&1073741824!==n&&(t.flags|=128,r=!0,Gu(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Po(ea,r?1&n|2:1&n),t):($u(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&js)&&($u(t),6&t.subtreeFlags&&(t.flags|=8192)):$u(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Wu(e,t){switch(ni(t),t.tag){case 1:return Lo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),ko(Io),ko(Co),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Xi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Nu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ju=function(){},Lu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi($i.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=R({},o,{value:void 0}),r=R({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(u.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(u.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Vr("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Du=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qu=!1,Ku=!1,Xu="function"==typeof WeakSet?WeakSet:Set,Ju=null;function Zu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){El(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){El(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[yo],delete t[vo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ls(e,t,n),e=e.sibling;null!==e;)ls(e,t,n),e=e.sibling}var cs=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)ds(e,t,n),n=n.sibling}function ds(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ku||Zu(n,t);case 6:var r=cs,o=fs;cs=null,ps(e,t,n),fs=o,null!==(cs=r)&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),qt(e)):so(cs,n.stateNode));break;case 4:r=cs,o=fs,cs=n.stateNode.containerInfo,fs=!0,ps(e,t,n),cs=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Ku&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&es(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Ku&&(Zu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){El(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Ku=(r=Ku)||null!==n.memoizedState,ps(e,t,n),Ku=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xu),t.forEach((function(t){var r=Tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,u=t,s=u;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,fs=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===cs)throw Error(i(160));ds(a,u,o),cs=null,fs=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){El(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ys(t,e),t=t.sibling}function ys(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){El(e,e.return,t)}try{ns(5,e,e.return)}catch(t){El(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return);break;case 5:if(ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){El(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,u=null!==n?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&X(o,a),be(s,u);var c=be(s,a);for(u=0;u<l.length;u+=2){var f=l[u],p=l[u+1];"style"===f?ye(o,p):"dangerouslySetInnerHTML"===f?fe(o,p):"children"===f?pe(o,p):b(o,f,p,c)}switch(s){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){El(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){El(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(t){El(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Us=Xe())),4&r&&hs(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ku=(c=Ku)||f,ms(t,e),Ku=c):ms(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Ju=e,f=e.child;null!==f;){for(p=Ju=f;null!==Ju;){switch(h=(d=Ju).child,d.tag){case 0:case 11:case 14:case 15:ns(4,d,d.return);break;case 1:Zu(d,d.return);var m=d.stateNode;if("function"==typeof m.componentWillUnmount){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){El(r,n,e)}}break;case 5:Zu(d,d.return);break;case 22:if(null!==d.memoizedState){_s(p);continue}}null!==h?(h.return=d,Ju=h):_s(p)}f=f.sibling}e:for(f=null,p=e;;){if(5===p.tag){if(null===f){f=p;try{o=p.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=p.stateNode,u=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=me("display",u))}catch(t){El(e,e.return,t)}}}else if(6===p.tag){if(null===f)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){El(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ms(t,e),vs(e),4&r&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ls(e,us(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,us(e),a);break;default:throw Error(i(161))}}catch(t){El(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Ju=e,bs(e,t,n)}function bs(e,t,n){for(var r=!!(1&e.mode);null!==Ju;){var o=Ju,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qu;if(!a){var u=o.alternate,s=null!==u&&null!==u.memoizedState||Ku;u=Qu;var l=Ku;if(Qu=a,(Ku=s)&&!l)for(Ju=o;null!==Ju;)s=(a=Ju).child,22===a.tag&&null!==a.memoizedState?Ss(o):null!==s?(s.return=a,Ju=s):Ss(o);for(;null!==i;)Ju=i,bs(i,t,n),i=i.sibling;Ju=o,Qu=u,Ku=l}ws(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Ju=i):ws(e)}}function ws(e){for(;null!==Ju;){var t=Ju;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ku||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ku)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nu(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bi(t,a,r);break;case 3:var u=t.updateQueue;if(null!==u){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bi(t,u,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var p=f.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(i(163))}Ku||512&t.flags&&os(t)}catch(e){El(t,t.return,e)}}if(t===e){Ju=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ju=n;break}Ju=t.return}}function _s(e){for(;null!==Ju;){var t=Ju;if(t===e){Ju=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ju=n;break}Ju=t.return}}function Ss(e){for(;null!==Ju;){var t=Ju;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){El(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){El(t,o,e)}}var i=t.return;try{os(t)}catch(e){El(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){El(t,a,e)}}}catch(e){El(t,t.return,e)}if(t===e){Ju=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Ju=u;break}Ju=t.return}}var xs,Es=Math.ceil,Os=w.ReactCurrentDispatcher,ks=w.ReactCurrentOwner,Ps=w.ReactCurrentBatchConfig,Ts=0,Cs=null,Is=null,Ns=0,js=0,Ls=Oo(0),Ds=0,Fs=null,As=0,Rs=0,Ms=0,Vs=null,zs=null,Us=0,qs=1/0,Hs=null,Bs=!1,Gs=null,$s=null,Ys=!1,Ws=null,Qs=0,Ks=0,Xs=null,Js=-1,Zs=0;function el(){return 6&Ts?Xe():-1!==Js?Js:Js=Xe()}function tl(e){return 1&e.mode?2&Ts&&0!==Ns?Ns&-Ns:null!==yi.transition?(0===Zs&&(Zs=mt()),Zs):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function nl(e,t,n,r){if(50<Ks)throw Ks=0,Xs=null,Error(i(185));vt(e,n,r),2&Ts&&e===Cs||(e===Cs&&(!(2&Ts)&&(Rs|=n),4===Ds&&ul(e,Ns)),rl(e,r),1===n&&0===Ts&&!(1&t.mode)&&(qs=Xe()+500,zo&&Ho()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),u=1<<a,s=o[a];-1===s?u&n&&!(u&r)||(o[a]=dt(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=pt(e,e===Cs?Ns:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){zo=!0,qo(e)}(sl.bind(null,e)):qo(sl.bind(null,e)),ao((function(){!(6&Ts)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Cl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Js=-1,Zs=0,6&Ts)throw Error(i(327));var n=e.callbackNode;if(Sl()&&e.callbackNode!==n)return null;var r=pt(e,e===Cs?Ns:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var o=Ts;Ts|=2;var a=hl();for(Cs===e&&Ns===t||(Hs=null,qs=Xe()+500,pl(e,t));;)try{gl();break}catch(t){dl(e,t)}Pi(),Os.current=a,Ts=o,null!==Is?t=0:(Cs=null,Ns=0,t=Ds)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=il(e,o)),1===t)throw n=Fs,pl(e,0),ul(e,r),rl(e,Xe()),n;if(6===t)ul(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ur(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=yl(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=il(e,a))),1!==t)))throw n=Fs,pl(e,0),ul(e,r),rl(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:_l(e,zs,Hs);break;case 3:if(ul(e,r),(130023424&r)===r&&10<(t=Us+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(_l.bind(null,e,zs,Hs),t);break}_l(e,zs,Hs);break;case 4:if(ul(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-at(r);a=1<<u,(u=t[u])>o&&(o=u),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)){e.timeoutHandle=ro(_l.bind(null,e,zs,Hs),r);break}_l(e,zs,Hs);break;default:throw Error(i(329))}}}return rl(e,Xe()),e.callbackNode===n?ol.bind(null,e):null}function il(e,t){var n=Vs;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=yl(e,t))&&(t=zs,zs=n,null!==t&&al(t)),e}function al(e){null===zs?zs=e:zs.push.apply(zs,e)}function ul(e,t){for(t&=~Ms,t&=~Rs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sl(e){if(6&Ts)throw Error(i(327));Sl();var t=pt(e,0);if(!(1&t))return rl(e,Xe()),null;var n=yl(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Fs,pl(e,0),ul(e,t),rl(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,zs,Hs),rl(e,Xe()),null}function ll(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(qs=Xe()+500,zo&&Ho())}}function cl(e){null!==Ws&&0===Ws.tag&&!(6&Ts)&&Sl();var t=Ts;Ts|=1;var n=Ps.transition,r=bt;try{if(Ps.transition=null,bt=1,e)return e()}finally{bt=r,Ps.transition=n,!(6&(Ts=t))&&Ho()}}function fl(){js=Ls.current,ko(Ls)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Xi(),ko(Io),ko(Co),ra();break;case 5:Zi(r);break;case 4:Xi();break;case 13:case 19:ko(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Cs=e,Is=e=Ll(e.current,null),Ns=js=t,Ds=0,Fs=null,Ms=Rs=As=0,zs=Vs=null,null!==ji){for(t=0;t<ji.length;t++)if(null!==(r=(n=ji[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}ji=null}return e}function dl(e,t){for(;;){var n=Is;try{if(Pi(),oa.current=Ja,ca){for(var r=ua.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,la=sa=ua=null,fa=!1,pa=0,ks.current=null,null===n||null===n.return){Ds=1,Fs=t,Is=null;break}e:{var a=e,u=n.return,s=n,l=t;if(t=Ns,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,f=s,p=f.tag;if(!(1&f.mode||0!==p&&11!==p&&15!==p)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=yu(u);if(null!==h){h.flags&=-257,vu(h,u,s,0,t),1&h.mode&&mu(a,c,t),l=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(!(1&t)){mu(a,c,t),ml();break e}l=Error(i(426))}else if(ii&&1&s.mode){var v=yu(u);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vu(v,u,s,0,t),mi(lu(l,s));break e}}a=l=lu(l,s),4!==Ds&&(Ds=2),null===Vs?Vs=[a]:Vs.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,du(0,l,t));break e;case 1:s=l;var g=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==$s&&$s.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hu(a,s,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(e){t=e,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function hl(){var e=Os.current;return Os.current=Ja,null===e?Ja:e}function ml(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===Cs||!(268435455&As)&&!(268435455&Rs)||ul(Cs,Ns)}function yl(e,t){var n=Ts;Ts|=2;var r=hl();for(Cs===e&&Ns===t||(Hs=null,pl(e,t));;)try{vl();break}catch(t){dl(e,t)}if(Pi(),Ts=n,Os.current=r,null!==Is)throw Error(i(261));return Cs=null,Ns=0,Ds}function vl(){for(;null!==Is;)bl(Is)}function gl(){for(;null!==Is&&!Qe();)bl(Is)}function bl(e){var t=xs(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?wl(e):Is=t,ks.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Wu(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return Ds=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yu(n,t,js)))return void(Is=n);if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ds&&(Ds=5)}function _l(e,t,n){var r=bt,o=Ps.transition;try{Ps.transition=null,bt=1,function(e,t,n,r){do{Sl()}while(null!==Ws);if(6&Ts)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Cs&&(Is=Cs=null,Ns=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ys||(Ys=!0,Cl(tt,(function(){return Sl(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ps.transition,Ps.transition=null;var u=bt;bt=1;var s=Ts;Ts|=4,ks.current=null,function(e,t){if(eo=Bt,dr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var u=0,s=-1,l=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(s=u+o),p!==a||0!==r&&3!==p.nodeType||(l=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(h=p.firstChild);)d=p,p=h;for(;;){if(p===e)break t;if(d===n&&++c===o&&(s=u),d===a&&++f===r&&(l=u),null!==(h=p.nextSibling))break;d=(p=d).parentNode}p=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Bt=!1,Ju=t;null!==Ju;)if(e=(t=Ju).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ju=e;else for(;null!==Ju;){t=Ju;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:nu(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){El(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ju=e;break}Ju=t.return}m=ts,ts=!1}(e,n),ys(n,e),hr(to),Bt=!!eo,to=eo=null,e.current=n,gs(n,e,o),Ke(),Ts=s,bt=u,Ps.transition=a}else e.current=n;if(Ys&&(Ys=!1,Ws=e,Qs=o),0===(a=e.pendingLanes)&&($s=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rl(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Bs)throw Bs=!1,e=Gs,Gs=null,e;!!(1&Qs)&&0!==e.tag&&Sl(),1&(a=e.pendingLanes)?e===Xs?Ks++:(Ks=0,Xs=e):Ks=0,Ho()}(e,t,n,r)}finally{Ps.transition=o,bt=r}return null}function Sl(){if(null!==Ws){var e=wt(Qs),t=Ps.transition,n=bt;try{if(Ps.transition=null,bt=16>e?16:e,null===Ws)var r=!1;else{if(e=Ws,Ws=null,Qs=0,6&Ts)throw Error(i(331));var o=Ts;for(Ts|=4,Ju=e.current;null!==Ju;){var a=Ju,u=a.child;if(16&Ju.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Ju=c;null!==Ju;){var f=Ju;switch(f.tag){case 0:case 11:case 15:ns(8,f,a)}var p=f.child;if(null!==p)p.return=f,Ju=p;else for(;null!==Ju;){var d=(f=Ju).sibling,h=f.return;if(is(f),f===c){Ju=null;break}if(null!==d){d.return=h,Ju=d;break}Ju=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Ju=a}}if(2064&a.subtreeFlags&&null!==u)u.return=a,Ju=u;else e:for(;null!==Ju;){if(2048&(a=Ju).flags)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Ju=g;break e}Ju=a.return}}var b=e.current;for(Ju=b;null!==Ju;){var w=(u=Ju).child;if(2064&u.subtreeFlags&&null!==w)w.return=u,Ju=w;else e:for(u=b;null!==Ju;){if(2048&(s=Ju).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){El(s,s.return,e)}if(s===u){Ju=null;break e}var _=s.sibling;if(null!==_){_.return=s.return,Ju=_;break e}Ju=s.return}}if(Ts=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Ps.transition=t}}return!1}function xl(e,t,n){e=zi(e,t=du(0,t=lu(n,t),1),1),t=el(),null!==e&&(vt(e,1,t),rl(e,t))}function El(e,t,n){if(3===e.tag)xl(e,e,n);else for(;null!==t;){if(3===t.tag){xl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){t=zi(t,e=hu(t,e=lu(n,e),1),1),e=el(),null!==t&&(vt(t,1,e),rl(t,e));break}}t=t.return}}function Ol(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ns&n)===n&&(4===Ds||3===Ds&&(130023424&Ns)===Ns&&500>Xe()-Us?pl(e,0):Ms|=n),rl(e,t)}function kl(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=el();null!==(e=Fi(e,t))&&(vt(e,t,n),rl(e,n))}function Pl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kl(e,n)}function Tl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kl(e,n)}function Cl(e,t){return Ye(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(e,t,n,r){return new Il(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dl(e,t,n,r,o,a){var u=2;if(r=e,"function"==typeof e)jl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case x:return Fl(n.children,o,a,t);case E:u=8,o|=8;break;case O:return(e=Nl(12,n,t,2|o)).elementType=O,e.lanes=a,e;case C:return(e=Nl(13,n,t,o)).elementType=C,e.lanes=a,e;case I:return(e=Nl(19,n,t,o)).elementType=I,e.lanes=a,e;case L:return Al(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:u=10;break e;case P:u=9;break e;case T:u=11;break e;case N:u=14;break e;case j:u=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nl(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Fl(e,t,n,r){return(e=Nl(7,e,r,t)).lanes=n,e}function Al(e,t,n,r){return(e=Nl(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Rl(e,t,n){return(e=Nl(6,e,null,t)).lanes=n,e}function Ml(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,o,i,a,u,s){return e=new Vl(e,t,n,u,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nl(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Ul(e){if(!e)return To;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Ao(e,n,t)}return t}function ql(e,t,n,r,o,i,a,u,s){return(e=zl(n,r,!0,e,0,i,0,u,s)).context=Ul(null),n=e.current,(i=Vi(r=el(),o=tl(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,vt(e,o,r),rl(e,r),e}function Hl(e,t,n,r){var o=t.current,i=el(),a=tl(o);return n=Ul(n),null===t.context?t.context=n:t.pendingContext=n,(t=Vi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(nl(e,o,a,i),Ui(e,o,a)),a}function Bl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $l(e,t){Gl(e,t),(e=e.alternate)&&Gl(e,t)}xs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)bu=!0;else{if(!(e.lanes&n||128&t.flags))return bu=!1,function(e,t,n){switch(t.tag){case 3:Cu(t),hi();break;case 5:Ji(t);break;case 1:Lo(t.type)&&Ro(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?Ru(e,t,n):(Po(ea,1&ea.current),null!==(e=Bu(e,t,n))?e.sibling:null);Po(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Eu(e,t,n)}return Bu(e,t,n)}(e,t,n);bu=!!(131072&e.flags)}else bu=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hu(e,t),e=t.pendingProps;var o=jo(t,Co.current);Ii(t,n),o=ya(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(a=!0,Ro(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ri(t),o.updater=ou,t.stateNode=o,o._reactInternals=t,su(t,r,e,n),t=Tu(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wu(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return jl(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(r),e=nu(r,e),o){case 0:t=ku(null,t,r,e,n);break e;case 1:t=Pu(null,t,r,e,n);break e;case 11:t=_u(null,t,r,e,n);break e;case 14:t=Su(null,t,r,nu(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,ku(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 1:return r=t.type,o=t.pendingProps,Pu(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 3:e:{if(Cu(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Mi(e,t),Hi(t,r,null,n);var u=t.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Iu(e,t,r,n,o=lu(Error(i(423)),t));break e}if(r!==o){t=Iu(e,t,r,n,o=lu(Error(i(424)),t));break e}for(oi=lo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Bu(e,t,n);break e}wu(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,no(r,o)?u=null:null!==a&&no(r,a)&&(t.flags|=32),Ou(e,t),wu(e,t,u,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ru(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):wu(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_u(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 7:return wu(e,t,t.pendingProps,n),t.child;case 8:case 12:return wu(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,u=o.value,Po(xi,r._currentValue),r._currentValue=u,null!==a)if(ur(a.value,u)){if(a.children===o.children&&!Io.current){t=Bu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){u=a.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Vi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ci(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===a.tag)u=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(i(341));u.lanes|=n,null!==(s=u.alternate)&&(s.lanes|=n),Ci(u,n,t),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}wu(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ii(t,n),r=r(o=Ni(o)),t.flags|=1,wu(e,t,r,n),t.child;case 14:return o=nu(r=t.type,t.pendingProps),Su(e,t,r,o=nu(r.type,o),n);case 15:return xu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nu(r,o),Hu(e,t),t.tag=1,Lo(r)?(e=!0,Ro(t)):e=!1,Ii(t,n),au(t,r,o),su(t,r,o,n),Tu(null,t,r,!0,e,n);case 19:return qu(e,t,n);case 22:return Eu(e,t,n)}throw Error(i(156,t.tag))};var Yl="function"==typeof reportError?reportError:function(e){console.error(e)};function Wl(e){this._internalRoot=e}function Ql(e){this._internalRoot=e}function Kl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function Zl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var u=o;o=function(){var e=Bl(a);u.call(e)}}Hl(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Bl(a);i.call(e)}}var a=ql(t,r,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),cl(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var u=r;r=function(){var e=Bl(s);u.call(e)}}var s=zl(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=s,e[mo]=s.current,qr(8===e.nodeType?e.parentNode:e),cl((function(){Hl(t,s,n,r)})),s}(n,t,e,o,r);return Bl(a)}Ql.prototype.render=Wl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hl(e,t,null,null)},Ql.prototype.unmount=Wl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Hl(null,e,null,null)})),t[mo]=null}},Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Rt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),rl(t,Xe()),!(6&Ts)&&(qs=Xe()+500,Ho()))}break;case 13:cl((function(){var t=Fi(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),$l(e,1)}},St=function(e){if(13===e.tag){var t=Fi(e,134217728);null!==t&&nl(t,e,134217728,el()),$l(e,134217728)}},xt=function(e){if(13===e.tag){var t=tl(e),n=Fi(e,t);null!==n&&nl(n,e,t,el()),$l(e,t)}},Et=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));Y(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=ll,Ce=cl;var ec={usingClientEntryPoint:!1,Events:[wo,_o,So,ke,Pe,ll]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kl(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kl(e))throw Error(i(299));var n=!1,r="",o=Yl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zl(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Wl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kl(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",u=Yl;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),t=ql(t,null,e,1,null!=n?n:null,o,0,a,u),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ql(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(i(40));return!!e._reactRootContainer&&(cl((function(){Zl(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zl(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case y:case m:case s:return e;default:return t}}case o:return t}}}function S(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||_(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:c,props:i,_owner:u.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,i={},a=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:u,props:i,_owner:x.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+T(s,0):i,_(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),C(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",_(e))for(var l=0;l<e.length;l++){var c=i+T(u=e[l],l);s+=C(u,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=C(u=u.value,t,o,c=i+T(u,l++),a);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},L={transition:null},D={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:L,ReactCurrentOwner:x};function F(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=F,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)S.call(t,l)&&!E.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:u}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=F,t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.3.1"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var u=2*(r+1)-1,s=e[u],l=u+1,c=e[l];if(0>i(s,n))l<o&&0>i(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(l<o&&0>i(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var l=[],c=[],f=1,p=null,d=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function _(e){if(y=!1,w(e),!m)if(null!==r(l))m=!0,L(S);else{var t=r(c);null!==t&&D(_,t.startTime-e)}}function S(e,n){m=!1,y&&(y=!1,g(k),k=-1),h=!0;var i=d;try{for(w(n),p=r(l);null!==p&&(!(p.expirationTime>n)||e&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var u=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?p.callback=u:p===r(l)&&o(l),w(n)}else o(l);p=r(l)}if(null!==p)var s=!0;else{var f=r(c);null!==f&&D(_,f.startTime-n),s=!1}return s}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,O=null,k=-1,P=5,T=-1;function C(){return!(t.unstable_now()-T<P)}function I(){if(null!==O){var e=t.unstable_now();T=e;var n=!0;try{n=O(!0,e)}finally{n?x():(E=!1,O=null)}}else E=!1}if("function"==typeof b)x=function(){b(I)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,j=N.port2;N.port1.onmessage=I,x=function(){j.postMessage(null)}}else x=function(){v(I,0)};function L(e){O=e,E||(E=!0,x())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(l)&&e===r(c)&&(y?(g(k),k=-1):y=!0,D(_,i-a))):(e.sortIndex=u,n(l,e),m||h||(m=!0,L(S))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},7983:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,o={}){if(o=Object.assign({},r,o),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return e;if(o.hex&&t.test(i))return Number.parseInt(i,16);{const t=n.exec(i);if(t){const n=t[1],r=t[2];let u=(a=t[3])&&-1!==a.indexOf(".")?("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1)),a):a;const s=t[4]||t[6];if(!o.leadingZeros&&r.length>0&&n&&"."!==i[2])return e;if(!o.leadingZeros&&r.length>0&&!n&&"."!==i[1])return e;{const t=Number(i),a=""+t;return-1!==a.search(/[eE]/)||s?o.eNotation?t:e:-1!==i.indexOf(".")?"0"===a&&""===u||a===u||n&&a==="-"+u?t:e:r?u===a||n+u===a?t:e:i===a||i===n+a?t:e}}return e}var a}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(4848),t=o(7414),n=o.n(t);function r(e){return function(t,n){return n.mode===e}}var i=r("onBoot"),a=r("renderPage"),u=r("renderConfigScreen"),s=r("renderModal"),l=r("renderItemFormSidebarPanel"),c=r("renderItemFormSidebar"),f=r("renderItemFormOutlet"),p=r("renderFieldExtension"),d=r("renderManualFieldExtensionConfigScreen"),h=r("renderAssetSource"),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},y=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function v(e){return function(t,n){if(!e)return{};for(var r={},o=0,i=t;o<i.length;o++){var a=i[o],u=n.itemTypes[a.relationships.item_type.data.id];r[a.id]=e(a,m(m({},n),{itemType:u}))}return r}}var g=function(e){var t=null,n=function(n){var r=void 0===n?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,function(){for(var e=document.querySelectorAll("body *"),t=0,n=0;n<e.length;n++)t=Math.max(e[n].getBoundingClientRect().bottom,t);return t}()):n;r!==t&&(e.setHeight(r),t=r)},r=null,o=null,i=function(){return n()};return{updateHeight:n,startAutoResizer:function(){n(),r||(r=new ResizeObserver(i)).observe(document.documentElement),o||(o=new MutationObserver(i)).observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},stopAutoResizer:function(){r&&(r.disconnect(),r=null),o&&(o.disconnect(),o=null)}}},b=o(6540),w=o.t(b,2),_=o(6942),S=o.n(_),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)};function E(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}function O(e,t){return void 0===t&&(t=!1),x({padding:t?void 0:e.bodyPadding.map((function(e){return"".concat(e,"px")})).join(" ")},Object.fromEntries(Object.entries(e.theme).flatMap((function(e){var t,n=e[0],r=e[1];return[["--".concat(E(n)),r],["--".concat(E("".concat(n,"RgbComponents"))),(null===(t=r.match(/rgb\((\d+, \d+, \d+)\)/))||void 0===t?void 0:t[1])||void 0]]}))))}const k=JSON.parse('{"v":"_themeVariables_ovgoa_1","J":"_canvas_ovgoa_68"}');var P=(0,b.createContext)(null);function T(e){var t=e.ctx,n=e.children,r=e.noAutoResizer,o=t.mode;return(0,b.useEffect)((function(){if(!["renderPage","renderItemFormSidebar"].includes(o)&&!r){var e=t;return e.startAutoResizer(),function(){e.stopAutoResizer()}}}),[o,r]),b.createElement(P.Provider,{value:t},b.createElement("div",{className:S()(k.v,k.J),style:O(t)},n))}const C=JSON.parse('{"button":"_button_474wk_1","disabled":"_disabled_474wk_30","buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113","fullWidth":"_fullWidth_474wk_118","button__leftIcon":"_button__leftIcon_474wk_124","button__rightIcon":"_button__rightIcon_474wk_125"}');function I(e){var t,n=e.children,r=e.className,o=e.disabled,i=e.buttonType,a=void 0===i?"muted":i,u=e.buttonSize,s=void 0===u?"m":u,l=e.fullWidth,c=e.onClick,f=e.style,p=e.leftIcon,d=e.rightIcon,h=e.type,m=void 0===h?"button":h;return b.createElement("button",{type:m,className:S()(C.button,C["buttonType-".concat(a)],C["buttonSize-".concat(s)],(t={},t[C.disabled]=o,t[C.fullWidth]=l,t),r),disabled:o,onClick:c,style:f},p&&b.createElement("span",{className:C.button__leftIcon},p),n&&b.createElement("span",null,n),d&&b.createElement("span",{className:C.button__rightIcon},d))}const N=JSON.parse('{"HJ":"_Spinner--inline_oumod_1","Gk":"_Spinner--centered_oumod_7","FY":"_Spinner__bar_oumod_13"}');var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j.apply(this,arguments)};function L(e){for(var t,n=e.size,r=void 0===n?32:n,o=e.placement,i=void 0===o?"inline":o,a=e.style,u=void 0===a?{}:a,s=[],l=0;l<12;l+=1){var c={};c.animationDelay="".concat((l-12)/10,"s"),c.transform="rotate(".concat(30*l,"deg) translate(146%)"),s.push(b.createElement("div",{style:c,className:N.FY,key:l}))}var f={width:.5*r,height:.5*r};return"inline"===i&&(f.marginLeft=.5*r,f.transform="translateY(33%)"),b.createElement("div",{className:S()((t={},t[N.HJ]="inline"===i,t[N.Gk]="centered"===i,t)),style:j(j({},u),f)},s)}const D=JSON.parse('{"Form":"_Form_5qspp_1","Form__item":"_Form__item_5qspp_5","Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"}');var F=function(){return F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},F.apply(this,arguments)},A=function(e){var t=e.children,n=e.className,r=e.onSubmit,o=e.spacing,i=void 0===o?"default":o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","onSubmit","spacing"]),u=S()(D.Form,n),s=S()(D.Form__item,D["Form__item--".concat(i)]),l=(0,b.useCallback)((function(e){e.preventDefault(),r&&r(e)}),[r]);return b.createElement("form",F({className:u,onSubmit:l},a),b.Children.map(t,(function(e){return e?b.createElement("div",{className:s},e):null})))};const R=JSON.parse('{"M":"_FieldGroup_uz9ju_1","d":"_FieldGroup__item_uz9ju_5"}');var M=function(){return M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M.apply(this,arguments)},V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function z(e){var t=e.children,n=e.className,r=V(e,["children","className"]),o=S()(R.M,n);return b.createElement("div",M({},r,{className:o}),b.Children.map(t,(function(e){return b.createElement("div",{className:R.d},e)})))}const U=JSON.parse('{"zw":"_formLabel_tcjrv_1","w9":"_formLabel__code_tcjrv_8","bL":"_formLabel--error_tcjrv_14","Hn":"_formLabel__label_tcjrv_18","aK":"_formLabel__required_tcjrv_30"}');var q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},q.apply(this,arguments)},H=function(e){var t,n=e.children,r=e.className,o=e.htmlFor,i=e.code,a=e.required,u=void 0!==a&&a,s=e.error,l=void 0!==s&&s,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","htmlFor","code","required","error"]),f=S()(U.zw,r,((t={})[U.bL]=l,t));return b.createElement("label",q({className:f,htmlFor:o},c),b.createElement("span",{className:U.Hn},n,u&&b.createElement("span",{className:U.aK},"*")),i&&b.createElement("span",{className:U.w9},i))};const B=JSON.parse('{"$":"_fieldError_qi0xk_1"}');function G(e){var t=e.children;return b.createElement("div",{className:B.$},t)}const $=JSON.parse('{"s":"_fieldHint_1avon_1"}');function Y(e){var t=e.children;return b.createElement("div",{className:$.s},t)}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)};function Q(e){var t=e.id,n=e.label,r=e.hint,o=e.error,i=e.required,a=e.formLabelProps,u=e.children;return b.createElement(b.Fragment,null,b.createElement(H,W({},a,{htmlFor:t,required:i,error:!!o}),n),u,o&&b.createElement(G,null,o),r&&b.createElement(Y,null,r))}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 X(e){var t=function(e){if("object"!=K(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==K(t)?t:t+""}function J(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e,t){if(e){if("string"==typeof e)return te(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)?te(e,t):void 0}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||ne(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 oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ie=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(null,arguments)}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X(r.key),r)}}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ce=function(){return!!e})()}function fe(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ne(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.")}()}var pe=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),de=Math.abs,he=String.fromCharCode,me=Object.assign;function ye(e){return e.trim()}function ve(e,t,n){return e.replace(t,n)}function ge(e,t){return e.indexOf(t)}function be(e,t){return 0|e.charCodeAt(t)}function we(e,t,n){return e.slice(t,n)}function _e(e){return e.length}function Se(e){return e.length}function xe(e,t){return t.push(e),e}var Ee=1,Oe=1,ke=0,Pe=0,Te=0,Ce="";function Ie(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ee,column:Oe,length:a,return:""}}function Ne(e,t){return me(Ie("",null,null,"",null,null,0),e,{length:-e.length},t)}function je(){return Te=Pe>0?be(Ce,--Pe):0,Oe--,10===Te&&(Oe=1,Ee--),Te}function Le(){return Te=Pe<ke?be(Ce,Pe++):0,Oe++,10===Te&&(Oe=1,Ee++),Te}function De(){return be(Ce,Pe)}function Fe(){return Pe}function Ae(e,t){return we(Ce,e,t)}function Re(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Me(e){return Ee=Oe=1,ke=_e(Ce=e),Pe=0,[]}function Ve(e){return Ce="",e}function ze(e){return ye(Ae(Pe-1,He(91===e?e+2:40===e?e+1:e)))}function Ue(e){for(;(Te=De())&&Te<33;)Le();return Re(e)>2||Re(Te)>3?"":" "}function qe(e,t){for(;--t&&Le()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return Ae(e,Fe()+(t<6&&32==De()&&32==Le()))}function He(e){for(;Le();)switch(Te){case e:return Pe;case 34:case 39:34!==e&&39!==e&&He(Te);break;case 40:41===e&&He(e);break;case 92:Le()}return Pe}function Be(e,t){for(;Le()&&e+Te!==57&&(e+Te!==84||47!==De()););return"/*"+Ae(t,Pe-1)+"*"+he(47===e?e:Le())}function Ge(e){for(;!Re(De());)Le();return Ae(e,Pe)}var $e="-ms-",Ye="-moz-",We="-webkit-",Qe="comm",Ke="rule",Xe="decl",Je="@keyframes";function Ze(e,t){for(var n="",r=Se(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function et(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xe:return e.return=e.return||e.value;case Qe:return"";case Je:return e.return=e.value+"{"+Ze(e.children,r)+"}";case Ke:e.value=e.props.join(",")}return _e(n=Ze(e.children,r))?e.return=e.value+"{"+n+"}":""}function tt(e){return Ve(nt("",null,null,null,[""],e=Me(e),0,[0],e))}function nt(e,t,n,r,o,i,a,u,s){for(var l=0,c=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,g=0,b="",w=o,_=i,S=r,x=b;y;)switch(h=g,g=Le()){case 40:if(108!=h&&58==be(x,f-1)){-1!=ge(x+=ve(ze(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=ze(g);break;case 9:case 10:case 13:case 32:x+=Ue(h);break;case 92:x+=qe(Fe()-1,7);continue;case 47:switch(De()){case 42:case 47:xe(ot(Be(Le(),Fe()),t,n),s);break;default:x+="/"}break;case 123*m:u[l++]=_e(x)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:-1==v&&(x=ve(x,/\f/g,"")),d>0&&_e(x)-f&&xe(d>32?it(x+";",r,n,f-1):it(ve(x," ","")+";",r,n,f-2),s);break;case 59:x+=";";default:if(xe(S=rt(x,t,n,l,c,o,u,b,w=[],_=[],f),i),123===g)if(0===c)nt(x,t,S,S,w,i,f,u,_);else switch(99===p&&110===be(x,3)?100:p){case 100:case 108:case 109:case 115:nt(e,S,S,r&&xe(rt(e,S,S,0,0,o,u,b,o,w=[],f),_),o,_,f,u,r?w:_);break;default:nt(x,S,S,S,[""],_,0,u,_)}}l=c=d=0,m=v=1,b=x="",f=a;break;case 58:f=1+_e(x),d=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==je())continue;switch(x+=he(g),g*m){case 38:v=c>0?1:(x+="\f",-1);break;case 44:u[l++]=(_e(x)-1)*v,v=1;break;case 64:45===De()&&(x+=ze(Le())),p=De(),c=f=_e(b=x+=Ge(Fe())),g++;break;case 45:45===h&&2==_e(x)&&(m=0)}}return i}function rt(e,t,n,r,o,i,a,u,s,l,c){for(var f=o-1,p=0===o?i:[""],d=Se(p),h=0,m=0,y=0;h<r;++h)for(var v=0,g=we(e,f+1,f=de(m=a[h])),b=e;v<d;++v)(b=ye(m>0?p[v]+" "+g:ve(g,/&\f/g,p[v])))&&(s[y++]=b);return Ie(e,t,n,0===o?Ke:u,s,l,c)}function ot(e,t,n){return Ie(e,t,n,Qe,he(Te),we(e,2,-2),0)}function it(e,t,n,r){return Ie(e,t,n,Xe,we(e,0,r),we(e,r+1,-1),r)}var at=function(e,t,n){for(var r=0,o=0;r=o,o=De(),38===r&&12===o&&(t[n]=1),!Re(o);)Le();return Ae(e,Pe)},ut=new WeakMap,st=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)||ut.get(n))&&!r){ut.set(e,!0);for(var o=[],i=function(e,t){return Ve(function(e,t){var n=-1,r=44;do{switch(Re(r)){case 0:38===r&&12===De()&&(t[n]=1),e[n]+=at(Pe-1,t,n);break;case 2:e[n]+=ze(r);break;case 4:if(44===r){e[++n]=58===De()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=he(r)}}while(r=Le());return e}(Me(e),t))}(t,o),a=n.props,u=0,s=0;u<i.length;u++)for(var l=0;l<a.length;l++,s++)e.props[s]=o[u]?i[u].replace(/&\f/g,a[l]):a[l]+" "+i[u]}}},lt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ct(e,t){switch(function(e,t){return 45^be(e,0)?(((t<<2^be(e,0))<<2^be(e,1))<<2^be(e,2))<<2^be(e,3):0}(e,t)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Ye+e+$e+e+e;case 6828:case 4268:return We+e+$e+e+e;case 6165:return We+e+$e+"flex-"+e+e;case 5187:return We+e+ve(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return We+e+$e+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return We+e+$e+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+$e+ve(e,"shrink","negative")+e;case 5292:return We+e+$e+ve(e,"basis","preferred-size")+e;case 6060:return We+"box-"+ve(e,"-grow","")+We+e+$e+ve(e,"grow","positive")+e;case 4554:return We+ve(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_e(e)-1-t>6)switch(be(e,t+1)){case 109:if(45!==be(e,t+4))break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Ye+(108==be(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ge(e,"stretch")?ct(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==be(e,t+1))break;case 6444:switch(be(e,_e(e)-3-(~ge(e,"!important")&&10))){case 107:return ve(e,":",":"+We)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(45===be(e,14)?"inline-":"")+"box$3$1"+We+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(be(e,t+11)){case 114:return We+e+$e+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+$e+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+$e+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+$e+e+e}return e}var ft=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xe:e.return=ct(e.value,e.length);break;case Je:return Ze([Ne(e,{value:ve(e.value,"@","@"+We)})],r);case Ke: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 Ze([Ne(e,{props:[ve(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ze([Ne(e,{props:[ve(t,/:(plac\w+)/,":"+We+"input-$1")]}),Ne(e,{props:[ve(t,/:(plac\w+)/,":-moz-$1")]}),Ne(e,{props:[ve(t,/:(plac\w+)/,$e+"input-$1")]})],r)}return""}))}}],pt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||ft,a={},u=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;u.push(e)}));var s,l,c,f,p=[et,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],d=(l=[st,lt].concat(i,p),c=Se(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,Ze(tt(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new pe({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(u),h},dt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ht={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var yt=!1,vt=/[A-Z]|^ms/g,gt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},wt=function(e){return null!=e&&"boolean"!=typeof e},_t=mt((function(e){return bt(e)?e:e.replace(vt,"-$&").toLowerCase()})),St=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(gt,(function(e,t,n){return Ot={name:t,styles:n,next:Ot},t}))}return 1===ht[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"},xt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Et(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ot={name:o.name,styles:o.styles,next:Ot},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ot={name:a.name,styles:a.styles,next:Ot},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Et(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var u=a;null!=t&&void 0!==t[u]?r+=i+"{"+t[u]+"}":wt(u)&&(r+=_t(i)+":"+St(i,u)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&yt)throw new Error(xt);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Et(e,t,a);switch(i){case"animation":case"animationName":r+=_t(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)wt(a[l])&&(r+=_t(i)+":"+St(i,a[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var u=Ot,s=n(e);return Ot=u,Et(e,t,s)}}var l=n;if(null==t)return l;var c=t[l];return void 0!==c?c:l}var Ot,kt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Pt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ot=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Et(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Et(n,t,e[a]),r&&(o+=i[a]);kt.lastIndex=0;for(var u,s="";null!==(u=kt.exec(o));)s+="-"+u[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:Ot}}var Tt=!!w.useInsertionEffect&&w.useInsertionEffect,Ct=Tt||function(e){return e()},It=(Tt||b.useLayoutEffect,b.createContext("undefined"!=typeof HTMLElement?pt({key:"css"}):null)),Nt=(It.Provider,function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(It);return e(t,r,n)}))}),jt=b.createContext({}),Lt={}.hasOwnProperty,Dt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ft=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return dt(t,n,r),Ct((function(){return function(e,t,n){dt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},At=Nt((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Dt],i=[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]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var u=Pt(i,void 0,b.useContext(jt));a+=t.key+"-"+u.name;var s={};for(var l in e)Lt.call(e,l)&&"css"!==l&&l!==Dt&&(s[l]=e[l]);return s.className=a,n&&(s.ref=n),b.createElement(b.Fragment,null,b.createElement(Ft,{cache:t,serialized:u,isStringTag:"string"==typeof o}),b.createElement(o,s))})),Rt=At,Mt=(o(4146),function(e,t){var n=arguments;if(null==t||!Lt.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Rt,o[1]=function(e,t){var n={};for(var r in t)Lt.call(t,r)&&(n[r]=t[r]);return n[Dt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return b.createElement.apply(null,o)});function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pt(t)}var zt=o(961);const Ut=Math.min,qt=Math.max,Ht=Math.round,Bt=Math.floor,Gt=e=>({x:e,y:e});function $t(e){return Qt(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wt(e){var t;return null==(t=(Qt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qt(e){return e instanceof Node||e instanceof Yt(e).Node}function Kt(e){return e instanceof Element||e instanceof Yt(e).Element}function Xt(e){return e instanceof HTMLElement||e instanceof Yt(e).HTMLElement}function Jt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot)}function Zt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=en(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function en(e){return Yt(e).getComputedStyle(e)}function tn(e){const t=function(e){if("html"===$t(e))return e;const t=e.assignedSlot||e.parentNode||Jt(e)&&e.host||Wt(e);return Jt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes($t(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&Zt(t)?t:tn(t)}function nn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=tn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Yt(o);return i?t.concat(a,a.visualViewport||[],Zt(o)?o:[],a.frameElement&&n?nn(a.frameElement):[]):t.concat(o,nn(o,[],n))}function rn(e){return Kt(e)?e:e.contextElement}function on(e){const t=rn(e);if(!Xt(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=en(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Ht(n)!==i||Ht(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}(t);let a=(i?Ht(n.width):n.width)/r,u=(i?Ht(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const an=Gt(0);function un(e){const t=Yt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:an}function sn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=rn(e);let a=Gt(1);t&&(r?Kt(r)&&(a=on(r)):a=on(e));const u=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Yt(e))&&t}(i,n,r)?un(i):Gt(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const e=Yt(i),t=r&&Kt(r)?Yt(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=on(o),t=o.getBoundingClientRect(),r=en(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,f*=e.y,s+=i,l+=a,n=Yt(o),o=n.frameElement}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:f,x:s,y:l})}const ln=b.useLayoutEffect;var cn=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],fn=function(){};function pn(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function dn(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(pn(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var hn=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===K(e)&&null!==e?[e]:[];var t},mn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ee({},oe(e,cn))},yn=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function vn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gn(e){return vn(e)?window.pageYOffset:e.scrollTop}function bn(e,t){vn(e)?window.scrollTo(0,t):e.scrollTop=t}function wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fn,o=gn(e),i=t-o,a=0;!function t(){var u,s=i*((u=(u=a+=10)/n-1)*u*u+1)+o;bn(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function _n(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?bn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&bn(e,Math.max(t.offsetTop-o,0))}function Sn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var xn=!1,En={get passive(){return xn=!0}},On="undefined"!=typeof window?window:{};On.addEventListener&&On.removeEventListener&&(On.addEventListener("p",fn,En),On.removeEventListener("p",fn,!1));var kn=xn;function Pn(e){return null!=e}function Tn(e,t,n){return e?t:n}var Cn=["children","innerProps"],In=["children","innerProps"];var Nn,jn,Ln,Dn=function(e){return"auto"===e?"bottom":e},Fn=(0,b.createContext)(null),An=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,u=e.theme,s=((0,b.useContext)(Fn)||{}).setPortalPlacement,l=(0,b.useRef)(null),c=re((0,b.useState)(r),2),f=c[0],p=c[1],d=re((0,b.useState)(null),2),h=d[0],m=d[1],y=u.spacing.controlHeight;return ln((function(){var e=l.current;if(e){var t="fixed"===i,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,f=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,h=p.height,m=p.top,y=n.offsetParent.getBoundingClientRect().top,v=a||vn(c=s)?window.innerHeight:c.clientHeight,g=gn(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=y-w,S=v-m,x=_+g,E=f-g-m,O=d-v+g+b,k=g+m-w,P=160;switch(o){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&wn(s,O,P),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&S>=r)return i&&wn(s,O,P),{placement:"bottom",maxHeight:a?S-b:E-b};if("auto"===o||a){var T=t,C=a?_:x;return C>=r&&(T=Math.min(C-b-u,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&bn(s,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(x>=h&&!a)return i&&wn(s,k,P),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&_>=r){var I=t;return(!a&&x>=r||a&&_>=r)&&(I=a?_-w:x-w),i&&wn(s,k,P),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});p(u.maxHeight),m(u.placement),null==s||s(u.placement)}}),[r,o,i,a,n,s,y]),t({ref:l,placerProps:ee(ee({},e),{},{placement:h||Dn(o),maxHeight:f})})},Rn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ee({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Mn=Rn,Vn=Rn,zn=["size"],Un=["innerProps","isRtl","size"],qn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Hn=function(e){var t=e.size,n=oe(e,zn);return Mt("svg",ae({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qn},n))},Bn=function(e){return Mt(Hn,ae({size:20},e),Mt("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"}))},Gn=function(e){return Mt(Hn,ae({size:20},e),Mt("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"}))},$n=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ee({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Yn=$n,Wn=$n,Qn=function(){var e=Vt.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_"}}}(Nn||(jn=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ln||(Ln=jn.slice(0)),Nn=Object.freeze(Object.defineProperties(jn,{raw:{value:Object.freeze(Ln)}})))),Kn=function(e){var t=e.delay,n=e.offset;return Mt("span",{css:Vt({animation:"".concat(Qn," 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"},"","")})},Xn=["data"],Jn=["innerRef","isDisabled","isHidden","inputClassName"],Zn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},er={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ee({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Zn)},tr=function(e){return ee({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Zn)},nr=function(e){var t=e.children,n=e.innerProps;return Mt("div",n,t)},rr={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Mt(Bn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Mt("div",ae({ref:o},yn(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Mt(Gn,null))},DownChevron:Gn,CrossIcon:Bn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,c=e.selectProps;return Mt("div",ae({},yn(e,"group",{group:!0}),u),Mt(i,ae({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:o,cx:n}),s),Mt("div",null,t))},GroupHeading:function(e){var t=mn(e);t.data;var n=oe(t,Xn);return Mt("div",ae({},yn(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Mt("span",ae({},t,yn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=mn(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,u=r.inputClassName,s=oe(r,Jn);return Mt("div",ae({},yn(e,"input",{"input-container":!0}),{"data-value":n||""}),Mt("input",ae({className:t({input:!0},u),ref:o,style:tr(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=oe(e,Un);return Mt("div",ae({},yn(ee(ee({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Mt(Kn,{delay:0,offset:n}),Mt(Kn,{delay:160,offset:!0}),Mt(Kn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Mt("div",ae({},yn(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Mt("div",ae({},yn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,u=(0,b.useRef)(null),s=(0,b.useRef)(null),l=re((0,b.useState)(Dn(i)),2),c=l[0],f=l[1],p=(0,b.useMemo)((function(){return{setPortalPlacement:f}}),[]),d=re((0,b.useState)(null),2),h=d[0],m=d[1],y=(0,b.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[c]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,c,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);ln((function(){y()}),[y]);var v=(0,b.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&u.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=rn(e),c=o||i?[...l?nn(l):[],...nn(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=l&&u?function(e,t){let n,r=null;const o=Wt(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:f,height:p}=e.getBoundingClientRect();if(u||t(),!f||!p)return;const d={rootMargin:-Bt(c)+"px "+-Bt(o.clientWidth-(l+f))+"px "+-Bt(o.clientHeight-(c+p))+"px "+-Bt(l)+"px",threshold:qt(0,Ut(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...d,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,d)}r.observe(e)}(!0),i}(l,n):null;let p,d=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!s&&h.observe(l),h.observe(t));let m=s?sn(e):null;return s&&function t(){const r=sn(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}(r,u.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);ln((function(){v()}),[v]);var g=(0,b.useCallback)((function(e){u.current=e,v()}),[v]);if(!t&&"fixed"!==a||!h)return null;var w=Mt("div",ae({ref:g},yn(ee(ee({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Mt(Fn.Provider,{value:p},t?(0,zt.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=oe(e,In);return Mt("div",ae({},yn(ee(ee({},o),{},{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,o=oe(e,Cn);return Mt("div",ae({},yn(ee(ee({},o),{},{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,o=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,s=n.Container,l=n.Label,c=n.Remove;return Mt(s,{data:r,innerProps:ee(ee({},yn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},Mt(l,{data:r,innerProps:ee({},yn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),Mt(c,{data:r,innerProps:ee(ee({},yn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:nr,MultiValueLabel:nr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({role:"button"},n),t||Mt(Bn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Mt("div",ae({},yn(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Mt("div",ae({},yn(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Mt("div",ae({},yn(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,o=e.hasValue;return Mt("div",ae({},yn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},or=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ir(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||or(r)&&or(o)))return!1;var r,o;return!0}for(var ar={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ur=function(e){return Mt("span",ae({css:ar},e))},sr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var f=u?" disabled":"",p="".concat(s?" selected":"").concat(f);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},lr=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,u=e.selectProps,s=e.id,l=e.isAppleDevice,c=u.ariaLiveMessages,f=u.getOptionLabel,p=u.inputValue,d=u.isMulti,h=u.isOptionDisabled,m=u.isSearchable,y=u.menuIsOpen,v=u.options,g=u.screenReaderStatus,w=u.tabSelectsValue,_=u.isLoading,S=u["aria-label"],x=u["aria-live"],E=(0,b.useMemo)((function(){return ee(ee({},sr),c||{})}),[c]),O=(0,b.useMemo)((function(){var e="";if(t&&E.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,u=t.value,s=o||n||function(e){return Array.isArray(e)?null:e}(u),l=s?f(s):"",c=r||i||void 0,p=c?c.map(f):[],d=ee({isDisabled:s&&h(s,a),label:l,labels:p},t);e=E.onChange(d)}return e}),[t,E,h,a,f]),k=(0,b.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var u={focused:t,label:f(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=E.onFocus(u)}return e}),[n,r,f,h,E,o,a,l]),P=(0,b.useMemo)((function(){var e="";if(y&&v.length&&!_&&E.onFilter){var t=g({count:o.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,E,v,g,_]),T="initial-input-focus"===(null==t?void 0:t.action),C=(0,b.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":y?"menu":"input";e=E.guidance({"aria-label":S,context:t,isDisabled:n&&h(n,a),isMulti:d,isSearchable:m,tabSelectsValue:w,isInitialFocus:T})}return e}),[S,n,r,d,h,m,y,E,a,w,T]),I=Mt(b.Fragment,null,Mt("span",{id:"aria-selection"},O),Mt("span",{id:"aria-focused"},k),Mt("span",{id:"aria-results"},P),Mt("span",{id:"aria-guidance"},C));return Mt(b.Fragment,null,Mt(ur,{id:s},T&&I),Mt(ur,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!T&&I))},cr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],fr=new RegExp("["+cr.map((function(e){return e.letters})).join("")+"]","g"),pr={},dr=0;dr<cr.length;dr++)for(var hr=cr[dr],mr=0;mr<hr.letters.length;mr++)pr[hr.letters[mr]]=hr.base;var yr=function(e){return e.replace(fr,(function(e){return pr[e]}))},vr=function(e,t){void 0===t&&(t=ir);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(yr),gr=function(e){return e.replace(/^\s+|\s+$/g,"")},br=function(e){return"".concat(e.label," ").concat(e.value)},wr=["innerRef"];function _r(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=re(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=re(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(oe(e,wr),"onExited","in","enter","exit","appear");return Mt("input",ae({ref:t},n,{css:Vt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Sr=["boxSizing","height","overflow","paddingRight","position"],xr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Er(e){e.preventDefault()}function Or(e){e.stopPropagation()}function kr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Tr=!("undefined"==typeof window||!window.document||!window.document.createElement),Cr=0,Ir={capture:!1,passive:!1},Nr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},jr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Lr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,b.useRef)(!1),u=(0,b.useRef)(!1),s=(0,b.useRef)(0),l=(0,b.useRef)(null),c=(0,b.useCallback)((function(e,t){if(null!==l.current){var s=l.current,c=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=l.current,h=t>0,m=f-p-c,y=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=f,y=!0,a.current=!0):!h&&-t>c&&(o&&!u.current&&o(e),d.scrollTop=0,y=!0,u.current=!0),y&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=(0,b.useCallback)((function(e){c(e,e.deltaY)}),[c]),p=(0,b.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,b.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;c(e,t)}),[c]),h=(0,b.useCallback)((function(e){if(e){var t=!!kn&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,b.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,b.useEffect)((function(){if(t){var e=l.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,b.useRef)({}),i=(0,b.useRef)(null),a=(0,b.useCallback)((function(e){if(Tr){var t=document.body,n=t&&t.style;if(r&&Sr.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Cr<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+i||0;Object.keys(xr).forEach((function(e){var t=xr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&Pr()&&(t.addEventListener("touchmove",Er,Ir),e&&(e.addEventListener("touchstart",kr,Ir),e.addEventListener("touchmove",Or,Ir))),Cr+=1}}),[r]),u=(0,b.useCallback)((function(e){if(Tr){var t=document.body,n=t&&t.style;Cr=Math.max(Cr-1,0),r&&Cr<1&&Sr.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Pr()&&(t.removeEventListener("touchmove",Er,Ir),e&&(e.removeEventListener("touchstart",kr,Ir),e.removeEventListener("touchmove",Or,Ir)))}}),[r]);return(0,b.useEffect)((function(){if(t){var e=i.current;return a(e),function(){u(e)}}}),[t,a,u]),function(e){i.current=e}}({isEnabled:n});return Mt(b.Fragment,null,n&&Mt("div",{onClick:Nr,css:jr}),t((function(e){o(e),i(e)})))}var Dr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Fr=function(e){var t=e.name,n=e.onFocus;return Mt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Dr,value:"",onChange:function(){}})};function Ar(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 Rr(){return Ar(/^Mac/i)}var Mr={clearIndicator:Wn,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,o=e.theme,i=o.colors,a=o.borderRadius;return ee({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Yn,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,o=n.spacing;return ee({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.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,o=r.spacing.baseUnit,i=r.colors;return ee({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ee(ee({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},er),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ee({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Vn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,u=o.colors;return ee((J(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),J(n,"position","absolute"),J(n,"width","100%"),J(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:i,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 ee({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,o=n.borderRadius,i=n.colors;return ee({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ee({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ee({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Mn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return ee({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ee({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ee({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ee({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Vr={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}},zr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sn(),captureMenuScroll:!Sn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ee({ignoreCase:!0,ignoreAccents:!0,stringify:br,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,s=a?gr(t):t,l=a?gr(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=vr(s),l=yr(l)),"start"===u?l.substr(0,s.length)===s:l.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 Ur(e,t,n,r){return{type:"option",data:t,isDisabled:Qr(e,t,n),isSelected:Kr(e,t,n),label:Yr(e,t),value:Wr(e,t),index:r}}function qr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ur(e,n,t,r)})).filter((function(t){return Gr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ur(e,n,t,r);return Gr(e,i)?i:void 0})).filter(Pn)}function Hr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,fe(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Br(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,fe(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 Gr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!Jr(e)||!i)&&Xr(e,{label:a,value:u,data:o},r)}var $r=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Yr=function(e,t){return e.getOptionLabel(t)},Wr=function(e,t){return e.getOptionValue(t)};function Qr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Kr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Wr(e,t);return n.some((function(t){return Wr(e,t)===r}))}function Xr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Jr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Zr=1,eo=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&&se(e,t)}(n,e);var t=function(e){var t=ce();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==K(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:""},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.isAppleDevice=Rr()||Ar(/^iPhone/i)||Ar(/^iPad/i)||Rr()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,u=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:u}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,u=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(u){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(fe(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,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=Tn(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Tn(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Tn(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return $r(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Br(qr(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;n<e;n++)t[n]=arguments[n];return dn.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Yr(r.props,e)},r.getOptionValue=function(e){return Wr(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Mr[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ee(ee({},rr),e.components);var e},r.buildCategorizedOptions=function(){return qr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Hr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:ee({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&vn(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){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 Jr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,y=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():u&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!f||!h||p&&r.isOptionSelected(h,y))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):u&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Zr),r.state.selectValue=hn(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=$r(o,i[a])}return r}return function(e,t,n){t&&ue(e.prototype,t),n&&ue(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&&_n(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(_n(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,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Vr):ee(ee({},Vr),this.props.theme):Vr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,u=this.props,s=u.isMulti,l=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,selectProps:u,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 Qr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Kr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Xr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,u=e.menuIsOpen,s=e.required,l=this.getComponents().Input,c=this.state,f=c.inputIsHidden,p=c.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=ee(ee(ee({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?b.createElement(l,ae({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):b.createElement(_r,ae({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:fn,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,s=this.commonProps,l=this.props,c=l.controlShouldRenderValue,f=l.isDisabled,p=l.isMulti,d=l.inputValue,h=l.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,g=m.isFocused;if(!this.hasValue()||!c)return d?null:b.createElement(u,ae({},s,{key:"placeholder",isDisabled:f,isFocused:g,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return y.map((function(t,a){var u=t===v,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return b.createElement(n,ae({},s,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:f,key:l,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(d)return null;var w=y[0];return b.createElement(a,ae({},s,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,ae({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?b.createElement(e,ae({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return b.createElement(n,ae({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,ae({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,c=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,g=p.maxMenuHeight,w=p.menuIsOpen,_=p.menuPlacement,S=p.menuPosition,x=p.menuPortalTarget,E=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,k=p.noOptionsMessage,P=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!w)return null;var C,I=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,u=t.label,s=t.value,p=f===o,d=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),y={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return b.createElement(l,ae({},c,{innerProps:y,data:o,isDisabled:i,isSelected:a,key:m,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,u="".concat(e.getElementId("group"),"-").concat(a),s="".concat(u,"-heading");return b.createElement(n,ae({},c,{key:u,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(m){var N=y({inputValue:h});if(null===N)return null;C=b.createElement(u,c,N)}else{var j=k({inputValue:h});if(null===j)return null;C=b.createElement(s,c,j)}var L={minMenuHeight:v,maxMenuHeight:g,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:O},D=b.createElement(An,ae({},c,L),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return b.createElement(o,ae({},c,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),b.createElement(Lr,{captureEnabled:d,onTopArrive:P,onBottomArrive:T,lockEnabled:E},(function(t){return b.createElement(i,ae({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:u,focusedOption:f}),C)})))}));return x||"fixed"===S?b.createElement(a,ae({},c,{appendTo:x,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!r)return b.createElement(Fr,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=u.map((function(t){return e.getOptionValue(t)})).join(n);return b.createElement("input",{name:i,type:"hidden",value:s})}var l=u.length>0?u.map((function(t,n){return b.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.createElement("input",{name:i,type:"hidden",value:""});return b.createElement("div",null,l)}var c=u[0]?this.getOptionValue(u[0]):"";return b.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return b.createElement(lr,ae({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,s=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused,f=this.commonProps=this.getCommonProps();return b.createElement(r,ae({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),b.createElement(t,ae({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:l}),b.createElement(o,ae({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(n,ae({},f,{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,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,u=t.prevWasFocused,s=t.instancePrefix,l=e.options,c=e.value,f=e.menuIsOpen,p=e.inputValue,d=e.isMulti,h=hn(c),m={};if(n&&(c!==n.value||l!==n.options||f!==n.menuIsOpen||p!==n.inputValue)){var y=f?function(e,t){return Hr(qr(e,t))}(e,h):[],v=f?Br(qr(e,h),"".concat(s,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,y);m={selectValue:h,focusedOption:b,focusedOptionId:$r(v,b),focusableOptionsWithIds:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=i,S=a&&u;return a&&!S&&(_={value:Tn(d,h,h[0]||null),options:h,action:"initial-input-focus"},S=!u),"initial-input-focus"===(null==i?void 0:i.action)&&(_=null),ee(ee(ee({},m),w),{},{prevProps:e,ariaSelection:_,prevWasFocused:S})}}]),n}(b.Component);eo.defaultProps=zr;var to=(0,b.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,u=e.inputValue,s=e.menuIsOpen,l=e.onChange,c=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=oe(e,ie),m=re((0,b.useState)(void 0!==u?u:n),2),y=m[0],v=m[1],g=re((0,b.useState)(void 0!==s?s:o),2),w=g[0],_=g[1],S=re((0,b.useState)(void 0!==d?d:a),2),x=S[0],E=S[1],O=(0,b.useCallback)((function(e,t){"function"==typeof l&&l(e,t),E(e)}),[l]),k=(0,b.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),v(void 0!==n?n:e)}),[c]),P=(0,b.useCallback)((function(){"function"==typeof p&&p(),_(!0)}),[p]),T=(0,b.useCallback)((function(){"function"==typeof f&&f(),_(!1)}),[f]),C=void 0!==u?u:y,I=void 0!==s?s:w,N=void 0!==d?d:x;return ee(ee({},h),{},{inputValue:C,menuIsOpen:I,onChange:O,onInputChange:k,onMenuClose:T,onMenuOpen:P,value:N})}(e);return b.createElement(eo,ae({ref:t},n))})),no=to,ro=function(){return ro=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ro.apply(this,arguments)},oo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},io=function(e){return ro(ro({},e),{borderRadius:0,colors:ro(ro({},e.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},ao=function(e,t){return(0,b.useMemo)((function(){return{placeholder:function(e){return ro(ro({},e),{color:"var(--placeholder-body-color)"})},container:function(e){return ro(ro({},e),{fontSize:"inherit"})},control:function(n,r){var o=r.isFocused,i=n;return i=ro(ro({},i),{minHeight:40}),ro(ro({},i),o?{borderColor:t?"var(--alert-color)":"var(--accent-color)",backgroundColor:e?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(t?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:t?"var(--alert-color)":"var(--accent-color)"}}:{borderColor:t?"var(--alert-color)":"var(--border-color)",backgroundColor:e?"var(--disabled-color)":"white","&:hover":{borderColor:t?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(e){return ro(ro({},e),{cursor:"pointer"})},menu:function(e){return ro(ro({},e),{zIndex:1e3,minWidth:250})},input:function(e){return ro(ro({},e),{boxShadow:"none","input:focus":{boxShadow:"none"}})},multiValue:function(e){return ro(ro({},e),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(e){return ro(ro({},e),{fontSize:"inherit",padding:3})}}}),[e,t])};function uo(e){var t=e.isDisabled,n=e.error,r=oo(e,["isDisabled","error"]),o=ao(t,n);return b.createElement(no,ro({},r,{isDisabled:t,theme:io,styles:o}))}var so,lo,co=function(){return co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},co.apply(this,arguments)};function fo(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.placeholder,s=e.formLabelProps,l=e.value,c=e.onChange,f=e.selectInputProps;return b.createElement(Q,{formLabelProps:s,id:t,required:a,error:i,hint:o,label:r},b.createElement(uo,co({},f,{id:t,name:n,value:l,placeholder:u,onChange:c,error:!!i})))}!function(e){e.MainNavigationTabs="mainNavigationTabs",e.ContentAreaSidebarItems="contentAreaSidebarItems",e.SettingsAreaSidebarItemGroups="settingsAreaSidebarItemGroups"}(so||(so={})),function(e){e.Before="before",e.After="after",e.Content="content",e.Media="media",e.Schema="schema",e.Configuration="configuration",e.CdaPlayground="cdaPlayground",e.Properties="properties",e.Permissions="permissions",e.MenuItems="menuItems",e.SeoPreferences="seoPreferences"}(lo||(lo={}));var po="Upload SVG",ho="svg-uploader",mo="file-upload",yo="svg-raw-viewer-modal",vo="New SVG",go=[{label:"Top menu",value:so.MainNavigationTabs},{label:"Side menu",value:so.ContentAreaSidebarItems},{label:"Settings menu",value:so.SettingsAreaSidebarItemGroups}],bo=[{label:"Before menu item",value:lo.Before},{label:"After menu item",value:lo.After}],wo=[{label:"Menu items",value:lo.MenuItems},{label:"Seo preferences",value:lo.SeoPreferences}],_o=[{label:"Properties",value:lo.Properties},{label:"Permissions",value:lo.Permissions}],So=[{label:"Content",value:lo.Content},{label:"Media",value:lo.Media},{label:"Schema",value:lo.Schema},{label:"Configuration",value:lo.Configuration},{label:"CDA Playground",value:lo.CdaPlayground}],xo="plugin_svg",Eo="Plugin SVG";function Oo(e){return e===so.SettingsAreaSidebarItemGroups?_o:e===so.ContentAreaSidebarItems?wo:So}var ko=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Po="__ARRAY_INDEX__";function To(e){return e.reduce((function(e,t,n){return 0===n?t:t===Po?"".concat(e,"[]"):"".concat(e,"[").concat(t,"]")}),"")}function Co(e){if("number"==typeof e||"string"==typeof e)return e.toString();if(!0===e)return"true";if(!1===e)return"false";throw"Don't know how to serialize param value ".concat(JSON.stringify(e))}function Io(e,t){void 0===t&&(t=[]);var n=[];if("number"==typeof e||"string"==typeof e||"boolean"==typeof e)n.push([To(t),Co(e)]);else if("object"==typeof e)if(Array.isArray(e))for(var r=0,o=e;r<o.length;r++)for(var i=0,a=Io(o[r],ko(ko([],t,!0),[Po],!1));i<a.length;i++){var u=a[i];n.push(u)}else if(e)for(var s=0,l=Object.entries(e);s<l.length;s++)for(var c=l[s],f=c[0],p=0,d=Io(c[1],ko(ko([],t,!0),[f],!1));p<d.length;p++)u=d[p],n.push(u);return n}var No,jo=(No=function(e,t){return No=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},No(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}No(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Lo={BATCH_DATA_VALIDATION_IN_PROGRESS:"The schema of this model changed, we're re-running validations over every record in background. Please retry with this operation in a few seconds!",INSUFFICIENT_PERMISSIONS:"Your role does not permit this action",MAINTENANCE_MODE:"The project is currently in maintenance mode!",DELETE_RESTRICTION:"Sorry, but you cannot delete this resource, as it's currently used/referenced elsewhere!",INVALID_CREDENTIALS:"Credentials are incorrect!",INVALID_EMAIL:"Email address is incorrect!",INVALID_FORMAT:"The format of the parameters passed is incorrect, take a look at the details of the error to know what's wrong!",ITEM_LOCKED:"The operation cannot be completed as some other user is currently editing this record!",LINKED_FROM_PUBLISHED_ITEMS:"Couldn't unpublish the record, as some published records are linked to it!",PLAN_UPGRADE_REQUIRED:"Cannot proceed, please upgrade plan!",PUBLISHED_CHILDREN:"Couldn't unpublish the record, some children records are still published!",REQUIRED_2FA_SETUP:"This project requires every user to turn on 2-factor authentication! Please go to your Dashboard and activate it! (https://dashboard.datocms.com/account/setup-2fa)",REQUIRED_BY_ASSOCIATION:"Cannot delete the record, as it's required by other records:",STALE_ITEM_VERSION:"Someone else made a change while you were editing this record, please refresh the page!",TITLE_ALREADY_PRESENT:"There can only be one Title field per model",UNPUBLISHED_LINK:"Couldn't publish the record, as it links some unpublished records!",UNPUBLISHED_PARENT:"Couldn't publish the record, as the parent record is not published!",UPLOAD_IS_CURRENTLY_IN_USE:"Couldn't delete this asset, as it's currently used by some records!",UPLOAD_NOT_PASSING_FIELD_VALIDATIONS:"Couldn't update this asset since some records are failing to pass the validations!"},Do={build_triggers:"You've reached the maximum number of build triggers your plan allows",sandbox_environments:"You've reached the maximum number of environments your plan allows",item_types:"You've reached the maximum number of models your plan allows to create",items:"You've reached the maximum number of records your plan allows to create",locales:"You've reached the maximum number of locales your plan allows",mux_encoding_seconds:"You've reached the maximum video encoding limits of your plan",otp:"Two-factor authentication cannot be on the current plan",plugins:"You've reached the maximum number of plugins your plan allows",roles:"You've reached the maximum number of roles your plan allows to create",uploadable_bytes:"You've reached the file storage limits of your plan",users:"You've reached the maximum number of collaborators your plan allows to invite to the project",access_tokens:"You've reached the maximum number of API tokens your plan allows to create"},Fo=function(e){function t(t){var n=this.constructor,r=e.call(this,"API Error!")||this;return Object.setPrototypeOf(r,n.prototype),"captureStackTrace"in Error?Error.captureStackTrace(r,Ao):r.stack=(new Error).stack,r.request=t.request,r.preCallStack=t.preCallStack,r.message="".concat(t.request.method," ").concat(t.request.url,": Timeout error"),r.preCallStack&&(r.stack+="\nCaused By:\n".concat(r.preCallStack)),r}return jo(t,e),t}(Error),Ao=function(e){function t(n){var r=this.constructor,o=e.call(this,"API Error!")||this;Object.setPrototypeOf(o,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(o,t):o.stack=(new Error).stack,o.request=n.request,o.response=n.response,o.preCallStack=n.preCallStack;var i="".concat(n.request.method," ").concat(n.request.url,": ").concat(o.response.status," ").concat(o.response.statusText);return o.errors.length>0&&(i+="\n\n".concat(JSON.stringify(o.errors,null,2))),o.message=i,o.preCallStack&&(o.stack+="\nCaused By:\n".concat(o.preCallStack)),o}return jo(t,e),Object.defineProperty(t.prototype,"errors",{get:function(){return function(e){if("object"!=typeof e||null===e||!("data"in e))return!1;var t=e;if(!Array.isArray(t.data))return!1;var n=t;if(0===n.data.length)return!1;var r=n.data[0];return"object"==typeof r&&null!==r&&"id"in r&&"type"in r&&"attributes"in r&&"api_error"===r.type}(this.response.body)?this.response.body.data:[]},enumerable:!1,configurable:!0}),t.prototype.findError=function(e,t){var n=Array.isArray(e)?e:[e];return this.errors.find((function(e){return n.includes(e.attributes.code)&&(!t||("function"==typeof t?t(e.attributes.details):Object.entries(t).every((function(t){var n=t[0],r=t[1];return e.attributes.details[n]===r}))))}))},Object.defineProperty(t.prototype,"humanMessage",{get:function(){var e=this,t=this.findError("PLAN_UPGRADE_REQUIRED");if(t){var n=t.attributes.details.limit;return"".concat(Do[n],". Please head over to your account dashboard (https://dashboard.datocms.com/) to upgrade the plan or, if no publicly available plan suits your needs, contact our Sales team (https://www.datocms.com/contact) to get a custom quote!")}var r=Object.keys(Lo).filter((function(t){return e.findError(t)})).map((function(e){return Lo[e]}));return 0===r.length?null:r.join("\n")},enumerable:!1,configurable:!0}),t}(Error),Ro=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mo=function(e){function t(){var t=this.constructor,n=e.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(n,t.prototype),n}return Ro(t,e),t}(Error);function Vo(e,t){var n=null,r=new Promise((function(r,o){n=function(){try{t&&t(),o(new Mo)}catch(e){o(e)}},("function"==typeof e?e():e).then(r,o)}));return n&&(r.cancel=n),r}function zo(e){return new Promise((function(t){setTimeout(t,e)}))}var Uo,qo=function(){return qo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qo.apply(this,arguments)},Ho="undefined"!=typeof window&&void 0!==window.document;function Bo(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o.status,statusText:o.statusText,headers:(u=o.headers,s={},u.forEach((function(e,t){s[t]=e})),s),body:i},preCallStack:a};var u,s}!function(e){e[e.NONE=0]="NONE",e[e.BASIC=1]="BASIC",e[e.BODY=2]="BODY",e[e.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"}(Uo||(Uo={}));var Go=1;function $o(e){return t=this,n=void 0,o=function(){var t,n,r,o,i,a,u,s,l,c,f,p,d,h,m,y,v,g,b,w,_,S,x,E,O,k,P,T,C,I,N;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(j){switch(j.label){case 0:if(t=Go,Go+=1,void 0===(n=e.fetchFn||("undefined"==typeof fetch?void 0:fetch)||("undefined"==typeof globalThis?void 0:globalThis.fetch)))throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");if(r=e.preCallStack,o=e.userAgent||"@datocms/rest-client-utils",i=e.retryCount||1,a=e.logLevel||Uo.NONE,u=!("autoRetry"in e)||e.autoRetry,s=e.logFn||function(){return!0},l=qo({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?(L=e.extraHeaders,Object.fromEntries(Object.entries(L).map((function(e){var t=e[0],n=e[1];return[t.toLowerCase(),n]})))):{}),Ho&&delete l["user-agent"],c=e.baseUrl.replace(/\/$/,""),f=e.body?JSON.stringify(e.body,null,2):void 0,p=e.queryParams&&Object.keys(e.queryParams).length>0?"?".concat(new URLSearchParams(Io(e.queryParams)).toString()):"",d="".concat(c).concat(e.url).concat(p),a>=Uo.BASIC){if(s("[".concat(t,"] ").concat(e.method," ").concat(d)),a>=Uo.BODY_AND_HEADERS)for(h=0,m=Object.entries(l||{});h<m.length;h++)y=m[h],O=y[0],k=y[1],s("[".concat(t,"] ").concat(O,": ").concat(k));a>=Uo.BODY&&f&&s("[".concat(t,"] ").concat(f))}j.label=1;case 1:return j.trys.push([1,12,,16]),v=Vo(n(d,{method:e.method,headers:l,body:f})),g=setTimeout((function(){v.cancel()}),e.requestTimeout||3e4),[4,v];case 2:if(b=j.sent(),clearTimeout(g),w=b.headers.get("Content-Type"),_=w&&!w.includes("application/json"),429!==b.status&&!_)return[3,4];if(!u||_&&"GET"!==e.method)throw new Ao(Bo(e.method,d,l,e.body,b,void 0,r));return S=b.headers.has("X-RateLimit-Reset")?Number.parseInt(b.headers.get("X-RateLimit-Reset"),10):i,a>=Uo.BASIC&&(429===b.status?s("[".concat(t,"] Rate limit exceeded, wait ").concat(S," seconds then retry...")):s("[".concat(t,'] Invalid response content type "').concat(w,'" (status ').concat(b.status,"). Wait ").concat(S," seconds then retry..."))),[4,zo(1e3*S)];case 3:return j.sent(),[2,$o(qo(qo({},e),{retryCount:i+1}))];case 4:if(a>=Uo.BASIC&&(s("[".concat(t,"] Status: ").concat(b.status," (").concat(b.statusText,")")),a>=Uo.BODY_AND_HEADERS))for(x=0,E=["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"];x<E.length;x++)O=E[x],(k=b.headers.get(O))&&s("[".concat(t,"] ").concat(O,": ").concat(k));return 204!==b.status?[3,5]:(T=void 0,[3,7]);case 5:return[4,b.json()];case 6:T=j.sent(),j.label=7;case 7:return P=T,a>=Uo.BODY&&P&&s("[".concat(t,"] ").concat(JSON.stringify(P,null,2))),202!==b.status?[3,9]:[4,e.fetchJobResult(P.data.id)];case 8:if((C=j.sent()).status<200||C.status>=300)throw new Ao(function(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o,statusText:"N/A",headers:{},body:i},preCallStack:a}}(e.method,d,l,e.body,C.status,C.payload,r));P=C.payload,j.label=9;case 9:return b.status>=200&&b.status<300?[2,P]:(I=new Ao(Bo(e.method,d,l,e.body,b,P,r)),u&&I.findError("BATCH_DATA_VALIDATION_IN_PROGRESS")?(a>=Uo.BASIC&&s("[".concat(t,"] Data validation in progress, wait ").concat(i," seconds then retry...")),[4,zo(1e3*i)]):[3,11]);case 10:return j.sent(),[2,$o(qo(qo({},e),{retryCount:i+1}))];case 11:throw I;case 12:return(N=j.sent())instanceof Mo||function(e){return"object"==typeof e&&!!e&&"code"in e}(N)&&N.code.includes("ETIMEDOUT")?u&&i<5?(a>=Uo.BASIC&&s("[".concat(t,"] Timeout error, wait ").concat(i," seconds then retry...")),[4,zo(1e3*i)]):[3,14]:[3,15];case 13:return j.sent(),[2,$o(qo(qo({},e),{retryCount:i+1}))];case 14:throw new Fo(function(e,t,n,r,o){return{request:{url:t,method:e,headers:n,body:r},preCallStack:o}}(e.method,d,l,e.body,r));case 15:throw N;case 16:return[2]}var L}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function u(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}var Yo=function(){return Yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yo.apply(this,arguments)};function Wo(e){return"object"==typeof e&&!!e&&"id"in e&&"type"in e}function Qo(e){return Array.isArray(e)&&e.every(Wo)}function Ko(e,t){if("object"!=typeof e||!e)throw new Error("Invalid body!");var n=e,r=n.id,o=n.type,i=n.meta,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["id","type","meta"]),u={},s={};if("*"===t.attributes)for(var l=0,c=Object.entries(a);l<c.length;l++){var f=c[l],p=f[0],d=f[1];if(t.relationships.includes(p))if(Wo(d)){var h=d.id,m=d.type;s[p]={data:{id:h,type:m}}}else Qo(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null};else u[p]=d}else if("*"===t.relationships)for(var y=0,v=Object.entries(a);y<v.length;y++){var g=v[y];if(p=g[0],d=g[1],t.attributes.includes(p))u[p]=d;else if(Wo(d)){var b=d.id,w=d.type;s[p]={data:{id:b,type:w}}}else Qo(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}else for(var _=0,S=Object.entries(a);_<S.length;_++){var x=S[_];if(p=x[0],d=x[1],t.attributes.includes(p))u[p]=d;else if(t.relationships.includes(p))if(Wo(d)){var E=d.id,O=d.type;s[p]={data:{id:E,type:O}}}else Qo(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}return{data:Yo(Yo(Yo(Yo(Yo({},r||t.id?{id:r||t.id}:{}),{type:o||t.type}),Object.keys(u).length>0?{attributes:u}:{}),Object.keys(s).length>0?{relationships:s}:{}),i?{meta:i}:{})}}var Xo=function(){return Xo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xo.apply(this,arguments)};function Jo(e){var t=e.id,n=e.type,r=e.attributes,o=e.relationships,i=e.meta;return Xo(Xo(Xo(Xo(Xo({},t?{id:t}:{}),n?{type:n}:{}),r||{}),o?Object.fromEntries(Object.entries(o).map((function(e){var t=e[0],n=e[1];return[t,null==n?void 0:n.data]}))):{}),i?{meta:i}:{})}function Zo(e){if("object"!=typeof(t=e)||!t||!("data"in t))throw new Error("Invalid body!");var t;return Array.isArray(e.data)?e.data.map(Jo):Jo(e.data)}function ei(e){return"string"==typeof e?e:e.id}const ti=function(e){this.client=e};var ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ni(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/roles",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/roles/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/roles/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/roles/".concat(e)})},t.TYPE="role",t}(ti);var oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ii=function(){return ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ii.apply(this,arguments)},ai=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function ui(e,t){return null==e&&null==t||e===t}function si(e,t,n,r){if(!t)return e;var o=t.add,i=t.remove;return ai(ai([],i?i.reduce((function(e,t){var o=ii(ii({},t),{environment:n}),i=e.find((function(e){return function(e,t){for(var n in e)if(!ui(e[n],t[n]))return!1;for(var n in t)if(!ui(e[n],t[n]))return!1;return!0}(e,o)}));if(!i)throw new Error("Cannot find rule ".concat(JSON.stringify(o)," to remove in ").concat(r,"!"));return e.filter((function(e){return e!==i}))}),e):e,!0),o?o.map((function(e){return ii({environment:n},e)})):[],!0)}var li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oi(t,e),t.prototype.updateCurrentEnvironmentPermissions=function(e,t){return n=this,r=void 0,i=function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:return(r=this.client.config.environment)?[3,2]:[4,this.client.environments.list()];case 1:r=s.sent().find((function(e){return e.meta.primary})).id,s.label=2;case 2:return n=r,[4,this.find(e)];case 3:return o=s.sent(),i=Boolean(t.positive_item_type_permissions||t.negative_item_type_permissions),a=Boolean(t.positive_upload_permissions||t.negative_upload_permissions),u=ii(ii({},i?{positive_item_type_permissions:si(o.positive_item_type_permissions,t.positive_item_type_permissions,n,"positive_item_type_permissions"),negative_item_type_permissions:si(o.negative_item_type_permissions,t.negative_item_type_permissions,n,"negative_item_type_permissions")}:{}),a?{positive_upload_permissions:si(o.positive_upload_permissions,t.positive_upload_permissions,n,"positive_upload_permissions"),negative_upload_permissions:si(o.negative_upload_permissions,t.negative_upload_permissions,n,"negative_upload_permissions")}:{}),[2,this.update(e,u)]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},t}(ri);const ci=li;var fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"user",attributes:["is_active"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/users/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},t.prototype.find=function(e,t){return this.rawFind(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/users/".concat(e),queryParams:t})},t.prototype.findMe=function(e){return this.rawFindMe(e).then((function(e){return Zo(e)}))},t.prototype.rawFindMe=function(e){return this.client.request({method:"GET",url:"/users/me",queryParams:e})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/users/".concat(e),queryParams:t})},t.TYPE="user",t}(ti);var di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return di(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/sso-users/".concat(e)})},t.prototype.copyUsers=function(){return this.rawCopyUsers().then((function(e){return Zo(e)}))},t.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/sso-users/".concat(e),queryParams:t})},t.TYPE="sso_user",t}(ti);var mi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mi(t,e),t.prototype.query=function(e){return this.rawQuery(Ko(e,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawQuery=function(e){return this.client.request({method:"POST",url:"/audit-log-events/query",body:e})},t.TYPE="audit_log_event",t}(ti);var vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vi(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/menu-items/".concat(e)})},t.TYPE="menu_item",t}(ti);var bi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bi(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/schema-menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/schema-menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/schema-menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/schema-menu-items/".concat(e)})},t.TYPE="schema_menu_item",t}(ti);var _i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _i(t,e),t.prototype.create=function(e,t){return this.rawCreate(Ko(e,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]}),t).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types",body:e,queryParams:t})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-types/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/duplicate")})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/item-types/".concat(e),queryParams:t})},t.TYPE="item_type",t}(ti);var xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xi(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fields"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fields/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields")})},t.prototype.referencing=function(e){return this.rawReferencing(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawReferencing=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/referencing")})},t.prototype.related=function(e){return this.rawRelated(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawRelated=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/related")})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fields/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fields/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/fields/".concat(e,"/duplicate")})},t.TYPE="field",t}(ti);var Oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oi(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fieldsets"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fieldsets/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fieldsets")})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fieldsets/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(e)})},t.TYPE="fieldset",t}(ti);var Pi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pi(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/sessions",body:e})},t.TYPE="session",t}(ti);var Ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ci(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/access_tokens",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/access_tokens/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/access_tokens/".concat(e)})},t.prototype.regenerateToken=function(e){return this.rawRegenerateToken(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawRegenerateToken=function(e){return this.client.request({method:"POST",url:"/access_tokens/".concat(e,"/regenerate_token")})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(e),queryParams:t})},t.TYPE="access_token",t}(ti);var Ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ni(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/plugins",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/plugins/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/plugins/".concat(e)})},t.prototype.fields=function(e){return this.rawFields(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFields=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e,"/fields")})},t.TYPE="plugin",t}(ti);var Li=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/job-results/".concat(e)})},t.TYPE="job_result",t}(ti);var Fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/subscription-limits/".concat(e)})},t.TYPE="subscription_limit",t}(ti);var Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ri(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(ti);var Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-events/".concat(e)})},t.TYPE="build_event",t}(ti);var Ui=o(3271),qi=function(e){return this instanceof qi?(this.v=e,this):new qi(e)};function Hi(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof qi?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c,f,p,d,h,m,y;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(v){switch(v.label){case 0:if((r=(null==n?void 0:n.perPage)||e.defaultLimit)>e.maxLimit)throw new Error("perPage option cannot exceed maximum value of ".concat(e.maxLimit));if((o=(null==n?void 0:n.concurrency)||1)>10)throw new Error("concurrency option cannot exceed maximum value of 10");return[4,qi(t({limit:r,offset:0}))];case 1:i=v.sent(),a=0,u=i.data,v.label=2;case 2:return a<u.length?(y=u[a],[4,qi(y)]):[3,6];case 3:return[4,v.sent()];case 4:v.sent(),v.label=5;case 5:return a++,[3,2];case 6:for(s=i.meta.total_count,l=new Ui.Scheduler(o),c=[],f=function(e){c.push(l.enqueue((function(){return t({limit:r,offset:e})})))},p=r;p<s;p+=r)f(p);v.label=7;case 7:return c.length>0?[4,qi(c.shift())]:[3,14];case 8:d=v.sent(),h=0,m=d.data,v.label=9;case 9:return h<m.length?(y=m[h],[4,qi(y)]):[3,13];case 10:return[4,v.sent()];case 11:v.sent(),v.label=12;case 12:return h++,[3,9];case 13:return[3,7];case 14:return[2]}}))}))}function Bi(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var Gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$i=function(){return $i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$i.apply(this,arguments)},Yi=function(e){return this instanceof Yi?(this.v=e,this):new Yi(e)},Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gi(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/items",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Yi?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Yi(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Yi(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Yi(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi(e),Hi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList($i($i({},e),{page:t}))}),t)},t.prototype.validateExisting=function(e,t){return this.rawValidateExisting(ei(e),Ko(t,{id:ei(e),type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateExisting=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/validate"),body:t})},t.prototype.validateNew=function(e){return this.rawValidateNew(Ko(e,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateNew=function(e){return this.client.request({method:"POST",url:"/items/validate",body:e})},t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/items",body:e})},t.prototype.duplicate=function(e){return this.rawDuplicate(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/items/".concat(e,"/duplicate")})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/items/".concat(e),body:t})},t.prototype.references=function(e,t){return this.rawReferences(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/references"),queryParams:t})},t.prototype.find=function(e,t){return this.rawFind(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e),queryParams:t})},t.prototype.currentVsPublishedState=function(e){return this.rawCurrentVsPublishedState(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawCurrentVsPublishedState=function(e){return this.client.request({method:"GET",url:"/items/".concat(e,"/current-vs-published-state")})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e)})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/items",queryParams:e})},t.prototype.batchPublish=function(e){return this.rawBatchPublish(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchPublish=function(e){return this.client.request({method:"PUT",url:"/items/publish",queryParams:e})},t.prototype.batchUnpublish=function(e){return this.rawBatchUnpublish(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchUnpublish=function(e){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:e})},t.prototype.publish=function(e,t,n){return this.rawPublish(ei(e),t?Ko(t,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,n).then((function(e){return Zo(e)}))},t.prototype.rawPublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/publish"),body:t,queryParams:n})},t.prototype.unpublish=function(e,t,n){return this.rawUnpublish(ei(e),t?Ko(t,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,n).then((function(e){return Zo(e)}))},t.prototype.rawUnpublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/unpublish"),body:t,queryParams:n})},t.prototype.bulkPublish=function(e){return this.rawBulkPublish(Ko(e,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkPublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/publish",body:e})},t.prototype.bulkUnpublish=function(e){return this.rawBulkUnpublish(Ko(e,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkUnpublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(Ko(e,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:e})},t.prototype.bulkMoveToStage=function(e){return this.rawBulkMoveToStage(Ko(e,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkMoveToStage=function(e){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:e})},t.TYPE="item",t}(ti);const Qi=Wi;var Ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xi=function(){return Xi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xi.apply(this,arguments)},Ji=function(e){return this instanceof Ji?(this.v=e,this):new Ji(e)},Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ki(t,e),t.prototype.restore=function(e){return this.rawRestore(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawRestore=function(e){return this.client.request({method:"POST",url:"/versions/".concat(e,"/restore")})},t.prototype.list=function(e,t){return this.rawList(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/versions"),queryParams:t})},t.prototype.listPagedIterator=function(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Ji?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(f){switch(f.label){case 0:f.trys.push([0,9,10,15]),r=!0,o=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(ei(e),t,n)),f.label=1;case 1:return[4,Ji(o.next())];case 2:if(i=f.sent(),u=i.done)return[3,8];c=i.value,r=!1,f.label=3;case 3:return f.trys.push([3,,6,7]),[4,Ji(Jo(c))];case 4:return[4,f.sent()];case 5:return f.sent(),[3,7];case 6:return r=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return a=f.sent(),s={error:a},[3,15];case 10:return f.trys.push([10,,13,14]),r||u||!(l=o.return)?[3,12]:[4,Ji(l.call(o))];case 11:f.sent(),f.label=12;case 12:return[3,14];case 13:if(s)throw s.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t,n){var r=this;return Bi(t),Hi({defaultLimit:15,maxLimit:50},(function(n){return r.rawList(e,Xi(Xi({},t),{page:n}))}),n)},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/versions/".concat(e)})},t.TYPE="item_version",t}(ti);const ea=Zi;var ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),na=function(){return na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},na.apply(this,arguments)},ra=function(e){return this instanceof ra?(this.v=e,this):new ra(e)},oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ta(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/uploads",body:e})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof ra?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,ra(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,ra(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,ra(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi(e),Hi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(na(na({},e),{page:t}))}),t)},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/".concat(e)})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/uploads/".concat(e),body:t})},t.prototype.batchAddTags=function(e,t){return this.rawBatchAddTags(Ko(e,{type:"upload",attributes:["tags"],relationships:[]}),t).then((function(e){return Zo(e)}))},t.prototype.rawBatchAddTags=function(e,t){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:e,queryParams:t})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:e})},t.prototype.references=function(e,t){return this.rawReferences(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/references"),queryParams:t})},t.prototype.bulkTag=function(e){return this.rawBulkTag(Ko(e,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkTag=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(Ko(e,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:e})},t.TYPE="upload",t}(ti);const ia=oa;var aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return aa(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload_request",attributes:["filename"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-requests",body:e})},t.TYPE="upload_request",t}(ti);var sa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const la=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sa(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks"),body:t})},t.prototype.list=function(e){return this.rawList(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/tracks")})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),ei(t)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/uploads/".concat(e,"/tracks/").concat(t)})},t.prototype.generateSubtitles=function(e,t){return this.rawGenerateSubtitles(ei(e),Ko(t,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawGenerateSubtitles=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks/generate-subtitles"),body:t})},t.TYPE="upload_track",t}(ti);var ca=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ca(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-publication"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-publication")})},t.TYPE="scheduled_publication",t}(ti);var pa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pa(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-unpublishing"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-unpublishing")})},t.TYPE="scheduled_unpublishing",t}(ti);var ha=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ma.apply(this,arguments)},ya=function(e){return this instanceof ya?(this.v=e,this):new ya(e)},va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ha(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/search-results",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof ya?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,ya(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,ya(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,ya(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi(e),Hi({defaultLimit:20,maxLimit:100},(function(t){return n.rawList(ma(ma({},e),{page:t}))}),t)},t.TYPE="search_result",t}(ti);const ga=va;var ba=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ba(t,e),t.prototype.fork=function(e,t,n){return this.rawFork(ei(e),Ko(t,{id:ei(e),type:"environment",attributes:[],relationships:[]}),n).then((function(e){return Zo(e)}))},t.prototype.rawFork=function(e,t,n){return this.client.request({method:"POST",url:"/environments/".concat(e,"/fork"),body:t,queryParams:n})},t.prototype.promote=function(e){return this.rawPromote(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawPromote=function(e){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/promote")})},t.prototype.rename=function(e,t){return this.rawRename(ei(e),Ko(t,{id:ei(e),type:"environment",attributes:[],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawRename=function(e,t){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/rename"),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/environments/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/environments/".concat(e)})},t.TYPE="environment",t}(ti);var _a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _a(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},t.prototype.activate=function(e){return this.rawActivate(e).then((function(e){return Zo(e)}))},t.prototype.rawActivate=function(e){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:e})},t.prototype.deactivate=function(){return this.rawDeactivate().then((function(e){return Zo(e)}))},t.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},t.TYPE="maintenance_mode",t}(ti);var xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xa(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/webhooks",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/webhooks/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/webhooks/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/webhooks/".concat(e)})},t.TYPE="webhook",t}(ti);var Oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ka=function(){return ka=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ka.apply(this,arguments)},Pa=function(e){return this instanceof Pa?(this.v=e,this):new Pa(e)},Ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oa(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Pa?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Pa(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Pa(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Pa(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi(e),Hi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(ka(ka({},e),{page:t}))}),t)},t.prototype.resendWebhook=function(e){return this.rawResendWebhook(ei(e))},t.prototype.rawResendWebhook=function(e){return this.client.request({method:"POST",url:"/webhook_calls/".concat(e,"/resend_webhook")})},t.TYPE="webhook_call",t}(ti);const Ca=Ta;var Ia=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ia(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-triggers/".concat(e)})},t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/build-triggers",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e),body:t})},t.prototype.trigger=function(e){return this.rawTrigger(ei(e))},t.prototype.rawTrigger=function(e){return this.client.request({method:"POST",url:"/build-triggers/".concat(e,"/trigger")})},t.prototype.abort=function(e){return this.rawAbort(ei(e))},t.prototype.rawAbort=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort")})},t.prototype.abortIndexing=function(e){return this.rawAbortIndexing(ei(e))},t.prototype.rawAbortIndexing=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort_indexing")})},t.prototype.reindex=function(e){return this.rawReindex(ei(e))},t.prototype.rawReindex=function(e){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e,"/reindex")})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e)})},t.TYPE="build_trigger",t}(ti);var ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const La=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ja(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/item-type-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-type-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(e)})},t.TYPE="item_type_filter",t}(ti);var Da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Da(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/upload-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/upload-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(e)})},t.TYPE="upload_filter",t}(ti);var Aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/site-invitations",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"site_invitation",attributes:[],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/site-invitations/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site-invitations/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(e)})},t.prototype.resend=function(e){return this.rawResend(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawResend=function(e){return this.client.request({method:"POST",url:"/site-invitations/".concat(e,"/resend")})},t.TYPE="site_invitation",t}(ti);var Ma=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ma(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(e)})},t.TYPE="editing_session",t}(ti);var za=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return za(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},t.prototype.copyRoles=function(e){return this.rawCopyRoles(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawCopyRoles=function(e){return this.client.request({method:"POST",url:"/sso-groups/".concat(e,"/copy-roles")})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"sso_group",attributes:["priority"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/sso-groups/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(e)})},t.TYPE="sso_group",t}(ti);var qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},t.prototype.generateToken=function(){return this.rawGenerateToken().then((function(e){return Zo(e)}))},t.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},t.prototype.update=function(e){return this.rawUpdate(Ko(e,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/sso-settings",body:e})},t.TYPE="sso_settings",t}(ti);var Ba=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ba(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:e})},t.TYPE="emoji_suggestions",t}(ti);var $a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $a(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},t.prototype.update=function(e){return this.rawUpdate(Ko(e,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/white-label-settings",body:e})},t.TYPE="white_label_settings",t}(ti);var Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wa(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},t.TYPE="public_info",t}(ti);var Ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ka(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},t.TYPE="daily_usage",t}(ti);var Ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ja(t,e),t.prototype.find=function(e,t){return this.rawFind(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(e),queryParams:t})},t.TYPE="usage_counter",t}(ti);var eu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tu=function(){return tu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tu.apply(this,arguments)},nu=function(e){return this instanceof nu?(this.v=e,this):new nu(e)},ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof nu?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,nu(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,nu(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,nu(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi(e),Hi({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(tu(tu({},e),{page:t}))}),t)},t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload_tag",attributes:["name"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-tags",body:e})},t.TYPE="upload_tag",t}(ti);const ou=ru;var iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),au=function(){return au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},au.apply(this,arguments)},uu=function(e){return this instanceof uu?(this.v=e,this):new uu(e)},su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof uu?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,uu(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,uu(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,uu(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi(e),Hi({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(au(au({},e),{page:t}))}),t)},t.TYPE="upload_smart_tag",t}(ti);const lu=su;var cu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cu(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site",queryParams:e})},t.prototype.update=function(e){return this.rawUpdate(Ko(e,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/site",body:e})},t.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},t.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},t.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},t.prototype.activateImprovedGqlVisibilityControl=function(){return this.rawActivateImprovedGqlVisibilityControl().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedGqlVisibilityControl=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})},t.prototype.activateImprovedBooleanFields=function(){return this.rawActivateImprovedBooleanFields().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedBooleanFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})},t.prototype.updateAssetsCdnDefaultSettings=function(e){return this.rawUpdateAssetsCdnDefaultSettings(Ko(e,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdateAssetsCdnDefaultSettings=function(e){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:e})},t.TYPE="site",t}(ti);var pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/workflows",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/workflows/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/workflows/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/workflows/".concat(e)})},t.TYPE="workflow",t}(ti);var hu=function(){return hu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hu.apply(this,arguments)},mu=function(){function e(e){this.config=e,this.roles=new ci(this),this.users=new pi(this),this.ssoUsers=new hi(this),this.auditLogEvents=new yi(this),this.menuItems=new gi(this),this.schemaMenuItems=new wi(this),this.itemTypes=new Si(this),this.fields=new Ei(this),this.fieldsets=new ki(this),this.session=new Ti(this),this.accessTokens=new Ii(this),this.plugins=new ji(this),this.jobResults=new Di(this),this.subscriptionLimits=new Ai(this),this.subscriptionFeatures=new Mi(this),this.buildEvents=new zi(this),this.items=new Qi(this),this.itemVersions=new ea(this),this.uploads=new ia(this),this.uploadRequest=new ua(this),this.uploadTracks=new la(this),this.scheduledPublication=new fa(this),this.scheduledUnpublishing=new da(this),this.searchResults=new ga(this),this.environments=new wa(this),this.maintenanceMode=new Sa(this),this.webhooks=new Ea(this),this.webhookCalls=new Ca(this),this.buildTriggers=new Na(this),this.itemTypeFilters=new La(this),this.uploadFilters=new Fa(this),this.siteInvitations=new Ra(this),this.editingSessions=new Va(this),this.ssoGroups=new Ua(this),this.ssoSettings=new Ha(this),this.emojiSuggestions=new Ga(this),this.whiteLabelSettings=new Ya(this),this.publicInfo=new Qa(this),this.dailyUsages=new Xa(this),this.usageCounters=new Za(this),this.uploadTags=new ou(this),this.uploadSmartTags=new lu(this),this.site=new fu(this),this.workflows=new du(this)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.config.baseUrl||e.defaultBaseUrl},enumerable:!1,configurable:!0}),e.prototype.request=function(e){var t=this;return $o(hu(hu(hu({},this.config),e),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v3.3.5",baseUrl:this.baseUrl,preCallStack:(new Error).stack,extraHeaders:hu(hu(hu({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(e){return t.jobResultsFetcher?t.jobResultsFetcher(e):function(){return n=this,r=void 0,i=function(){var n,r,o;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(i){switch(i.label){case 0:r=0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,zo(1e3*(r+=1))];case 2:return i.sent(),[4,t.jobResults.find(e)];case 3:return n=i.sent(),[3,5];case 4:if(!((o=i.sent())instanceof Ao)||404!==o.response.status)throw o;return[3,5];case 5:if(!n)return[3,1];i.label=6;case 6:return[2,n]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}()}}))},e.prototype.eventsChannelName=function(){return e=this,t=void 0,r=function(){var e;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(t){switch(t.label){case 0:return this.cachedEventsChannelName?[2,this.cachedEventsChannelName]:[4,this.site.rawFind()];case 1:return e=t.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(e.id,"-environment-").concat(this.config.environment):"private-site-".concat(e.id),[2,this.cachedEventsChannelName]}}))},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}));var e,t,n,r},e.defaultBaseUrl="https://site-api.datocms.com",e}(),yu=function(){return yu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yu.apply(this,arguments)};function vu(e,t,n){var r=this;void 0===n&&(n={});var o=n.filename||("name"in t?t.name:void 0);if(!o)throw new Error("Missing filename, please provide it as an option!");var i=!1,a=void 0;return Vo((function(){return u=r,s=void 0,c=function(){var r,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:return n.onProgress&&(null==n||n.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:o}})),[4,e.uploadRequest.create({filename:o})];case 1:if(r=c.sent(),u=r.id,s=r.url,l=r.request_headers,i)throw new Mo;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=function(e,t,n){var r=void 0===n?{}:n,o=r.onProgress,i=r.additionalHeaders,a=new XMLHttpRequest;return Vo(new Promise((function(n,r){if(o&&a.upload&&(a.upload.onprogress=function(e){e.lengthComputable&&o({type:"UPLOADING_FILE",payload:{progress:Math.round(e.loaded/e.total*100)}})}),a.onreadystatechange=function(){4===a.readyState&&(200===a.status?n():r(new Error("Status ".concat(a.status))))},a.addEventListener("error",r,!1),a.open("PUT",t,!0),i)for(var u=0,s=Object.entries(i);u<s.length;u++){var l=s[u],c=l[0],f=l[1];a.setRequestHeader(c,f)}a.send(e)})),(function(){a.onreadystatechange=null,a.abort()}))}(t,s,yu(yu({},n),{additionalHeaders:l})),[4,a];case 2:return c.sent(),[2,u]}}))},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((c=c.apply(u,s||[])).next())}));var u,s,l,c}),(function(){a?a.cancel():i=!0}))}var gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bu=function(){return bu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bu.apply(this,arguments)},wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gu(t,e),t.prototype.createFromFileOrBlob=function(e){var t,n=this,r=!1;return Vo((function(){return o=n,i=void 0,u=function(){var n,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:if(r)throw new Mo;return n=e.fileOrBlob,o=e.filename,i=e.onProgress,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["fileOrBlob","filename","onProgress"]),[4,t=vu(this.client,n,{filename:o,onProgress:i})];case 1:return u=s.sent(),i&&i({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(bu(bu({},a),{path:u}))]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(u.next(e))}catch(e){t(e)}}function r(e){try{s(u.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((u=u.apply(o,i||[])).next())}));var o,i,a,u}),(function(){t?t.cancel():r=!0}))},t}(ia);const _u=wu;var Su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xu=function(e){function t(t){var n=e.call(this,t)||this;return n.uploads=new _u(n),n}return Su(t,e),t}(mu);function Eu(e){return new xu(e)}var Ou=function(){return Ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ou.apply(this,arguments)},ku=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Pu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function Tu(e,t){return ku(this,void 0,void 0,(function(){var n,r,o,i,a,u,s;return Pu(this,(function(l){switch(l.label){case 0:n={apiToken:e},t&&(n.environment=t),r=Eu(n),l.label=1;case 1:return l.trys.push([1,10,,11]),[4,r.itemTypes.create({name:Eo,api_key:xo,collection_appearance:"table",singleton:!1},{skip_menu_item_creation:!0})];case 2:return o=l.sent(),[4,r.fields.create(o.id,{label:"Name",api_key:"name",field_type:"string",validators:{required:{}}})];case 3:return l.sent(),[4,r.fields.create(o.id,{label:"SVG Content",api_key:"svg_content",field_type:"text",validators:{required:{}}})];case 4:return l.sent(),[4,r.fields.create(o.id,{label:"Type",api_key:"svg_type",field_type:"string",validators:{enum:{values:["svg","image"]}}})];case 5:return l.sent(),[4,r.fields.create(o.id,{label:"Media Upload",api_key:"media_upload",field_type:"file",validators:{}})];case 6:return l.sent(),[4,r.fields.list(o.id)];case 7:return i=l.sent(),(a=null===(s=i.find((function(e){return"name"===e.api_key})))||void 0===s?void 0:s.id)?[4,r.itemTypes.update(o.id,{title_field:{type:"field",id:a}})]:[3,9];case 8:l.sent(),l.label=9;case 9:return[2,o];case 10:throw u=l.sent(),console.error("Error creating SVG model:",u),u;case 11:return[2]}}))}))}function Cu(e){return ku(this,void 0,void 0,(function(){var t,n,r,o;return Pu(this,(function(i){switch(i.label){case 0:t=Eu({apiToken:e}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t.itemTypes.list()];case 2:return n=i.sent(),[2,(null==(r=n.find((function(e){return e.api_key===xo})))?void 0:r.id)||null];case 3:return o=i.sent(),console.error("Error checking for SVG model:",o),[2,null];case 4:return[2]}}))}))}function Iu(e,t,n){return ku(this,void 0,void 0,(function(){var r,o,i,a,u,s,l,c;return Pu(this,(function(f){switch(f.label){case 0:r=Eu({apiToken:e}),o=[],i=0,a=n,f.label=1;case 1:if(!(i<a.length))return[3,6];u=a[i],f.label=2;case 2:return f.trys.push([2,4,,5]),s=Ou({item_type:{type:"item_type",id:t},name:u.filename||"Untitled SVG",svg_content:u.raw,svg_type:u.type},"image"===u.type&&u.imageId?{media_upload:{upload_id:u.imageId}}:{}),[4,r.items.create(s)];case 3:return l=f.sent(),o.push(l),[3,5];case 4:return c=f.sent(),console.error("Error migrating SVG ".concat(u.filename||u.id,":"),c),[3,5];case 5:return i++,[3,1];case 6:return[2,o]}}))}))}var Nu=function(){return Nu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nu.apply(this,arguments)},ju=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Lu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function Du(t){var n=this,r=t.ctx,o=r.plugin.attributes.parameters,i=(0,b.useState)(!1),a=i[0],u=i[1],s=(0,b.useState)(!1),l=s[0],c=s[1],f=(null==o?void 0:o.pageType)||go[0],p=(null==o?void 0:o.placement)||bo[0],d=(0,b.useMemo)((function(){return(null==o?void 0:o.menuItemPlacement)||Oo(f.value)[0]}),[null==o?void 0:o.menuItemPlacement,f.value]);function h(e){r.updatePluginParameters(Nu(Nu({},o),e)),r.notice("Settings updated successfully!")}var m=o.svgs&&o.svgs.length>0;return o.isSetupComplete?(0,e.jsxs)(T,{ctx:r,children:[(0,e.jsx)("h1",{style:{marginBottom:"1rem"},children:"Plugin Settings"}),(0,e.jsx)(A,{children:(0,e.jsxs)(z,{children:[(0,e.jsx)(fo,{name:"pageType",id:"pageType",label:"Where do you want to show the menu item?",value:f,selectInputProps:{options:go},onChange:function(e){h({pageType:e,menuItemPlacement:Oo(e.value)[0]})}}),(0,e.jsx)(fo,{name:"placement",id:"placement",label:"Show the menu item before or after the other menu items?",value:p,selectInputProps:{options:bo},onChange:function(e){h({placement:e})}}),(0,e.jsx)(fo,{name:"menuItemPlacement",id:"menuItemPlacement",label:"".concat("before"===p.value?"Before":"After"," which menu item do you want to show the menu item?"),value:d,selectInputProps:{options:Oo(f.value)},onChange:function(e){h({menuItemPlacement:e})}})]})}),m&&o.isSetupComplete&&(0,e.jsxs)("div",{style:{marginTop:"2rem",padding:"1rem",border:"1px solid var(--border-color)",borderRadius:"4px"},children:[(0,e.jsx)("h3",{style:{marginTop:0},children:"Migration"}),(0,e.jsxs)("p",{children:["You have ",o.svgs.length," SVG(s) stored in plugin parameters. Migrate them to records to avoid size limitations."]}),(0,e.jsx)(I,{buttonSize:"m",buttonType:"primary",onClick:function(){return ju(n,void 0,void 0,(function(){var e,t;return Lu(this,(function(n){switch(n.label){case 0:return 0===(e=o.svgs||[]).length?(r.alert("No SVGs to migrate!"),[2]):o.svgModelId?[4,r.openConfirm({title:"Migrate SVGs to Records",content:"This will migrate ".concat(e.length," SVG(s) from plugin parameters to records. This action cannot be undone. Continue?"),choices:[{label:"Migrate",value:"migrate",intent:"positive"},{label:"Cancel",value:"cancel",intent:"negative"}],cancel:{label:"Cancel",value:"cancel"}})]:(r.alert("SVG model not found! Please complete setup first."),[2]);case 1:if("migrate"!==n.sent())return[2];u(!0),n.label=2;case 2:return n.trys.push([2,5,6,7]),[4,Iu(r.currentUserAccessToken,o.svgModelId,e)];case 3:return n.sent(),[4,r.updatePluginParameters(Nu(Nu({},o),{svgs:[]}))];case 4:return n.sent(),r.notice("Successfully migrated ".concat(e.length," SVG(s) to records!")),[3,7];case 5:return t=n.sent(),console.error("Migration error:",t),r.alert("Migration failed: ".concat(t instanceof Error?t.message:"Unknown error")),[3,7];case 6:return u(!1),[7];case 7:return[2]}}))}))},disabled:a,children:a?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(L,{size:16}),(0,e.jsx)("span",{style:{marginLeft:"0.5rem"},children:"Migrating..."})]}):"Migrate SVGs to Records"})]})]}):(0,e.jsx)(T,{ctx:r,children:(0,e.jsxs)("div",{style:{maxWidth:"700px",margin:"2rem auto"},children:[(0,e.jsx)("h1",{style:{fontSize:"1.75rem",marginBottom:"1rem"},children:"Welcome to Everything SVG!"}),(0,e.jsx)("p",{style:{marginBottom:"1.5rem",lineHeight:"1.6"},children:"To use record-based storage for your SVGs, you need to create a model."}),(0,e.jsxs)("div",{style:{background:"var(--extra-light-bg)",border:"1px solid var(--border-color)",borderRadius:"4px",padding:"1.5rem",marginBottom:"1.5rem"},children:[(0,e.jsx)("h2",{style:{fontSize:"1.125rem",marginBottom:"1rem"},children:"Automatic Setup"}),(0,e.jsx)("p",{style:{marginBottom:"1rem",lineHeight:"1.6"},children:"Click below to automatically create the model:"}),(0,e.jsx)(I,{buttonSize:"l",buttonType:"primary",onClick:function(){return ju(n,void 0,void 0,(function(){var e,t,n,i;return Lu(this,(function(a){switch(a.label){case 0:if(!r.currentUserAccessToken)return r.alert("Authentication token not available. Please reload the page and try again."),[2];c(!0),a.label=1;case 1:return a.trys.push([1,4,5,6]),(e=r.currentUserAccessToken)?(t=r.environment&&!r.environment.includes("navigation")?r.environment:void 0,[4,Tu(e,t)]):(r.alert("API token not available. You may need to configure this manually."),[2]);case 2:return n=a.sent(),[4,r.updatePluginParameters(Nu(Nu({},o),{svgModelId:n.id,isSetupComplete:!0}))];case 3:return a.sent(),r.notice("SVG model created successfully!"),[3,6];case 4:return i=a.sent(),console.error("Error creating model:",i),r.alert(i instanceof Error?i.message:"Failed to create SVG model"),[3,6];case 5:return c(!1),[7];case 6:return[2]}}))}))},disabled:l,children:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(L,{size:24}),(0,e.jsx)("span",{style:{marginLeft:"0.5rem"},children:"Creating model..."})]}):"Create SVG Model"}),(0,e.jsxs)("details",{style:{marginTop:"1rem",fontSize:"0.9rem"},children:[(0,e.jsx)("summary",{style:{cursor:"pointer",color:"var(--light-body-color)"},children:"Or create manually..."}),(0,e.jsxs)("ol",{style:{marginLeft:"1.5rem",marginTop:"0.75rem",lineHeight:"1.6"},children:[(0,e.jsx)("li",{children:"Go to Settings → Models"}),(0,e.jsx)("li",{children:'Create model: Name = "Plugin SVG", API key = "plugin_svg"'}),(0,e.jsx)("li",{children:"Add 4 fields: name, svg_content, svg_type, media_upload"}),(0,e.jsx)("li",{children:(0,e.jsx)(I,{buttonSize:"s",buttonType:"muted",onClick:function(){return ju(n,void 0,void 0,(function(){return Lu(this,(function(e){switch(e.label){case 0:return[4,r.updatePluginParameters(Nu(Nu({},o),{isSetupComplete:!0}))];case 1:return e.sent(),r.notice("Setup marked as complete!"),[2]}}))}))},style:{marginTop:"0.5rem"},children:"Mark as complete"})})]})]})]}),(0,e.jsx)("p",{style:{fontSize:"0.875rem",color:"var(--light-body-color)",fontStyle:"italic"},children:"Note: The plugin will work with parameter-based storage until you complete this setup."})]})})}const Fu=JSON.parse('{"Te":"_switchInput__inner_1knbg_1","td":"_switchInput_1knbg_1","I4":"_switchInput__checked_1knbg_47","rf":"_switchInput__disabled_1knbg_60"}');var Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Au.apply(this,arguments)},Ru=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Mu(e){var t,n=e.className,r=e.value,o=e.disabled,i=e.onClick,a=e.onChange,u=e.onKeyDown,s=Ru(e,["className","value","disabled","onClick","onChange","onKeyDown"]);function l(e,t){!o&&a&&a(e,t)}var c=S()(Fu.td,n,((t={})[Fu.I4]=r,t[Fu.rf]=o,t));return b.createElement("button",Au({},s,{type:"button",role:"switch","aria-checked":r,disabled:o,className:c,onKeyDown:function(e){"ArrowLeft"===e.key?l(!1,e):"ArrowRight"===e.key&&l(!0,e),null==u||u(e)},onClick:function(e){l(!r,e),null==i||i(e)}}),b.createElement("span",{className:Fu.Te}))}const Vu=JSON.parse('{"Ai":"_switchField__flex_16z4j_1","rO":"_switchField__switchInput_16z4j_6","Tb":"_switchField__label_16z4j_10","s8":"_switchField__below_16z4j_22"}');var zu=function(){return zu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zu.apply(this,arguments)};function Uu(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.formLabelProps,s=e.value,l=e.onChange,c=e.switchInputProps;return b.createElement(b.Fragment,null,b.createElement("div",{className:Vu.Ai},b.createElement("div",{className:Vu.rO},b.createElement(Mu,zu({},c,{name:n,value:s,onChange:l}))),b.createElement(H,zu({},u,{htmlFor:t,required:a,className:S()(Vu.Tb,null==u?void 0:u.className),error:!!i}),r)),(o||i)&&b.createElement("div",{className:Vu.s8},i&&b.createElement(G,null,i),o&&b.createElement(Y,null,o)))}var qu=o(6454);function Hu(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(0===(e=e.trim()).length)return!1;if(!0!==qu.XMLValidator.validate(e))return!1;let t;const n=new qu.XMLParser;try{t=n.parse(e)}catch{return!1}return!!t&&!!Object.keys(t).some((e=>"svg"===e.toLowerCase()))}function Bu(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z"})})}function Gu(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"})})}var $u="ImageViewer-module__border--CocHd",Yu="ImageViewer-module__caption--qKvmP",Wu="ImageViewer-module__clickable--YNkn4",Qu="ImageViewer-module__dropdown--V_fG8",Ku="ImageViewer-module__dropdownButton--edHOU",Xu="ImageViewer-module__dropdownDeleteButton--M4_Y7",Ju="ImageViewer-module__dropdownMenu--ziYe3",Zu="ImageViewer-module__dropdownMenuButton--Fnta0",es="ImageViewer-module__dropdownMenuDeleteButton--Jj5DS",ts="ImageViewer-module__filename--ZX4Qx",ns="ImageViewer-module__image--PBt7a",rs="ImageViewer-module__imageWithFilename--szUif",os="ImageViewer-module__medium--xtt2R",is="ImageViewer-module__raw--xfmgD",as="ImageViewer-module__root--PHPSR",us="ImageViewer-module__selected--v7MzH",ss="ImageViewer-module__small--C5ma5",ls="ImageViewer-module__tag--PrjB5",cs="ImageViewer-module__tagText--LOlAw";function fs(t){var n,r,o,i,a=t.image,u=t.component,s=void 0===u?"div":u,l=t.selected,c=t.showTag,f=t.disabled,p=t.size,d=void 0===p?"l":p,h=t.onDelete,m=t.onShowUpload,y=t.onShowRaw,v=t.onClick,g=(0,b.useState)(!1),w=g[0],_=g[1],x=null,E=v?"button":s,O=(o=function(){return _(!1)},i=(0,b.useRef)(),(0,b.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&o()};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[i]),i);return"svg"===a.type&&(x=(0,e.jsx)("div",{className:is,dangerouslySetInnerHTML:{__html:a.raw}})),"image"===a.type&&(x=(0,e.jsx)("img",{src:a.url,alt:a.filename})),(0,e.jsxs)(E,{className:S()(as,(n={},n[$u]=v||h,n[Wu]=v,n[us]=l,n[ss]="s"===d,n[os]="m"===d,n)),onClick:v?function(){return v(a)}:void 0,disabled:f,children:[(h||m||y)&&(0,e.jsxs)("div",{ref:O,children:[(0,e.jsx)("div",{className:Qu,children:y||m||!h?(0,e.jsxs)("button",{type:"button",className:Ku,onClick:function(){return _(!w)},children:[(0,e.jsx)(Bu,{}),(0,e.jsx)("span",{className:"sr-only",children:w?"Close menu":"Open menu"})]}):(0,e.jsxs)("button",{type:"button",className:S()(Ku,Xu),onClick:function(){return h(a)},children:[(0,e.jsx)(Gu,{}),(0,e.jsx)("span",{className:"sr-only",children:"Delete icon"})]})}),w&&(0,e.jsxs)("div",{className:Ju,children:["svg"===a.type&&y&&(0,e.jsx)("button",{type:"button",className:Zu,onClick:function(){return y(a)},children:"Show raw details"}),"image"===a.type&&m&&(0,e.jsx)("button",{type:"button",className:Zu,onClick:function(){return m(a)},children:"Show image details"}),h&&(0,e.jsx)("button",{type:"button",className:es,onClick:function(){return h(a)},children:"Delete"})]})]}),c&&(0,e.jsx)("div",{className:ls,children:(0,e.jsxs)("p",{className:S()(cs,"body--small"),children:["svg"===a.type&&"Raw"," ","image"===a.type&&"Raw + Image"]})}),(0,e.jsx)("div",{className:S()(ns,(r={},r[rs]=a.filename,r)),children:x}),a.filename&&(0,e.jsx)("div",{className:Yu,children:(0,e.jsx)("span",{className:S()("body--medium",ts),children:a.filename})})]})}var ps="ImageList-module__root--zkSEd",ds="ImageList-module__small--Zz7tX",hs="ImageList-module__spinner--GZyBO";function ms(t){var n,r=t.svgs,o=t.activeSvgs,i=t.onDelete,a=t.onShowUpload,u=t.onShowRaw,s=t.onClick,l=t.size,c=t.showTag,f=t.disabled,p=t.isLoading;return r&&0!==r.length?(0,e.jsxs)("ul",{className:S()(ps,(n={},n[ds]="s"===l,n)),children:[null==r?void 0:r.map((function(t){var n;return(0,e.jsx)(fs,{component:"li",image:t,onDelete:i,onShowUpload:a,onShowRaw:u,onClick:s,selected:null===(n=null==o?void 0:o.map((function(e){return e.id})))||void 0===n?void 0:n.includes(t.id),size:l,showTag:c,disabled:f},t.id)})),p&&(0,e.jsx)("div",{className:hs,children:(0,e.jsx)(L,{})})]}):null}var ys="SvgViewer-module__filenameInput--YggJw",vs="SvgViewer-module__root--JLl6V",gs="SvgViewer-module__svgInput--p8Mqd",bs="SvgViewer-module__text--FQb4f",ws="SvgViewer-module__textarea--P5eOo",_s="SvgViewer-module__viewer--ps6H1",Ss="SvgViewer-module__viewerFilename--gMlUO",xs="SvgViewer-module__viewerSvg--RPqBE",Es="SvgViewer-module__viewerSvgElement--VfV8v",Os="SvgViewer-module__viewerText--L91TL";function ks(t){var n=t.value,r=t.onChangeSvg,o=t.filename,i=t.onChangeFilename,a=(0,b.useMemo)((function(){return n&&!Hu(n)}),[n]);return(0,e.jsxs)("form",{className:vs,children:[(0,e.jsxs)("div",{className:gs,children:[(0,e.jsx)("label",{className:"sr-only",htmlFor:"embeded-svg",children:"Embeded svg"}),(0,e.jsx)("textarea",{className:ws,name:"embeded-svg",id:"embeded-svg",value:n,onChange:function(e){return r(e.target.value)},placeholder:"<svg>Paste your svg here</svg>"})]}),(0,e.jsxs)("div",{className:_s,children:[(0,e.jsxs)("div",{className:xs,children:[Hu(n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{className:Es,dangerouslySetInnerHTML:{__html:n}})}),(a||!n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:Os,children:[n&&a&&(0,e.jsx)(G,{children:"Use a valid svg string"}),!n&&(0,e.jsxs)("p",{className:bs,children:[(0,e.jsx)("span",{className:"h3",children:"Nothing to show"}),(0,e.jsx)("span",{className:"body--medium",children:"Input a valid svg"})]})]})})]}),(0,e.jsx)("div",{className:Ss,children:Hu(n)&&i&&(0,e.jsx)("input",{className:ys,value:o,onChange:function(e){return i(e.target.value)},autoFocus:!0})})]})]})}function Ps(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})})}var Ts=function(){return Ts=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ts.apply(this,arguments)},Cs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Is=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function Ns(e){var t={id:e.id,filename:e.name||void 0,raw:e.svg_content};return"image"===e.svg_type&&e.media_upload?Ts(Ts({},t),{type:"image",imageId:e.media_upload.upload_id,url:e.media_upload.url}):Ts(Ts({},t),{type:"svg"})}function js(e,t){var n={apiToken:e};return t&&(n.environment=t),Eu(n)}function Ls(e,t){return Cs(this,void 0,void 0,(function(){var n;return Is(this,(function(r){switch(r.label){case 0:if("image"!==t.svg_type||!t.media_upload)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.uploads.find(t.media_upload.upload_id)];case 2:return n=r.sent(),t.media_upload.url=n.url,[3,4];case 3:return r.sent(),[3,4];case 4:return[2]}}))}))}function Ds(e){var t={id:e.id,name:e.name||"Untitled",svg_content:e.svg_content||"",svg_type:e.svg_type||"svg"};return e.media_upload&&"object"==typeof e.media_upload&&(t.media_upload={upload_id:e.media_upload.upload_id,url:""}),t}function Fs(e,t,n){return Cs(this,void 0,void 0,(function(){var r,o,i,a;return Is(this,(function(u){switch(u.label){case 0:r=js(e,n),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,r.items.list({filter:{type:t},page:{limit:500},version:"current"})];case 2:return o=u.sent(),i=o.map((function(e){return Ds(e)})),[4,Promise.all(i.map((function(e){return Ls(r,e)})))];case 3:return u.sent(),[2,i];case 4:return a=u.sent(),console.error("Error loading SVG records:",a),[2,[]];case 5:return[2]}}))}))}function As(e,t,n,r){return Cs(this,void 0,void 0,(function(){var o,i,a,u;return Is(this,(function(s){switch(s.label){case 0:o=js(e,r),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,o.items.create(Ts({item_type:{type:"item_type",id:t}},n))];case 2:return i=s.sent(),a=Ds(i),[4,Ls(o,a)];case 3:return s.sent(),[2,a];case 4:return u=s.sent(),console.error("Error creating SVG record:",u),[2,null];case 5:return[2]}}))}))}function Rs(e,t,n,r){return Cs(this,void 0,void 0,(function(){var o,i;return Is(this,(function(a){switch(a.label){case 0:o=js(e,r),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,o.items.update(t,n)];case 2:return[2,Ds(a.sent())];case 3:return i=a.sent(),console.error("Error updating SVG record:",i),[2,null];case 4:return[2]}}))}))}function Ms(e,t,n){return Cs(this,void 0,void 0,(function(){var r,o;return Is(this,(function(i){switch(i.label){case 0:r=js(e,n),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.items.destroy(t)];case 2:return i.sent(),[2,!0];case 3:return o=i.sent(),console.error("Error deleting SVG record:",o),[2,!1];case 4:return[2]}}))}))}var Vs=function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vs.apply(this,arguments)},zs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Us=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},qs=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Hs(t){var n,r=t.ctx,o=r.plugin.attributes.parameters,i=(0,b.useState)([]),a=i[0],u=i[1],s=(0,b.useState)(""),l=s[0],c=s[1],f=(0,b.useState)(vo),p=f[0],d=f[1],h=(0,b.useState)(!1),m=h[0],y=h[1],v=(0,b.useState)(!1),g=v[0],w=v[1],_=(0,b.useState)(!0),S=_[0],x=_[1],E=(0,b.useState)(!1),O=E[0],k=E[1],P=r.currentUserAccessToken,C=r.environment;function N(e){return zs(this,void 0,void 0,(function(){var t;return Us(this,(function(n){switch(n.label){case 0:if(!e||!Hu(e))return[2];if(!o.svgModelId||!P)return r.alert("SVG model not found. Please complete setup."),[2];n.label=1;case 1:return n.trys.push([1,,3,4]),y(!0),[4,As(P,o.svgModelId,{name:p,svg_content:e,svg_type:"svg"},C)];case 2:return(t=n.sent())?(u(qs([t],a,!0)),r.notice("SVG uploaded successfully!")):r.alert("Failed to create SVG record"),[3,4];case 3:return y(!1),c(""),d(vo),[7];case 4:return[2]}}))}))}function j(e){return zs(this,void 0,void 0,(function(){var t,i,s,l;return Us(this,(function(f){switch(f.label){case 0:if(!e||!Hu(e))return[2];if(!o.svgModelId||!P)return r.alert("SVG model not found. Please complete setup."),[2];t=new Blob([e],{type:"image/svg+xml"}),i=new File([t],p),f.label=1;case 1:return f.trys.push([1,,4,5]),y(!0),[4,n.uploads.createFromFileOrBlob({fileOrBlob:i,filename:"".concat(p,".svg")})];case 2:return s=f.sent(),[4,As(P,o.svgModelId,{name:p,svg_content:e,svg_type:"image",media_upload:{upload_id:s.id}},C)];case 3:return(l=f.sent())?(u(qs([l],a,!0)),r.notice("SVG uploaded successfully!")):r.alert("Failed to create SVG record"),[3,5];case 4:return y(!1),c(""),d(vo),[7];case 5:return[2]}}))}))}function D(e){return zs(this,void 0,void 0,(function(){var t;return Us(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),w(!0),[4,n.uploads.destroy(e)];case 1:return r.sent(),[3,4];case 2:return t=r.sent(),console.error(t),[3,4];case 3:return w(!1),[7];case 4:return[2]}}))}))}function F(e){return zs(this,void 0,void 0,(function(){var t;return Us(this,(function(n){switch(n.label){case 0:return P&&(t=a.find((function(t){return t.id===e.id})))?"image"===t.svg_type&&t.media_upload?[4,D(t.media_upload.upload_id)]:[3,2]:[2];case 1:n.sent(),n.label=2;case 2:return[4,Ms(P,t.id,C)];case 3:return n.sent()?(u(a.filter((function(e){return e.id!==t.id}))),r.notice("SVG deleted successfully!")):r.alert("Failed to delete SVG"),[2]}}))}))}function A(e){return zs(this,void 0,void 0,(function(){var t;return Us(this,(function(n){switch(n.label){case 0:return P?[4,Rs(P,e.id,{name:e.filename},C)]:[2];case 1:return(t=n.sent())?(u(a.map((function(n){return n.id===e.id?t:n}))),r.notice("SVG renamed successfully!")):r.alert("Failed to rename SVG"),[2]}}))}))}P&&(n=Eu({apiToken:P,environment:C})),(0,b.useEffect)((function(){!function(){zs(this,void 0,void 0,(function(){var e;return Us(this,(function(t){switch(t.label){case 0:return o.svgModelId&&P?[4,Fs(P,o.svgModelId,C)]:(x(!1),[2]);case 1:return e=t.sent(),u(e),x(!1),[2]}}))}))}()}),[o.svgModelId,P]);var R=a.map(Ns);return(0,e.jsx)(T,{ctx:r,children:(0,e.jsxs)("div",{className:"layout",children:[(0,e.jsx)(ks,{value:l,onChangeSvg:c,filename:p,onChangeFilename:d}),(0,e.jsxs)("div",{className:"PageScreen-module__uploadContainer--unBcu",children:[m&&(0,e.jsx)(L,{}),!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(I,{disabled:!Hu(l),onClick:function(){return function(e){return zs(this,void 0,void 0,(function(){return Us(this,(function(t){switch(t.label){case 0:return O?[4,j(e)]:[3,2];case 1:case 3:return t.sent(),[2];case 2:return[4,N(e)]}}))}))}(l)},leftIcon:(0,e.jsx)(Ps,{}),children:"Upload raw svg"}),P&&(0,e.jsx)("div",{children:(0,e.jsx)(Uu,{name:"uploadToMedia",id:"uploadToMedia",label:"Upload SVG to the Media library",value:O,onChange:function(e){return k(e)}})})]})]}),(0,e.jsx)("h3",{className:"h2",children:"Uploaded svgs"}),S&&(0,e.jsx)(L,{}),!S&&0===R.length&&(0,e.jsx)("p",{children:"Nothing to show (yet)"}),!S&&(0,e.jsx)(ms,{svgs:R,onDelete:g?void 0:F,onShowUpload:function(e){return zs(this,void 0,void 0,(function(){var t;return Us(this,(function(n){switch(n.label){case 0:return"image"!==e.type?[2]:[4,r.editUpload(e.imageId)];case 1:return(t=n.sent())&&t.deleted?[4,F(e)]:[3,3];case 2:return n.sent(),[2];case 3:return t&&t.attributes.basename!==e.filename?[4,A(Vs(Vs({},e),{filename:t.attributes.basename}))]:[3,5];case 4:n.sent(),n.label=5;case 5:return[2]}}))}))},onShowRaw:function(e){return zs(this,void 0,void 0,(function(){var t;return Us(this,(function(n){switch(n.label){case 0:return"svg"!==e.type?[2]:(t=null,[4,r.openModal({id:yo,title:"Raw details",width:"s",parameters:{rawSvg:e}})]);case 1:return(t=n.sent())&&t.deleted?[4,F(e)]:[3,3];case 2:return n.sent(),[2];case 3:return t&&t.filename!==e.filename?[4,A(Vs(Vs({},e),{filename:t.filename}))]:[3,5];case 4:n.sent(),n.label=5;case 5:return[2]}}))}))},isLoading:g,showTag:!0})]})})}var Bs=function(){return Bs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bs.apply(this,arguments)},Gs=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function $s(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=n.parameters,i=(0,b.useState)(o.selectedSvgs||[]),a=i[0],u=i[1],s=(0,b.useState)(o.showAllSvgs||!1),l=s[0],c=s[1];return(0,b.useEffect)((function(){n.setParameters(Bs(Bs({},o),{selectedSvgs:l?[]:a,showAllSvgs:l}))}),[a,l]),(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("h2",{className:"FieldExtensionConfigScreen-module__heading--ZG1IO",children:"Select the svgs that are selectable for the user"}),(0,e.jsx)("div",{className:"FieldExtensionConfigScreen-module__switch--g3jVD",children:(0,e.jsx)(Uu,{name:"showAllSvgs",id:"showAllSvgs",label:"Select all SVGs",hint:"When this is selected you can select all SVGs uploaded in this field",value:l,onChange:c})}),(0,e.jsx)(ms,{svgs:r.svgs,activeSvgs:l?r.svgs:o.selectedSvgs,onClick:function(e){var t;if(null===(t=null==a?void 0:a.map((function(e){return e.id})))||void 0===t?void 0:t.includes(e.id)){var n=null==a?void 0:a.filter((function(t){return t.id!==e.id}));u(n)}else u(Gs(Gs([],a,!0),[e],!1))},disabled:l,showTag:!0})]})}var Ys=o(8156),Ws=o.n(Ys);function Qs(t){var n=t.ctx,r=String(Ws()(n.formValues,n.fieldPath)),o=n.plugin.attributes.parameters,i=n.parameters,a=(0,b.useState)([]),u=a[0],s=a[1],l=(0,b.useState)(!0),c=l[0],f=l[1];(0,b.useEffect)((function(){!function(){var e,t,r,i;e=this,t=void 0,i=function(){var e,t;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(r){switch(r.label){case 0:if(!o.svgModelId||!n.currentUserAccessToken||!o.isSetupComplete)return f(!1),[2];r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,Fs(n.currentUserAccessToken,o.svgModelId,n.environment)];case 2:return e=r.sent(),s(e),[3,5];case 3:return t=r.sent(),console.error("Error loading SVG records:",t),[3,5];case 4:return f(!1),[7];case 5:return[2]}}))},new((r=void 0)||(r=Promise))((function(n,o){function a(e){try{s(i.next(e))}catch(e){o(e)}}function u(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((i=i.apply(e,t||[])).next())}))}()}),[o.svgModelId,o.isSetupComplete,n.currentUserAccessToken]);var p=u.map(Ns),d=i.showAllSvgs?o.svgs:i.selectedSvgs,h=p.length>0||o.isSetupComplete?p:d||[],m=(0,e.jsx)("p",{children:"No SVG images to show"});return c?m=(0,e.jsx)(L,{}):r?m=(0,e.jsx)("div",{className:"FieldExtension-module__content--JmNOb",children:(0,e.jsx)(fs,{size:"s",image:{id:n.field.id,raw:r,type:"svg"},onDelete:function(){n.setFieldValue(n.fieldPath,"")}})}):h&&h.length>0&&(m=(0,e.jsx)(ms,{svgs:h,onClick:function(e){n.setFieldValue(n.fieldPath,e.raw)},size:"s"})),(0,e.jsx)(T,{ctx:n,children:m})}const Ks=JSON.parse('{"rI":"_SidebarPanel_4uwco_1","MR":"_SidebarPanel__header_4uwco_5","CI":"_SidebarPanel__header__title_4uwco_30","n5":"_SidebarPanel__header__chevron_4uwco_36","w0":"_SidebarPanel__content_4uwco_42","FT":"_SidebarPanel__content--no-padding_4uwco_47"}');function Xs(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))}function Js(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))}function Zs(e){var t,n=e.startOpen,r=void 0!==n&&n,o=e.title,i=e.children,a=e.noPadding,u=(0,b.useState)(r),s=u[0],l=u[1];return b.createElement("div",{className:Ks.rI},o&&b.createElement("button",{type:"button",className:Ks.MR,onClick:function(){l(!s)}},b.createElement("div",{className:Ks.CI},o),b.createElement("div",{className:Ks.n5},s?b.createElement(Xs,null):b.createElement(Js,null))),s&&b.createElement("div",{className:S()(Ks.w0,(t={},t[Ks.FT]=a,t))},i))}var el="RawSvgViewer-module__button--JR2Fm",tl="RawSvgViewer-module__buttonList--bMN0E",nl="RawSvgViewer-module__deleteButton--DuioO",rl="RawSvgViewer-module__editing--LVDdB",ol="RawSvgViewer-module__editingText--wLDy_",il="RawSvgViewer-module__header--_aaee",al="RawSvgViewer-module__input--i7vSo",ul="RawSvgViewer-module__rawCode--hMDfX",sl="RawSvgViewer-module__svgLogo--ROrY7",ll="RawSvgViewer-module__title--R0gYS",cl=function(){return cl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cl.apply(this,arguments)};function fl(t){var n,r=t.svg,o=t.onRename,i=t.onDelete,a=(0,b.useState)(!1),u=a[0],s=a[1],l=(0,b.useState)(r.filename),c=l[0],f=l[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:S()(il,(n={},n[rl]=u,n)),children:[(0,e.jsx)("div",{className:sl,dangerouslySetInnerHTML:{__html:r.raw}}),(0,e.jsxs)("div",{children:[u?(0,e.jsx)("input",{className:al,value:c,onChange:function(e){return f(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&o&&o(cl(cl({},r),{filename:c}))}}):(0,e.jsx)("h2",{className:S()("h3",ll),children:c}),(0,e.jsx)("div",{className:tl,children:u?(0,e.jsx)("p",{className:ol,children:"Press Enter to confirm"}):(0,e.jsxs)(e.Fragment,{children:[o&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{className:el,type:"button",onClick:function(){s(!0)},children:(0,e.jsx)("span",{children:"Rename"})}),(0,e.jsx)("span",{children:"•"})]}),i&&(0,e.jsx)("button",{className:S()(el,nl),type:"button",onClick:function(){return i(r)},children:(0,e.jsx)("span",{children:"Delete"})})]})})]})]}),(0,e.jsx)(Zs,{title:"Raw data",startOpen:!0,children:(0,e.jsx)("pre",{className:ul,children:r.raw})})]})}var pl=function(){return pl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pl.apply(this,arguments)};function dl(t){var n=t.ctx,r=n.parameters;return(0,e.jsx)(T,{ctx:n,children:r.rawSvg?(0,e.jsx)(fl,{svg:r.rawSvg,onDelete:function(e){n.resolve(pl(pl({},e),{deleted:!0}))},onRename:function(e){n.resolve(e)}}):(0,e.jsx)("p",{children:"Nothing to show here"})})}var hl=o(5338),ml=document.getElementById("root"),yl=(0,hl.H)(ml);function vl(t){return yl.render((0,e.jsx)(b.StrictMode,{children:t}))}var gl=function(){return gl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gl.apply(this,arguments)},bl=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},wl=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function _l(e,t){return bl(this,void 0,void 0,(function(){var n,r=this;return wl(this,(function(o){switch(o.label){case 0:return[4,e.loadFieldsUsingPlugin()];case 1:return n=o.sent(),[4,Promise.all(n.map((function(n){return bl(r,void 0,void 0,(function(){var r,o;return wl(this,(function(i){switch(i.label){case 0:return r=n.attributes.appearance.parameters,t&&r.selectedSvgs?(o=r.selectedSvgs.filter((function(e){return null==t?void 0:t.find((function(t){return t.id===e.id}))})),[4,e.updateFieldAppearance(n.id,[{operation:"updateEditor",newParameters:gl(gl({},r),{selectedSvgs:o})}])]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))})))];case 2:return o.sent(),[2]}}))}))}var Sl=function(){return Sl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sl.apply(this,arguments)},xl=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},El=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};!function(e){var t,r,o,b;void 0===e&&(e={}),t=this,r=void 0,b=function(){var t,r,o,b,w,_,S,x,E,O,k,P,T,C,I,N,j,L,D,F,A,R,M;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(V){switch(V.label){case 0:return t=e.assetSources,r=e.mainNavigationTabs,o=e.settingsAreaSidebarItemGroups,b=e.contentAreaSidebarItems,w=e.manualFieldExtensions,_=e.itemFormSidebarPanels,S=e.itemFormSidebars,x=e.itemFormOutlets,E=null,O=null,k=n()({methods:{sdkVersion:function(){return"0.2.0"},implementedHooks:function(){return Object.fromEntries(Object.entries(e).map((function(e){var t=e[0],n=e[1];return"function"==typeof n?[t,!0]:[t,n]})))},assetSources:t,mainNavigationTabs:r,settingsAreaSidebarItemGroups:o,contentAreaSidebarItems:b,manualFieldExtensions:w,itemFormSidebarPanels:_,itemFormSidebars:S,itemFormOutlets:x,overrideFieldExtensions:v(e.overrideFieldExtensions),customMarksForStructuredTextField:v(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:v(e.customBlockStylesForStructuredTextField),onChange:function(e){E&&E(e)},callMethodMergingBootCtx:function(e,t,n){return O?O(e,t,n):null}}}),[4,k.promise];case 1:return[4,(P=V.sent()).getSettings()];case 2:return T=V.sent(),i(P,T)&&(C=T,E=function(e){C=e},O=function(t,n,r){var o;if(t in e)return(o=e)[t].apply(o,y(y([],n,!1),[m(m(m({},P),C),r)],!1))},e.onBoot&&e.onBoot(m(m({},P),C))),a(P,T)&&(E=M=function(t){e.renderPage&&e.renderPage(t.pageId,m(m({},P),t))},M(T)),u(P,T)&&(I=g(P),E=M=function(t){e.renderConfigScreen&&e.renderConfigScreen(m(m(m({},P),t),I))},M(T)),s(P,T)&&(N=g(P),E=M=function(t){e.renderModal&&e.renderModal(t.modalId,m(m(m({},P),t),N))},M(T)),h(P,T)&&(j=g(P),E=M=function(t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,m(m(m({},P),t),j))},M(T)),l(P,T)&&(L=g(P),E=M=function(t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,m(m(m({},P),t),L))},M(T)),c(P,T)&&(D=g(P),E=M=function(t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,m(m(m({},P),t),D))},M(T)),f(P,T)&&(F=g(P),E=M=function(t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,m(m(m({},P),t),F))},M(T)),p(P,T)&&(A=g(P),E=M=function(t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,m(m(m({},P),t),A))},M(T)),d(P,T)&&(R=g(P),E=M=function(t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,m(m(m({},P),t),R))},M(T)),[2]}}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{u(b.next(e))}catch(e){n(e)}}function a(e){try{u(b.throw(e))}catch(e){n(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}u((b=b.apply(t,r||[])).next())}))}({onBoot:function(e){return xl(this,void 0,void 0,(function(){var t,n;return El(this,(function(r){switch(r.label){case 0:return(t=e.plugin.attributes.parameters).isSetupComplete?[3,3]:[4,Cu(e.currentUserAccessToken)];case 1:return(n=r.sent())?[4,e.updatePluginParameters(Sl(Sl({},t),{svgModelId:n,isSetupComplete:!0}))]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,_l(e,t.svgs)];case 4:return r.sent(),[2]}}))}))},renderConfigScreen:function(t){return vl((0,e.jsx)(Du,{ctx:t}))},mainNavigationTabs:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==so.MainNavigationTabs)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||bo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||So[0].value];return[{label:po,icon:mo,placement:i,pointsTo:{pageId:"".concat(ho,"--").concat(e.plugin.id)}}]},contentAreaSidebarItems:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==so.ContentAreaSidebarItems)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||bo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||wo[0].value];return[{label:po,icon:mo,placement:i,pointsTo:{pageId:"".concat(ho,"--").concat(e.plugin.id)}}]},settingsAreaSidebarItemGroups:function(e){var t,n,r,o=e.plugin.attributes.parameters;return e.currentRole.meta.final_permissions.can_edit_schema||(null===(t=o.pageType)||void 0===t?void 0:t.value)===so.SettingsAreaSidebarItemGroups?[{label:"Plugin",placement:[(null===(n=o.placement)||void 0===n?void 0:n.value)||bo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||_o[0].value],items:[{label:po,icon:mo,pointsTo:{pageId:"".concat(ho,"--").concat(e.plugin.id)}}]}]:[]},renderPage:function(t,n){if(t==="".concat(ho,"--").concat(n.plugin.id))return vl((0,e.jsx)(Hs,{ctx:n}))},renderModal:function(t,n){if(t===yo)return vl((0,e.jsx)(dl,{ctx:n}))},manualFieldExtensions:function(){return[{id:"svg-selector",name:"SVG Selector",type:"editor",fieldTypes:["string","text"],configurable:!0}]},renderManualFieldExtensionConfigScreen:function(t,n){return vl((0,e.jsx)($s,{ctx:n}))},renderFieldExtension:function(t,n){return vl((0,e.jsx)(Qs,{ctx:n}))},buildItemPresentationInfo:function(e,t){return xl(this,void 0,void 0,(function(){var n,r,o,i,a,u,s,l,c,f,p,d,h,m,y,v,g,b,w,_;return El(this,(function(S){switch(S.label){case 0:return n=e.relationships.item_type.data.id,r=t.itemTypes[n],o=null===(v=null===(y=r.relationships)||void 0===y?void 0:y.image_preview_field.data)||void 0===v?void 0:v.id,i=o&&(null===(g=t.fields[o])||void 0===g?void 0:g.attributes.api_key),(null==(a=i?e.attributes[i]:null)?void 0:a.upload_id)?[2,void 0]:(u=null===(w=null===(b=r.relationships)||void 0===b?void 0:b.title_field.data)||void 0===w?void 0:w.id,s=u&&(null===(_=t.fields[u])||void 0===_?void 0:_.attributes.api_key),l=s?e.attributes[s]:"",[4,t.loadFieldsUsingPlugin()]);case 1:return c=S.sent(),f=t.plugin.id,p=c.filter((function(e){return e.attributes.appearance.editor===f})),d=r.relationships.fields.data.map((function(e){return e.id})),h=function(){for(var n,r=0,o=p;r<o.length;r++){var i=o[r].id,a=null===(n=t.fields[i])||void 0===n?void 0:n.attributes.api_key;if(d.includes(i)&&a){var u=e.attributes[a],s="string"==typeof u?u.trim():void 0;if(s)return s}}}(),h?(m=h?btoa(h):void 0,[2,{title:l,imageUrl:m?"data:image/svg+xml;base64,".concat(m):void 0}]):[2,void 0]}}))}))}})})()})();
|
|
2
|
+
(()=>{var e,t,n={7688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._meta=void 0,this._task=e,this._scheduler=t}withDescriptor(e){return this._descriptor=e,this}withMutex(e){return this._mutex=e,this}withMeta(e){return this._meta=e,this}runBeforeExecuting(e){return this._onPreExecute=e,this}handleCollisions(e){return this._onTaskCollision=e,this}execute(e){return this._scheduler.enqueue({priority:e,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}},2556:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollisionStrategy=void 0,(n=t.TaskCollisionStrategy||(t.TaskCollisionStrategy={}))[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"},7026:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2556),a=o(n(8918)),u=n(6846),s=o(n(7688));var l;function c(e,t){for(let n of e.listeners)n.reject(t)}!function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"}(l||(l={})),t.default=class{constructor(e,t={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=e,this._samePriorityMutex=!!t.samePriorityMutex,this._mutexStrategy=t.mutexStrategy||u.mutexEquality,t.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(e){return new Promise(((t,n)=>{"function"==typeof e&&(e={priority:0,execute:e});const r=this._checkMutexes(e,t,n);r.task?this._addTask(r.task):r.canceled&&n(this.createCanceledError())}))}prepare(e){return new s.default(e,this)}_addTask(e){this._queue.push(e),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce(((e,t)=>t.state===l.EXECUTING?e+1:e),0)}createCanceledError(){return new a.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find((e=>e.state===l.PENDING))}_isIdle(){return 0===this._queue.length||!this._queue.find((e=>e.state!==l.TERMINATED))}_removeTaskAt(e){this._queue.splice(e,1)}_executeTask(e){return r(this,void 0,void 0,(function*(){try{return e.task.onPreExecute&&e.task.onPreExecute(),yield e.task.execute()}catch(e){throw e}finally{e.state=l.TERMINATED;let t=this._queue.indexOf(e);this._removeTaskAt(t),this._executeNextTasks()}}))}_executeNextTasks(){let e=this.executingTasks;if(e>=this._maxConcurrentTasks)return;let t=this._maxConcurrentTasks-e;for(let e=0;e<t;e++){const e=this._findFirstPendingTask();if(!e)return void(this._isIdle()&&this._switchToIdle());e.state=l.EXECUTING,this._executeTask(e).then((t=>{for(const{resolve:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while resolving listener",e)}})).catch((t=>{for(const{reject:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while rejecting listener",e)}}))}}_switchToIdle(){this._isExecuting=!1;const e=this._idleListeners;this._idleListeners=[];for(const{resolve:t}of e)try{t()}catch(e){}}waitForIdle(){return this._isExecuting?new Promise(((e,t)=>{this._idleListeners.push({resolve:e,reject:t})})):Promise.resolve()}_applyPriorities(){this._queue.sort(((e,t)=>t.task.priority-e.task.priority))}_checkMutexes(e,t,n){for(let r=0;r<this._queue.length;r++){let o,a,u=this._queue[r];if(u.state!==l.TERMINATED&&(!this._samePriorityMutex||u.task.priority==e.priority)&&u.task.mutex&&e.mutex&&this._mutexStrategy(u.task.mutex,e.mutex)){if(u.task.onTaskCollision){if(o=u.task.onTaskCollision(e),o===i.TaskCollisionStrategy.KEEP_OTHER&&u.state!==l.EXECUTING){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(o===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(o===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}};if(o===i.TaskCollisionStrategy.RESOLVE_THIS)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1}}if(e.onTaskCollision){if(a=e.onTaskCollision(u.task),a===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(a===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(a===i.TaskCollisionStrategy.RESOLVE_OTHER)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1};if(a===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}}}if(o!==i.TaskCollisionStrategy.KEEP_BOTH||a!==i.TaskCollisionStrategy.KEEP_BOTH)return{canceled:!0}}}return{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n}]}}}}},8918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._code=e,this._message=t}get code(){return this._code}get message(){return this._message}}},6846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=void 0,t.mutexBitwiseAnd=function(e,t){return!!(e&t)},t.mutexEquality=function(e,t){return e===t}},3271:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=t.SchedulerError=t.TaskCollisionStrategy=t.Scheduler=void 0;const o=r(n(7026));t.Scheduler=o.default;const i=n(2556);Object.defineProperty(t,"TaskCollisionStrategy",{enumerable:!0,get:function(){return i.TaskCollisionStrategy}});const a=r(n(8918));t.SchedulerError=a.default;const u=n(6846);Object.defineProperty(t,"mutexBitwiseAnd",{enumerable:!0,get:function(){return u.mutexBitwiseAnd}}),Object.defineProperty(t,"mutexEquality",{enumerable:!0,get:function(){return u.mutexEquality}})},6454:(e,t,n)=>{"use strict";const r=n(3918),o=n(2923),i=n(8904);e.exports={XMLParser:o,XMLValidator:r,XMLBuilder:i}},5334:(e,t)=>{"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),o=r.length;for(let i=0;i<o;i++)e[r[i]]="strict"===n?[t[r[i]]]:t[r[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==o.exec(e))},t.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const o=[];o.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)o.push(r[e]);n.push(o),r=t.exec(e)}return n},t.nameRegexp=r},3918:(e,t,n)=>{"use strict";const r=n(5334),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function a(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function u(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},o,t);const n=[];let s=!1,l=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=a(e,o),o.err)return o}else{if("<"!==e[o]){if(i(e[o]))continue;return h("InvalidChar","char '"+e[o]+"' is not expected.",y(e,o))}{let m=o;if(o++,"!"===e[o]){o=u(e,o);continue}{let v=!1;"/"===e[o]&&(v=!0,o++);let g="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)g+=e[o];if(g=g.trim(),"/"===g[g.length-1]&&(g=g.substring(0,g.length-1),o--),f=g,!r.isName(f)){let t;return t=0===g.trim().length?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",h("InvalidTag",t,y(e,o))}const b=c(e,o);if(!1===b)return h("InvalidAttr","Attributes for '"+g+"' have open quote.",y(e,o));let w=b.value;if(o=b.index,"/"===w[w.length-1]){const n=o-w.length;w=w.substring(0,w.length-1);const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,n+r.err.line));s=!0}else if(v){if(!b.tagClosed)return h("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",y(e,o));if(w.trim().length>0)return h("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",y(e,m));if(0===n.length)return h("InvalidTag","Closing tag '"+g+"' has not been opened.",y(e,m));{const t=n.pop();if(g!==t.tagName){let n=y(e,t.tagStartPos);return h("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+g+"'.",y(e,m))}0==n.length&&(l=!0)}}else{const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,o-w.length+r.err.line));if(!0===l)return h("InvalidXml","Multiple possible root nodes found.",y(e,o));-1!==t.unpairedTags.indexOf(g)||n.push({tagName:g,tagStartPos:m}),s=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=u(e,o);continue}if("?"!==e[o+1])break;if(o=a(e,++o),o.err)return o}else if("&"===e[o]){const t=d(e,o);if(-1==t)return h("InvalidChar","char '&' is not expected.",y(e,o));o=t}else if(!0===l&&!i(e[o]))return h("InvalidXml","Extra text at the end",y(e,o));"<"===e[o]&&o--}}}var f;return s?1==n.length?h("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",y(e,n[0].tagStartPos)):!(n.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};const s='"',l="'";function c(e,t){let n="",r="",o=!1;for(;t<e.length;t++){if(e[t]===s||e[t]===l)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){o=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:o}}const f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const n=r.getAllMatches(e,f),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return h("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return h("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const r=n[e][2];if(!m(r))return h("InvalidAttr","Attribute '"+r+"' is an invalid name.",v(n[e]));if(o.hasOwnProperty(r))return h("InvalidAttr","Attribute '"+r+"' is repeated.",v(n[e]));o[r]=1}return!0}function d(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function h(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return r.isName(e)}function y(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},8904:(e,t,n)=>{"use strict";const r=n(2788),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},o,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=s),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function u(e){return this.options.indentBy.repeat(e)}function s(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let n="",r="";for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===e[o])this.isAttribute(o)&&(r+="");else if(null===e[o])this.isAttribute(o)?r+="":"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const i=this.isAttribute(o);if(i)n+=this.buildAttrPairStr(i,""+e[o]);else if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const n=e[o].length;let i="";for(let a=0;a<n;a++){const n=e[o][a];void 0===n||(null===n?"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:"object"==typeof n?this.options.oneListGroup?i+=this.j2x(n,t+1).val:i+=this.processTextOrObjNode(n,o,t):i+=this.buildTextValNode(n,o,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",t)),r+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const t=Object.keys(e[o]),r=t.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(t[i],""+e[o][t[i]])}else r+=this.processTextOrObjNode(e[o],o,t);return{attrStr:n,val:r}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,n,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+i+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+n+i+">"+e+o}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=i},2788:e=>{function t(e,a,u,s){let l="",c=!1;for(let f=0;f<e.length;f++){const p=e[f],d=n(p);if(void 0===d)continue;let h="";if(h=0===u.length?d:`${u}.${d}`,d===a.textNodeName){let e=p[d];o(h,a)||(e=a.tagValueProcessor(d,e),e=i(e,a)),c&&(l+=s),l+=e,c=!1;continue}if(d===a.cdataPropName){c&&(l+=s),l+=`<![CDATA[${p[d][0][a.textNodeName]}]]>`,c=!1;continue}if(d===a.commentPropName){l+=s+`\x3c!--${p[d][0][a.textNodeName]}--\x3e`,c=!0;continue}if("?"===d[0]){const e=r(p[":@"],a),t="?xml"===d?"":s;let n=p[d][0][a.textNodeName];n=0!==n.length?" "+n:"",l+=t+`<${d}${n}${e}?>`,c=!0;continue}let m=s;""!==m&&(m+=a.indentBy);const y=s+`<${d}${r(p[":@"],a)}`,v=t(p[d],a,h,m);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?l+=y+">":l+=y+"/>":v&&0!==v.length||!a.suppressEmptyNode?v&&v.endsWith(">")?l+=y+`>${v}${s}</${d}>`:(l+=y+">",v&&""!==s&&(v.includes("/>")||v.includes("</"))?l+=s+a.indentBy+v+s:l+=v,l+=`</${d}>`):l+=y+"/>",c=!0}return l}function n(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(e.hasOwnProperty(r)&&":@"!==r)return r}}function r(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let o=t.attributeValueProcessor(r,e[r]);o=i(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function o(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}e.exports=function(e,n){let r="";return n.format&&n.indentBy.length>0&&(r="\n"),t(e,n,"",r)}},9400:(e,t,n)=>{const r=n(5334);function o(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const r=e[t++];let o="";for(;t<e.length&&e[t]!==r;t++)o+=e[t];return[n,o,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function u(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function s(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function l(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function c(e){if(r.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let r=1,f=!1,p=!1,d="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,r--):r--,0===r)break}else"["===e[t]?f=!0:d+=e[t];else{if(f&&a(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(n[c(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(f&&u(e,t))t+=8;else if(f&&s(e,t))t+=8;else if(f&&l(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");p=!0}r++,d=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}},460:(e,t)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},7680:(e,t,n)=>{"use strict";const r=n(5334),o=n(3832),i=n(9400),a=n(7983);function u(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function s(e,t,n,r,o,i,a){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,o,i);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?w(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function l(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){const n=r.getAllMatches(e,c),o=n.length,i={};for(let e=0;e<o;e++){const r=this.resolveNameSpace(n[e][1]);let o=n[e][4],a=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==o){this.options.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o);const e=this.options.attributeValueProcessor(r,o,t);i[a]=null==e?o:typeof e!=typeof o||e!==o?e:w(o,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[a]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const p=function(e){e=e.replace(/\r\n?/g,"\n");const t=new o("!xml");let n=t,r="",a="";for(let u=0;u<e.length;u++)if("<"===e[u])if("/"===e[u+1]){const t=v(e,">",u,"Closing Tag is not closed.");let o=e.substring(u+2,t).trim();if(this.options.removeNSPrefix){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),n&&(r=this.saveTextToParentTag(r,n,a));const i=a.substring(a.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);let s=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(s=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):s=a.lastIndexOf("."),a=a.substring(0,s),n=this.tagsNodeStack.pop(),r="",u=t}else if("?"===e[u+1]){let t=g(e,u,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new o(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}u=t.closeIndex+1}else if("!--"===e.substr(u+1,3)){const t=v(e,"--\x3e",u+4,"Comment is not closed.");if(this.options.commentPropName){const o=e.substring(u+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}u=t}else if("!D"===e.substr(u+1,2)){const t=i(e,u);this.docTypeEntities=t.entities,u=t.i}else if("!["===e.substr(u+1,2)){const t=v(e,"]]>",u,"CDATA is not closed.")-2,o=e.substring(u+9,t);r=this.saveTextToParentTag(r,n,a);let i=this.parseTextData(o,n.tagname,a,!0,!1,!0,!0);null==i&&(i=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]):n.add(this.options.textNodeName,i),u=t+2}else{let i=g(e,u,this.options.removeNSPrefix),s=i.tagName;const l=i.rawTagName;let c=i.tagExp,f=i.attrExpPresent,p=i.closeIndex;this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));const d=n;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),s!==t.tagname&&(a+=a?"."+s:s),this.isItStopNode(this.options.stopNodes,a,s)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),u=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(s))u=i.closeIndex;else{const n=this.readStopNodeData(e,l,p+1);if(!n)throw new Error(`Unexpected end of ${l}`);u=n.i,t=n.tagContent}const r=new o(s);s!==c&&f&&(r[":@"]=this.buildAttributesMap(c,a,s)),t&&(t=this.parseTextData(t,s,a,!0,f,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),this.options.transformTagName&&(s=this.options.transformTagName(s));const e=new o(s);s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new o(s);this.tagsNodeStack.push(n),s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),n=e}r="",u=p}}else r+=e[u];return t.child};function d(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const h=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,n){const r="*."+n;for(const n in e){const o=e[n];if(r===o||t===o)return!0}return!1}function v(e,t,n,r){const o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}function g(e,t,n,r=">"){const o=function(e,t,n=">"){let r,o="";for(let i=t;i<e.length;i++){let t=e[i];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,r);if(!o)return;let i=o.data;const a=o.index,u=i.search(/\s/);let s=i,l=!0;-1!==u&&(s=i.substring(0,u),i=i.substring(u+1).trimStart());const c=s;if(n){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1),l=s!==o.data.substr(e+1))}return{tagName:s,tagExp:i,closeIndex:a,attrExpPresent:l,rawTagName:c}}function b(e,t,n){const r=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=v(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,0===o))return{tagContent:e.substring(r,n),i};n=i}else if("?"===e[n+1])n=v(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=v(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=v(e,"]]>",n,"StopNode is not closed.")-2;else{const r=g(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&o++,n=r.closeIndex)}}function w(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=s,this.resolveNameSpace=l,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=h,this.readStopNodeData=b,this.saveTextToParentTag=m,this.addChild=d}}},2923:(e,t,n)=>{const{buildOptions:r}=n(460),o=n(7680),{prettify:i}=n(5629),a=n(3918);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new o(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:i(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},5629:(e,t)=>{"use strict";function n(e,t,a){let u;const s={};for(let l=0;l<e.length;l++){const c=e[l],f=r(c);let p="";if(p=void 0===a?f:a+"."+f,f===t.textNodeName)void 0===u?u=c[f]:u+=""+c[f];else{if(void 0===f)continue;if(c[f]){let e=n(c[f],t,p);const r=i(e,t);c[":@"]?o(e,c[":@"],p,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[f]&&s.hasOwnProperty(f)?(Array.isArray(s[f])||(s[f]=[s[f]]),s[f].push(e)):t.isArray(f,p,r)?s[f]=[e]:s[f]=e}}}return"string"==typeof u?u.length>0&&(s[t.textNodeName]=u):void 0!==u&&(s[t.textNodeName]=u),s}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function o(e,t,n,r){if(t){const o=Object.keys(t),i=o.length;for(let a=0;a<i;a++){const i=o[a];r.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function i(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}t.prettify=function(e,t){return n(e,t)}},3832:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=s(t),m=s(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||u&&u[v])){var g=p(n,v);try{l(t,v,g)}catch(e){}}}}return t}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),a=n(2749),u=n(5749);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},79:(e,t,n)=>{var r=n(3702),o=n(80),i=n(4739),a=n(8655),u=n(1175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),a=n(4509),u=n(2949);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),i=n(3805),a=n(7473),u=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,f=l.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},7556:(e,t,n)=>{var r=n(1873),o=n(4932),i=n(6449),a=n(4394),u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1769:(e,t,n)=>{var r=n(6449),o=n(8586),i=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8586:(e,t,n)=>{var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1802:(e,t,n)=>{var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},6449:e=>{var t=Array.isArray;e.exports=t},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},104:(e,t,n)=>{var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},4482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(5363);t.default=(e,t,n)=>{const i=e.localName,a=e.local,u=e.remote,s=e.originForSending,l=e.originForReceiving;let c=!1;n(`${i}: Connecting call receiver`);const f=e=>{if(e.source!==u||e.data.penpal!==r.CALL)return;if(e.origin!==l)return void n(`${i} received message from origin ${e.origin} which did not match expected origin ${l}`);const a=e.data,f=a.methodName,p=a.args,d=a.id;n(`${i}: Received ${f}() call`);const h=e=>t=>{if(n(`${i}: Sending ${f}() reply`),c)return void n(`${i}: Unable to send ${f}() reply due to destroyed connection`);const a={penpal:r.REPLY,id:d,resolution:e,returnValue:t};e===r.REJECTED&&t instanceof Error&&(a.returnValue=(0,o.serializeError)(t),a.returnValueIsError=!0);try{u.postMessage(a,s)}catch(e){throw e.name===r.DATA_CLONE_ERROR&&u.postMessage({penpal:r.REPLY,id:d,resolution:r.REJECTED,returnValue:(0,o.serializeError)(e),returnValueIsError:!0},s),e}};new Promise((e=>e(t[f].apply(t,p)))).then(h(r.FULFILLED),h(r.REJECTED))};return a.addEventListener(r.MESSAGE,f),()=>{c=!0,a.removeEventListener(r.MESSAGE,f)}},e.exports=t.default},2502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(5884),i=n(8005),a=(r=n(1043))&&r.__esModule?r:{default:r},u=n(5363);t.default=(e,t,n,r,s)=>{const l=t.localName,c=t.local,f=t.remote,p=t.originForSending,d=t.originForReceiving;let h=!1;return s(`${l}: Connecting call sender`),n.reduce(((e,t)=>(e[t]=(e=>function(){for(var t=arguments.length,n=new Array(t),m=0;m<t;m++)n[m]=arguments[m];let y;s(`${l}: Sending ${e}() call`);try{f.closed&&(y=!0)}catch(e){y=!0}if(y&&r(),h){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=i.ERR_CONNECTION_DESTROYED,t}return new Promise(((t,r)=>{const i=(0,a.default)(),h=n=>{if(n.source!==f||n.data.penpal!==o.REPLY||n.data.id!==i)return;if(n.origin!==d)return void s(`${l} received message from origin ${n.origin} which did not match expected origin ${d}`);s(`${l}: Received ${e}() reply`),c.removeEventListener(o.MESSAGE,h);let a=n.data.returnValue;n.data.returnValueIsError&&(a=(0,u.deserializeError)(a)),(n.data.resolution===o.FULFILLED?t:r)(a)};c.addEventListener(o.MESSAGE,h),f.postMessage({penpal:o.CALL,id:i,methodName:e,args:n},p)}))})(t),e)),e),()=>{h=!0}},e.exports=t.default},7414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(8005),i=l(n(686)),a=l(n(4482)),u=l(n(2502)),s=l(n(6913));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentOrigin,n=void 0===t?"*":t,l=e.methods,c=void 0===l?{}:l,f=e.timeout,p=e.debug;const d=(0,s.default)(p);if(window===window.top){const e=new Error("connectToParent() must be called within an iframe");throw e.code=o.ERR_NOT_IN_IFRAME,e}const h=(0,i.default)(),m=h.destroy,y=h.onDestroy,v=window,g=v.parent;return{promise:new Promise(((e,t)=>{let i;void 0!==f&&(i=setTimeout((()=>{const e=new Error(`Connection to parent timed out after ${f}ms`);e.code=o.ERR_CONNECTION_TIMEOUT,t(e),m()}),f));const s=t=>{try{clearTimeout()}catch(e){return}if(t.source!==g||t.data.penpal!==r.HANDSHAKE_REPLY)return;if("*"!==n&&n!==t.origin)return void d(`Child received handshake reply from origin ${t.origin} which did not match expected origin ${n}`);d("Child: Received handshake reply"),v.removeEventListener(r.MESSAGE,s);const o={localName:"Child",local:v,remote:g,originForSending:"null"===t.origin?"*":t.origin,originForReceiving:t.origin},l={},f=(0,a.default)(o,c,d);y(f);const p=(0,u.default)(l,o,t.data.methodNames,m,d);y(p),clearTimeout(i),e(l)};v.addEventListener(r.MESSAGE,s),y((()=>{v.removeEventListener(r.MESSAGE,s);const e=new Error("Connection destroyed");e.code=o.ERR_CONNECTION_DESTROYED,t(e)})),d("Child: Sending handshake"),g.postMessage({penpal:r.HANDSHAKE,methodNames:Object.keys(c)},n)})),destroy:m}},e.exports=t.default},5884:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DATA_CLONE_ERROR=t.MESSAGE=t.REJECTED=t.FULFILLED=t.REPLY=t.CALL=t.HANDSHAKE_REPLY=t.HANDSHAKE=void 0,t.HANDSHAKE="handshake",t.HANDSHAKE_REPLY="handshake-reply",t.CALL="call",t.REPLY="reply",t.FULFILLED="fulfilled",t.REJECTED="rejected",t.MESSAGE="message",t.DATA_CLONE_ERROR="DataCloneError"},686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=()=>{const e=[];let t=!1;return{destroy(){t=!0,e.forEach((e=>{e()}))},onDestroy(n){t?n():e.push(n)}}},e.exports=t.default},6913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>function(){if(e){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.log("[Penpal]",...n)}},e.exports=t.default},8005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERR_NO_IFRAME_SRC=t.ERR_NOT_IN_IFRAME=t.ERR_CONNECTION_TIMEOUT=t.ERR_CONNECTION_DESTROYED=void 0,t.ERR_CONNECTION_DESTROYED="ConnectionDestroyed",t.ERR_CONNECTION_TIMEOUT="ConnectionTimeout",t.ERR_NOT_IN_IFRAME="NotInIframe",t.ERR_NO_IFRAME_SRC="NoIframeSrc"},5363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeError=t.serializeError=void 0,t.serializeError=e=>({name:e.name,message:e.message,stack:e.stack}),t.deserializeError=e=>{const t=new Error;return Object.keys(e).forEach((n=>t[n]=e[n])),t}},1043:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=0;t.default=()=>++n,e.exports=t.default},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function s(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(d,e)&&(p.test(e)?h[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var A,R=Object.assign;function M(e){if(void 0===A)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var V=!1;function z(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=u);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case O:return"Profiler";case E:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ve=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ee=null;function Oe(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function ke(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function Pe(){if(xe){var e=xe,t=Ee;if(Ee=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Te(e,t){return e(t)}function Ce(){}var Ie=!1;function Ne(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==xe||null!==Ee)&&(Ce(),Pe())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Le=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Le=!1}function Fe(e,t,n,r,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Ae=!1,Re=null,Me=!1,Ve=null,ze={onError:function(e){Ae=!0,Re=e}};function Ue(e,t,n,r,o,i,a,u,s){Ae=!1,Re=null,Fe.apply(ze,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(i(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,s=o.child;s;){if(s===n){u=!0,n=o,r=a;break}if(s===r){u=!0,r=o,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=o;break}if(s===r){u=!0,r=a,n=o;break}s=s.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,We=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/st|0)|0},ut=Math.log,st=Math.LN2,lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var u=a&~o;0!==u?r=ft(u):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,St,xt,Et,Ot,kt=!1,Pt=[],Tt=null,Ct=null,It=null,Nt=new Map,jt=new Map,Lt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function At(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Rt(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Vt(e,t,n){Mt(e)&&n.delete(t)}function zt(){kt=!1,null!==Tt&&Mt(Tt)&&(Tt=null),null!==Ct&&Mt(Ct)&&(Ct=null),null!==It&&Mt(It)&&(It=null),Nt.forEach(Vt),jt.forEach(Vt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Ct&&Ut(Ct,e),null!==It&&Ut(It,e),Nt.forEach(t),jt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Rt(n),null===n.blockedOn&&Lt.shift()}var Bt=w.ReactCurrentBatchConfig,Ht=!0;function Gt(e,t,n,r){var o=bt,i=Bt.transition;Bt.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Bt.transition=i}}function $t(e,t,n,r){var o=bt,i=Bt.transition;Bt.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Bt.transition=i}}function Yt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Wt,n),Ft(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=At(Tt,e,t,n,r,o),!0;case"dragenter":return Ct=At(Ct,e,t,n,r,o),!0;case"mouseover":return It=At(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,At(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jt.set(i,At(jt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&_t(i),null===(i=Qt(e,t,n,r))&&Hr(e,t,r,Wt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Qt(e,t,n,r){if(Wt=null,null!==(e=bo(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,un,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),fn=R({},ln,{view:0,detail:0}),pn=on(fn),dn=R({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,un=e.screenY-sn.screenY):un=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=on(dn),mn=on(R({},dn,{dataTransfer:0})),yn=on(R({},fn,{relatedTarget:0})),vn=on(R({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=R({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(R({},ln,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return En}var kn=R({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(kn),Tn=on(R({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=on(R({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),In=on(R({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=R({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(Nn),Ln=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var An=c&&"TextEvent"in window&&!Fn,Rn=c&&(!Dn||Fn&&8<Fn&&11>=Fn),Mn=String.fromCharCode(32),Vn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Gn(e,t,n,r){ke(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Yn=null;function Wn(e){Mr(e,0)}function Qn(e){if(Y(_o(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Yn=$n=null)}function nr(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];Gn(t,Yn,e,_e(e)),Ne(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==W(r)||(r="selectionStart"in(r=yr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=$r(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},xr={},Er={};function Or(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return xr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Or("animationend"),Pr=Or("animationiteration"),Tr=Or("animationstart"),Cr=Or("transitionend"),Ir=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Ir.set(e,t),s(t,[e])}for(var Lr=0;Lr<Nr.length;Lr++){var Dr=Nr[Lr];jr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}jr(kr,"onAnimationEnd"),jr(Pr,"onAnimationIteration"),jr(Tr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Cr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,s,l){if(Ue.apply(this,arguments),Ae){if(!Ae)throw Error(i(198));var c=Re;Ae=!1,Re=null,Me||(Me=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;Rr(o,u,l),i=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;Rr(o,u,l),i=s}}}if(Me)throw e=Ve,Me=!1,Ve=null,e}function Vr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Kt(t)){case 1:var o=Gt;break;case 4:o=$t;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=bo(u)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}u=u.parentNode}}r=r.return}Ne((function(){var r=i,o=_e(n),a=[];e:{var u=Ir.get(e);if(void 0!==u){var s=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":l="focus",s=yn;break;case"focusout":l="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Cn;break;case kr:case Pr:case Tr:s=vn;break;case Cr:s=In;break;case"scroll":s=pn;break;case"wheel":s=jn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=!!(4&t),f=!c&&"scroll"===e,p=c?null!==u?u+"Capture":null:u;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&null!=(m=je(h,p))&&c.push(Gr(h,m,d))),f)break;h=h.return}0<c.length&&(u=new s(u,l,null,n,o),a.push({event:u,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!bo(l)&&!l[mo])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?bo(l):null)&&(l!==(f=qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==s?u:_o(s),d=null==l?u:_o(l),(u=new c(m,h+"leave",s,n,o)).target=f,u.relatedTarget=d,m=null,bo(o)===r&&((c=new c(p,h+"enter",l,n,o)).target=d,c.relatedTarget=f,m=c),f=m,s&&l)e:{for(p=l,h=0,d=c=s;d;d=Yr(d))h++;for(d=0,m=p;m;m=Yr(m))d++;for(;0<h-d;)c=Yr(c),h--;for(;0<d-h;)p=Yr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Yr(c),p=Yr(p)}c=null}else c=null;null!==s&&Wr(a,u,s,c,!1),null!==l&&null!==f&&Wr(a,f,l,c,!0)}if("select"===(s=(u=r?_o(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=Kn;else if(Hn(u))if(Xn)y=ar;else{y=or;var v=rr}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(y=ir);switch(y&&(y=y(e,r))?Gn(a,y,n,o):(v&&v(e,u,r),"focusout"===e&&(v=u._wrapperState)&&v.controlled&&"number"===u.type&&ee(u,"number",u.value)),v=r?_o(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,qn=!0)),0<(v=$r(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Un(n)))&&(b.data=g))),(g=An?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Vn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=$r(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Mr(a,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,n))&&r.unshift(Gr(e,i,o)),null!=(i=je(e,t))&&r.push(Gr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(s=je(n,i))&&a.unshift(Gr(n,s,u)):o||null!=(s=je(n,i))&&a.push(Gr(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(uo)}:ro;function uo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function lo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,yo="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var xo=[],Eo=-1;function Oo(e){return{current:e}}function ko(e){0>Eo||(e.current=xo[Eo],xo[Eo]=null,Eo--)}function Po(e,t){Eo++,xo[Eo]=e.current,e.current=t}var To={},Co=Oo(To),Io=Oo(!1),No=To;function jo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=e.childContextTypes}function Do(){ko(Io),ko(Co)}function Fo(e,t,n){if(Co.current!==To)throw Error(i(168));Po(Co,t),Po(Io,n)}function Ao(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,B(e)||"Unknown",o));return R({},n,r)}function Ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,No=Co.current,Po(Co,e),Po(Io,Io.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ao(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,ko(Io),ko(Co),Po(Co,e)):ko(Io),Po(Io,n)}var Vo=null,zo=!1,Uo=!1;function qo(e){null===Vo?Vo=[e]:Vo.push(e)}function Bo(){if(!Uo&&null!==Vo){Uo=!0;var e=0,t=bt;try{var n=Vo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vo=null,zo=!1}catch(t){throw null!==Vo&&(Vo=Vo.slice(e+1)),Ye(Ze,Bo),t}finally{bt=t,Uo=!1}}return null}var Ho=[],Go=0,$o=null,Yo=0,Wo=[],Qo=0,Ko=null,Xo=1,Jo="";function Zo(e,t){Ho[Go++]=Yo,Ho[Go++]=$o,$o=e,Yo=t}function ei(e,t,n){Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Ko=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===$o;)$o=Ho[--Go],Ho[Go]=null,Yo=Ho[--Go],Ho[Go]=null;for(;e===Ko;)Ko=Wo[--Qo],Wo[Qo]=null,Jo=Wo[--Qo],Wo[Qo]=null,Xo=Wo[--Qo],Wo[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function ui(e,t){var n=Nl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=lo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function li(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(li(e))throw Error(i(418));t=lo(n.nextSibling);var r=ri;t&&si(e,t)?ui(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(li(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(li(e))throw di(),Error(i(418));for(;t;)ui(e,t),t=lo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=lo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?lo(e.stateNode.nextSibling):null;return!0}function di(){for(var e=oi;e;)e=lo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var yi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Rl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===x?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===j&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Dl(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Fl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Rl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Dl(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case S:return(t=Ml(t,e.mode,n)).return=e,t;case j:return p(e,(0,t._init)(t._payload),n)}if(te(t)||F(t))return(t=Fl(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?l(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case j:return d(e,t,(o=n._init)(n._payload),r)}if(te(n)||F(n))return null!==o?null:f(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case j:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||F(r))return f(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(o,i,u,s){for(var l=null,c=null,f=i,m=i=0,y=null;null!==f&&m<u.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],s);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?l=v:c.sibling=v,c=v,f=y}if(m===u.length)return n(o,f),ii&&Zo(o,m),l;if(null===f){for(;m<u.length;m++)null!==(f=p(o,u[m],s))&&(i=a(f,i,m),null===c?l=f:c.sibling=f,c=f);return ii&&Zo(o,m),l}for(f=r(o,f);m<u.length;m++)null!==(y=h(f,o,m,u[m],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),l}function y(o,u,s,l){var c=F(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var f=c=null,m=u,y=u=0,v=null,g=s.next();null!==m&&!g.done;y++,g=s.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=d(o,m,g.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=a(b,u,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),ii&&Zo(o,y),c;if(null===m){for(;!g.done;y++,g=s.next())null!==(g=p(o,g.value,l))&&(u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return ii&&Zo(o,y),c}for(m=r(o,m);!g.done;y++,g=s.next())null!==(g=h(m,o,y,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,y),c}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var l=a.key,c=i;null!==c;){if(c.key===l){if((l=a.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===j&&bi(l)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=vi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((i=Fl(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Dl(a.type,a.key,a.props,null,r.mode,s)).ref=vi(r,i,a),s.return=r,r=s)}return u(r);case S:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ml(a,r.mode,s)).return=r,r=i}return u(r);case j:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(F(a))return y(r,i,a,s);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Rl(a,r.mode,s)).return=r,r=i),u(r)):n(r,i)}}var _i=wi(!0),Si=wi(!1),xi=Oo(null),Ei=null,Oi=null,ki=null;function Pi(){ki=Oi=Ei=null}function Ti(e){var t=xi.current;ko(xi),e._currentValue=t}function Ci(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){Ei=e,ki=Oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bu=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Oi){if(null===Ei)throw Error(i(308));Oi=e,Ei.dependencies={lanes:0,firstContext:e}}else Oi=Oi.next=e;return t}var ji=null;function Li(e){null===ji?ji=[e]:ji.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Li(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ai=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ts){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return null===(o=r.interleaved)?(t.next=t,Li(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bi(e,t,n,r){var o=e.updateQueue;Ai=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,l=s.next;s.next=null,null===a?i=l:a.next=l,a=s;var c=e.alternate;null!==c&&(u=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s)}if(null!==i){var f=o.baseState;for(a=0,c=l=s=null,u=i;;){var p=u.lane,d=u.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,m=u;switch(p=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(d,f,p);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(d,f,p):h))break e;f=R({},f,p);break e;case 2:Ai=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=d,s=f):c=c.next=d,a|=p;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(p=u).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);As|=a,e.lanes=a,e.memoizedState=f}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Gi={},$i=Oo(Gi),Yi=Oo(Gi),Wi=Oo(Gi);function Qi(e){if(e===Gi)throw Error(i(174));return e}function Ki(e,t){switch(Po(Wi,t),Po(Yi,e),Po($i,Gi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko($i),Po($i,t)}function Xi(){ko($i),ko(Yi),ko(Wi)}function Ji(e){Qi(Wi.current);var t=Qi($i.current),n=se(t,e.type);t!==n&&(Po(Yi,e),Po($i,n))}function Zi(e){Yi.current===e&&(ko($i),ko(Yi))}var ea=Oo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,ua=null,sa=null,la=null,ca=!1,fa=!1,pa=0,da=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ya(e,t,n,r,o,a){if(aa=a,ua=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:eu,e=n(r,o),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(i(301));a+=1,la=sa=null,t.updateQueue=null,oa.current=tu,e=n(r,o)}while(fa)}if(oa.current=Ja,t=null!==sa&&null!==sa.next,aa=0,la=sa=ua=null,ca=!1,t)throw Error(i(300));return e}function va(){var e=0!==pa;return pa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?ua.memoizedState=la=e:la=la.next=e,la}function ba(){if(null===sa){var e=ua.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===la?ua.memoizedState:la.next;if(null!==t)la=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===la?ua.memoizedState=la=e:la=la.next=e}return la}function wa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=u=null,l=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=p,u=r):l=l.next=p,ua.lanes|=f,As|=f}c=c.next}while(null!==c&&c!==a);null===l?u=r:l.next=s,ur(r,t.memoizedState)||(bu=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ua.lanes|=a,As|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);ur(a,t.memoizedState)||(bu=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Ea(e,t){var n=ua,r=ba(),o=t(),a=!ur(r.memoizedState,o);if(a&&(r.memoizedState=o,bu=!0),r=r.queue,Aa(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Na(9,ka.bind(null,n,r,o,t),void 0,null),null===Cs)throw Error(i(349));30&aa||Oa(n,t,o)}return o}function Oa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ca(e)}function Pa(e,t,n){return n((function(){Ta(t)&&Ca(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(e){return!0}}function Ca(e){var t=Fi(e,1);null!==t&&nl(t,e,1,-1)}function Ia(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Wa.bind(null,ua,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return ba().memoizedState}function La(e,t,n,r){var o=ga();ua.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}ua.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function Fa(e,t){return La(8390656,8,e,t)}function Aa(e,t){return Da(2048,8,e,t)}function Ra(e,t){return Da(4,2,e,t)}function Ma(e,t){return Da(4,4,e,t)}function Va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Da(4,4,Va.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ba(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 21&aa?(ur(n,t)||(n=mt(),ua.lanes|=n,As|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bu=!0),e.memoizedState=n)}function Ga(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function $a(){return ba().memoizedState}function Ya(e,t,n){var r=tl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e)?Ka(t,n):null!==(n=Di(e,t,n,r))&&(nl(n,e,r,el()),Xa(n,t,r))}function Wa(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Ka(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,ur(u,a)){var s=t.interleaved;return null===s?(o.next=o,Li(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nl(n,e,r,o=el()),Xa(n,t,r))}}function Qa(e){var t=e.alternate;return e===ua||null!==t&&t===ua}function Ka(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Ja={readContext:Ni,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ni,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:Fa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,La(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,ua,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Ia,useDebugValue:Ua,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ga.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ua,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Cs)throw Error(i(349));30&aa||Oa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Fa(Pa.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=Cs.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=da++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Aa,useImperativeHandle:za,useInsertionEffect:Ra,useLayoutEffect:Ma,useMemo:Ba,useReducer:_a,useRef:ja,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(ba(),sa.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:$a,unstable_isNewReconciler:!1},tu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Aa,useImperativeHandle:za,useInsertionEffect:Ra,useLayoutEffect:Ma,useMemo:Ba,useReducer:Sa,useRef:ja,useState:function(){return Sa(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===sa?t.memoizedState=e:Ha(t,sa.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:$a,unstable_isNewReconciler:!1};function nu(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ru(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ou={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),o=Vi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(nl(t,e,r,n),Ui(t,e,r))}};function iu(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,i))}function au(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=Lo(t)?No:Co.current,i=(r=null!=(r=t.contextTypes))?jo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ou,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function uu(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ou.enqueueReplaceState(t,t.state,null)}function su(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ri(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ni(i):(i=Lo(t)?No:Co.current,o.context=jo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ru(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ou.enqueueReplaceState(o,o.state,null),Bi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function lu(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cu(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fu(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pu="function"==typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=Vi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Gs=r),fu(0,t)},n}function hu(e,t,n){(n=Vi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fu(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fu(0,t),"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ol.bind(null,e,t,n),t.then(e,e))}function yu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vu(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Vi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var gu=w.ReactCurrentOwner,bu=!1;function wu(e,t,n,r){t.child=null===e?Si(t,null,n,r):_i(t,e.child,n,r)}function _u(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ya(e,t,n,r,i,o),n=va(),null===e||bu?(ii&&n&&ti(t),t.flags|=1,wu(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hu(e,t,o))}function Su(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||jl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xu(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Hu(e,t,o)}return t.flags|=1,(e=Ll(i,r)).ref=t.ref,e.return=t,t.child=e}function xu(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(bu=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Hu(e,t,o);131072&e.flags&&(bu=!0)}}return ku(e,t,n,r,o)}function Eu(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ls,js),js|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Ls,js),js|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ls,js),js|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Ls,js),js|=r;return wu(e,t,o,n),t.child}function Ou(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,o){var i=Lo(n)?No:Co.current;return i=jo(t,i),Ii(t,o),n=ya(e,t,n,r,i,o),r=va(),null===e||bu?(ii&&r&&ti(t),t.flags|=1,wu(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hu(e,t,o))}function Pu(e,t,n,r,o){if(Lo(n)){var i=!0;Ro(t)}else i=!1;if(Ii(t,o),null===t.stateNode)Bu(e,t),au(t,n,r),su(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;l="object"==typeof l&&null!==l?Ni(l):jo(t,l=Lo(n)?No:Co.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||s!==l)&&uu(t,a,r,l),Ai=!1;var p=t.memoizedState;a.state=p,Bi(t,r,a,o),s=t.memoizedState,u!==r||p!==s||Io.current||Ai?("function"==typeof c&&(ru(t,n,c,r),s=t.memoizedState),(u=Ai||iu(t,n,u,r,p,s,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Mi(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:nu(t.type,u),a.props=l,f=t.pendingProps,p=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ni(s):jo(t,s=Lo(n)?No:Co.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==f||p!==s)&&uu(t,a,r,s),Ai=!1,p=t.memoizedState,a.state=p,Bi(t,r,a,o);var h=t.memoizedState;u!==f||p!==h||Io.current||Ai?("function"==typeof d&&(ru(t,n,d,r),h=t.memoizedState),(l=Ai||iu(t,n,l,r,p,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Tu(e,t,n,r,i,o)}function Tu(e,t,n,r,o,i){Ou(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Mo(t,n,!1),Hu(e,t,i);r=t.stateNode,gu.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,u,i)):wu(e,t,u,i),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Cu(e){var t=e.stateNode;t.pendingContext?Fo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fo(0,t.context,!1),Ki(e,t.containerInfo)}function Iu(e,t,n,r,o){return hi(),mi(o),t.flags|=256,wu(e,t,n,r),t.child}var Nu,ju,Lu,Du,Fu={dehydrated:null,treeContext:null,retryLane:0};function Au(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ru(e,t,n){var r,o=t.pendingProps,a=ea.current,u=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(u=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,u?(o=t.mode,u=t.child,s={mode:"hidden",children:s},1&o||null===u?u=Al(s,o,0,null):(u.childLanes=0,u.pendingProps=s),e=Fl(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Au(n),t.memoizedState=Fu,e):Mu(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,u){if(n)return 256&t.flags?(t.flags&=-257,Vu(e,t,u,r=cu(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Al({mode:"visible",children:r.children},o,0,null),(a=Fl(a,o,u,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&_i(t,e.child,null,u),t.child.memoizedState=Au(u),t.memoizedState=Fu,a);if(!(1&t.mode))return Vu(e,t,u,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Vu(e,t,u,r=cu(a=Error(i(419)),r,void 0))}if(s=!!(u&e.childLanes),bu||s){if(null!==(r=Cs)){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|u)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Fi(e,o),nl(r,e,o,-1))}return ml(),Vu(e,t,u,r=cu(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Pl.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=lo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Xo=e.id,Jo=e.overflow,Ko=t),(t=Mu(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(u){u=o.fallback,s=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Ll(a,l)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?u=Ll(r,u):(u=Fl(u,s,n,null)).flags|=2,u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,s=null===(s=e.child.memoizedState)?Au(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Fu,o}return e=(u=e.child).sibling,o=Ll(u,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Mu(e,t){return(t=Al({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vu(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=Mu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ci(e.return,t,n)}function Uu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wu(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zu(e,n,t);else if(19===e.tag)zu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Uu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Uu(t,!0,n,null,i);break;case"together":Uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bu(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),As|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gu(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $u(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yu(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $u(t),null;case 1:case 17:return Lo(t.type)&&Do(),$u(t),null;case 3:return r=t.stateNode,Xi(),ko(Io),ko(Co),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(al(ai),ai=null))),ju(e,t),$u(t),null;case 5:Zi(t);var o=Qi(Wi.current);if(n=t.type,null!==e&&null!=t.stateNode)Lu(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return $u(t),null}if(e=Qi($i.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(o=0;o<Fr.length;o++)Vr(Fr[o],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":K(r,a),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Vr("invalid",r);break;case"textarea":oe(r,a),Vr("invalid",r)}for(var s in ge(n,a),o=null,a)if(a.hasOwnProperty(s)){var l=a[s];"children"===s?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",""+l]):u.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Vr("scroll",r)}switch(n){case"input":$(r),Z(r,a,!0);break;case"textarea":$(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Nu(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),o=r;break;case"iframe":case"object":case"embed":Vr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fr.length;o++)Vr(Fr[o],e);o=r;break;case"source":Vr("error",e),o=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),o=r;break;case"details":Vr("toggle",e),o=r;break;case"input":K(e,r),o=Q(e,r),Vr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=R({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Vr("invalid",e)}for(a in ge(n,o),l=o)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Vr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $u(t),null;case 6:if(e&&null!=t.stateNode)Du(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Wi.current),Qi($i.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return $u(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))di(),hi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$u(t),a=!1}else null!==ai&&(al(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ds&&(Ds=3):ml())),null!==t.updateQueue&&(t.flags|=4),$u(t),null);case 4:return Xi(),ju(e,t),null===e&&qr(t.stateNode.containerInfo),$u(t),null;case 10:return Ti(t.type._context),$u(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return $u(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)Gu(a,!1);else{if(0!==Ds||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Gu(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>qs&&(t.flags|=128,r=!0,Gu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return $u(t),null}else 2*Xe()-a.renderingStartTime>qs&&1073741824!==n&&(t.flags|=128,r=!0,Gu(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Po(ea,r?1&n|2:1&n),t):($u(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&js)&&($u(t),6&t.subtreeFlags&&(t.flags|=8192)):$u(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Wu(e,t){switch(ni(t),t.tag){case 1:return Lo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),ko(Io),ko(Co),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Xi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Nu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ju=function(){},Lu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi($i.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=R({},o,{value:void 0}),r=R({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(u.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(u.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Vr("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Du=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qu=!1,Ku=!1,Xu="function"==typeof WeakSet?WeakSet:Set,Ju=null;function Zu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){El(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){El(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[yo],delete t[vo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ls(e,t,n),e=e.sibling;null!==e;)ls(e,t,n),e=e.sibling}var cs=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)ds(e,t,n),n=n.sibling}function ds(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ku||Zu(n,t);case 6:var r=cs,o=fs;cs=null,ps(e,t,n),fs=o,null!==(cs=r)&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),qt(e)):so(cs,n.stateNode));break;case 4:r=cs,o=fs,cs=n.stateNode.containerInfo,fs=!0,ps(e,t,n),cs=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Ku&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&es(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Ku&&(Zu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){El(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Ku=(r=Ku)||null!==n.memoizedState,ps(e,t,n),Ku=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xu),t.forEach((function(t){var r=Tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,u=t,s=u;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,fs=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===cs)throw Error(i(160));ds(a,u,o),cs=null,fs=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){El(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ys(t,e),t=t.sibling}function ys(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){El(e,e.return,t)}try{ns(5,e,e.return)}catch(t){El(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return);break;case 5:if(ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){El(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,u=null!==n?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&X(o,a),be(s,u);var c=be(s,a);for(u=0;u<l.length;u+=2){var f=l[u],p=l[u+1];"style"===f?ye(o,p):"dangerouslySetInnerHTML"===f?fe(o,p):"children"===f?pe(o,p):b(o,f,p,c)}switch(s){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){El(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){El(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(t){El(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Us=Xe())),4&r&&hs(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ku=(c=Ku)||f,ms(t,e),Ku=c):ms(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Ju=e,f=e.child;null!==f;){for(p=Ju=f;null!==Ju;){switch(h=(d=Ju).child,d.tag){case 0:case 11:case 14:case 15:ns(4,d,d.return);break;case 1:Zu(d,d.return);var m=d.stateNode;if("function"==typeof m.componentWillUnmount){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){El(r,n,e)}}break;case 5:Zu(d,d.return);break;case 22:if(null!==d.memoizedState){_s(p);continue}}null!==h?(h.return=d,Ju=h):_s(p)}f=f.sibling}e:for(f=null,p=e;;){if(5===p.tag){if(null===f){f=p;try{o=p.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=p.stateNode,u=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=me("display",u))}catch(t){El(e,e.return,t)}}}else if(6===p.tag){if(null===f)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){El(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ms(t,e),vs(e),4&r&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ls(e,us(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,us(e),a);break;default:throw Error(i(161))}}catch(t){El(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Ju=e,bs(e,t,n)}function bs(e,t,n){for(var r=!!(1&e.mode);null!==Ju;){var o=Ju,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qu;if(!a){var u=o.alternate,s=null!==u&&null!==u.memoizedState||Ku;u=Qu;var l=Ku;if(Qu=a,(Ku=s)&&!l)for(Ju=o;null!==Ju;)s=(a=Ju).child,22===a.tag&&null!==a.memoizedState?Ss(o):null!==s?(s.return=a,Ju=s):Ss(o);for(;null!==i;)Ju=i,bs(i,t,n),i=i.sibling;Ju=o,Qu=u,Ku=l}ws(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Ju=i):ws(e)}}function ws(e){for(;null!==Ju;){var t=Ju;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ku||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ku)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nu(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var u=t.updateQueue;if(null!==u){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,u,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var p=f.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(i(163))}Ku||512&t.flags&&os(t)}catch(e){El(t,t.return,e)}}if(t===e){Ju=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ju=n;break}Ju=t.return}}function _s(e){for(;null!==Ju;){var t=Ju;if(t===e){Ju=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ju=n;break}Ju=t.return}}function Ss(e){for(;null!==Ju;){var t=Ju;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){El(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){El(t,o,e)}}var i=t.return;try{os(t)}catch(e){El(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){El(t,a,e)}}}catch(e){El(t,t.return,e)}if(t===e){Ju=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Ju=u;break}Ju=t.return}}var xs,Es=Math.ceil,Os=w.ReactCurrentDispatcher,ks=w.ReactCurrentOwner,Ps=w.ReactCurrentBatchConfig,Ts=0,Cs=null,Is=null,Ns=0,js=0,Ls=Oo(0),Ds=0,Fs=null,As=0,Rs=0,Ms=0,Vs=null,zs=null,Us=0,qs=1/0,Bs=null,Hs=!1,Gs=null,$s=null,Ys=!1,Ws=null,Qs=0,Ks=0,Xs=null,Js=-1,Zs=0;function el(){return 6&Ts?Xe():-1!==Js?Js:Js=Xe()}function tl(e){return 1&e.mode?2&Ts&&0!==Ns?Ns&-Ns:null!==yi.transition?(0===Zs&&(Zs=mt()),Zs):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function nl(e,t,n,r){if(50<Ks)throw Ks=0,Xs=null,Error(i(185));vt(e,n,r),2&Ts&&e===Cs||(e===Cs&&(!(2&Ts)&&(Rs|=n),4===Ds&&ul(e,Ns)),rl(e,r),1===n&&0===Ts&&!(1&t.mode)&&(qs=Xe()+500,zo&&Bo()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),u=1<<a,s=o[a];-1===s?u&n&&!(u&r)||(o[a]=dt(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=pt(e,e===Cs?Ns:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){zo=!0,qo(e)}(sl.bind(null,e)):qo(sl.bind(null,e)),ao((function(){!(6&Ts)&&Bo()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Cl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Js=-1,Zs=0,6&Ts)throw Error(i(327));var n=e.callbackNode;if(Sl()&&e.callbackNode!==n)return null;var r=pt(e,e===Cs?Ns:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var o=Ts;Ts|=2;var a=hl();for(Cs===e&&Ns===t||(Bs=null,qs=Xe()+500,pl(e,t));;)try{gl();break}catch(t){dl(e,t)}Pi(),Os.current=a,Ts=o,null!==Is?t=0:(Cs=null,Ns=0,t=Ds)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=il(e,o)),1===t)throw n=Fs,pl(e,0),ul(e,r),rl(e,Xe()),n;if(6===t)ul(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ur(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=yl(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=il(e,a))),1!==t)))throw n=Fs,pl(e,0),ul(e,r),rl(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:_l(e,zs,Bs);break;case 3:if(ul(e,r),(130023424&r)===r&&10<(t=Us+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(_l.bind(null,e,zs,Bs),t);break}_l(e,zs,Bs);break;case 4:if(ul(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-at(r);a=1<<u,(u=t[u])>o&&(o=u),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)){e.timeoutHandle=ro(_l.bind(null,e,zs,Bs),r);break}_l(e,zs,Bs);break;default:throw Error(i(329))}}}return rl(e,Xe()),e.callbackNode===n?ol.bind(null,e):null}function il(e,t){var n=Vs;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=yl(e,t))&&(t=zs,zs=n,null!==t&&al(t)),e}function al(e){null===zs?zs=e:zs.push.apply(zs,e)}function ul(e,t){for(t&=~Ms,t&=~Rs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sl(e){if(6&Ts)throw Error(i(327));Sl();var t=pt(e,0);if(!(1&t))return rl(e,Xe()),null;var n=yl(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Fs,pl(e,0),ul(e,t),rl(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,zs,Bs),rl(e,Xe()),null}function ll(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(qs=Xe()+500,zo&&Bo())}}function cl(e){null!==Ws&&0===Ws.tag&&!(6&Ts)&&Sl();var t=Ts;Ts|=1;var n=Ps.transition,r=bt;try{if(Ps.transition=null,bt=1,e)return e()}finally{bt=r,Ps.transition=n,!(6&(Ts=t))&&Bo()}}function fl(){js=Ls.current,ko(Ls)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Xi(),ko(Io),ko(Co),ra();break;case 5:Zi(r);break;case 4:Xi();break;case 13:case 19:ko(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Cs=e,Is=e=Ll(e.current,null),Ns=js=t,Ds=0,Fs=null,Ms=Rs=As=0,zs=Vs=null,null!==ji){for(t=0;t<ji.length;t++)if(null!==(r=(n=ji[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}ji=null}return e}function dl(e,t){for(;;){var n=Is;try{if(Pi(),oa.current=Ja,ca){for(var r=ua.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,la=sa=ua=null,fa=!1,pa=0,ks.current=null,null===n||null===n.return){Ds=1,Fs=t,Is=null;break}e:{var a=e,u=n.return,s=n,l=t;if(t=Ns,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,f=s,p=f.tag;if(!(1&f.mode||0!==p&&11!==p&&15!==p)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=yu(u);if(null!==h){h.flags&=-257,vu(h,u,s,0,t),1&h.mode&&mu(a,c,t),l=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(!(1&t)){mu(a,c,t),ml();break e}l=Error(i(426))}else if(ii&&1&s.mode){var v=yu(u);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vu(v,u,s,0,t),mi(lu(l,s));break e}}a=l=lu(l,s),4!==Ds&&(Ds=2),null===Vs?Vs=[a]:Vs.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,du(0,l,t));break e;case 1:s=l;var g=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==$s&&$s.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hu(a,s,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(e){t=e,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function hl(){var e=Os.current;return Os.current=Ja,null===e?Ja:e}function ml(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===Cs||!(268435455&As)&&!(268435455&Rs)||ul(Cs,Ns)}function yl(e,t){var n=Ts;Ts|=2;var r=hl();for(Cs===e&&Ns===t||(Bs=null,pl(e,t));;)try{vl();break}catch(t){dl(e,t)}if(Pi(),Ts=n,Os.current=r,null!==Is)throw Error(i(261));return Cs=null,Ns=0,Ds}function vl(){for(;null!==Is;)bl(Is)}function gl(){for(;null!==Is&&!Qe();)bl(Is)}function bl(e){var t=xs(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?wl(e):Is=t,ks.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Wu(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return Ds=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yu(n,t,js)))return void(Is=n);if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ds&&(Ds=5)}function _l(e,t,n){var r=bt,o=Ps.transition;try{Ps.transition=null,bt=1,function(e,t,n,r){do{Sl()}while(null!==Ws);if(6&Ts)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Cs&&(Is=Cs=null,Ns=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ys||(Ys=!0,Cl(tt,(function(){return Sl(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ps.transition,Ps.transition=null;var u=bt;bt=1;var s=Ts;Ts|=4,ks.current=null,function(e,t){if(eo=Ht,dr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var u=0,s=-1,l=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(s=u+o),p!==a||0!==r&&3!==p.nodeType||(l=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(h=p.firstChild);)d=p,p=h;for(;;){if(p===e)break t;if(d===n&&++c===o&&(s=u),d===a&&++f===r&&(l=u),null!==(h=p.nextSibling))break;d=(p=d).parentNode}p=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Ju=t;null!==Ju;)if(e=(t=Ju).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ju=e;else for(;null!==Ju;){t=Ju;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:nu(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){El(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ju=e;break}Ju=t.return}m=ts,ts=!1}(e,n),ys(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,gs(n,e,o),Ke(),Ts=s,bt=u,Ps.transition=a}else e.current=n;if(Ys&&(Ys=!1,Ws=e,Qs=o),0===(a=e.pendingLanes)&&($s=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rl(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hs)throw Hs=!1,e=Gs,Gs=null,e;!!(1&Qs)&&0!==e.tag&&Sl(),1&(a=e.pendingLanes)?e===Xs?Ks++:(Ks=0,Xs=e):Ks=0,Bo()}(e,t,n,r)}finally{Ps.transition=o,bt=r}return null}function Sl(){if(null!==Ws){var e=wt(Qs),t=Ps.transition,n=bt;try{if(Ps.transition=null,bt=16>e?16:e,null===Ws)var r=!1;else{if(e=Ws,Ws=null,Qs=0,6&Ts)throw Error(i(331));var o=Ts;for(Ts|=4,Ju=e.current;null!==Ju;){var a=Ju,u=a.child;if(16&Ju.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Ju=c;null!==Ju;){var f=Ju;switch(f.tag){case 0:case 11:case 15:ns(8,f,a)}var p=f.child;if(null!==p)p.return=f,Ju=p;else for(;null!==Ju;){var d=(f=Ju).sibling,h=f.return;if(is(f),f===c){Ju=null;break}if(null!==d){d.return=h,Ju=d;break}Ju=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Ju=a}}if(2064&a.subtreeFlags&&null!==u)u.return=a,Ju=u;else e:for(;null!==Ju;){if(2048&(a=Ju).flags)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Ju=g;break e}Ju=a.return}}var b=e.current;for(Ju=b;null!==Ju;){var w=(u=Ju).child;if(2064&u.subtreeFlags&&null!==w)w.return=u,Ju=w;else e:for(u=b;null!==Ju;){if(2048&(s=Ju).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){El(s,s.return,e)}if(s===u){Ju=null;break e}var _=s.sibling;if(null!==_){_.return=s.return,Ju=_;break e}Ju=s.return}}if(Ts=o,Bo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Ps.transition=t}}return!1}function xl(e,t,n){e=zi(e,t=du(0,t=lu(n,t),1),1),t=el(),null!==e&&(vt(e,1,t),rl(e,t))}function El(e,t,n){if(3===e.tag)xl(e,e,n);else for(;null!==t;){if(3===t.tag){xl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){t=zi(t,e=hu(t,e=lu(n,e),1),1),e=el(),null!==t&&(vt(t,1,e),rl(t,e));break}}t=t.return}}function Ol(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ns&n)===n&&(4===Ds||3===Ds&&(130023424&Ns)===Ns&&500>Xe()-Us?pl(e,0):Ms|=n),rl(e,t)}function kl(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=el();null!==(e=Fi(e,t))&&(vt(e,t,n),rl(e,n))}function Pl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kl(e,n)}function Tl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kl(e,n)}function Cl(e,t){return Ye(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(e,t,n,r){return new Il(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dl(e,t,n,r,o,a){var u=2;if(r=e,"function"==typeof e)jl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case x:return Fl(n.children,o,a,t);case E:u=8,o|=8;break;case O:return(e=Nl(12,n,t,2|o)).elementType=O,e.lanes=a,e;case C:return(e=Nl(13,n,t,o)).elementType=C,e.lanes=a,e;case I:return(e=Nl(19,n,t,o)).elementType=I,e.lanes=a,e;case L:return Al(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:u=10;break e;case P:u=9;break e;case T:u=11;break e;case N:u=14;break e;case j:u=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nl(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Fl(e,t,n,r){return(e=Nl(7,e,r,t)).lanes=n,e}function Al(e,t,n,r){return(e=Nl(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Rl(e,t,n){return(e=Nl(6,e,null,t)).lanes=n,e}function Ml(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,o,i,a,u,s){return e=new Vl(e,t,n,u,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nl(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Ul(e){if(!e)return To;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Ao(e,n,t)}return t}function ql(e,t,n,r,o,i,a,u,s){return(e=zl(n,r,!0,e,0,i,0,u,s)).context=Ul(null),n=e.current,(i=Vi(r=el(),o=tl(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,vt(e,o,r),rl(e,r),e}function Bl(e,t,n,r){var o=t.current,i=el(),a=tl(o);return n=Ul(n),null===t.context?t.context=n:t.pendingContext=n,(t=Vi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(nl(e,o,a,i),Ui(e,o,a)),a}function Hl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $l(e,t){Gl(e,t),(e=e.alternate)&&Gl(e,t)}xs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)bu=!0;else{if(!(e.lanes&n||128&t.flags))return bu=!1,function(e,t,n){switch(t.tag){case 3:Cu(t),hi();break;case 5:Ji(t);break;case 1:Lo(t.type)&&Ro(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?Ru(e,t,n):(Po(ea,1&ea.current),null!==(e=Hu(e,t,n))?e.sibling:null);Po(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Eu(e,t,n)}return Hu(e,t,n)}(e,t,n);bu=!!(131072&e.flags)}else bu=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bu(e,t),e=t.pendingProps;var o=jo(t,Co.current);Ii(t,n),o=ya(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(a=!0,Ro(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ri(t),o.updater=ou,t.stateNode=o,o._reactInternals=t,su(t,r,e,n),t=Tu(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wu(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return jl(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(r),e=nu(r,e),o){case 0:t=ku(null,t,r,e,n);break e;case 1:t=Pu(null,t,r,e,n);break e;case 11:t=_u(null,t,r,e,n);break e;case 14:t=Su(null,t,r,nu(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,ku(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 1:return r=t.type,o=t.pendingProps,Pu(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 3:e:{if(Cu(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Mi(e,t),Bi(t,r,null,n);var u=t.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Iu(e,t,r,n,o=lu(Error(i(423)),t));break e}if(r!==o){t=Iu(e,t,r,n,o=lu(Error(i(424)),t));break e}for(oi=lo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hu(e,t,n);break e}wu(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,no(r,o)?u=null:null!==a&&no(r,a)&&(t.flags|=32),Ou(e,t),wu(e,t,u,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ru(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):wu(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_u(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 7:return wu(e,t,t.pendingProps,n),t.child;case 8:case 12:return wu(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,u=o.value,Po(xi,r._currentValue),r._currentValue=u,null!==a)if(ur(a.value,u)){if(a.children===o.children&&!Io.current){t=Hu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){u=a.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Vi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ci(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===a.tag)u=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(i(341));u.lanes|=n,null!==(s=u.alternate)&&(s.lanes|=n),Ci(u,n,t),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}wu(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ii(t,n),r=r(o=Ni(o)),t.flags|=1,wu(e,t,r,n),t.child;case 14:return o=nu(r=t.type,t.pendingProps),Su(e,t,r,o=nu(r.type,o),n);case 15:return xu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nu(r,o),Bu(e,t),t.tag=1,Lo(r)?(e=!0,Ro(t)):e=!1,Ii(t,n),au(t,r,o),su(t,r,o,n),Tu(null,t,r,!0,e,n);case 19:return qu(e,t,n);case 22:return Eu(e,t,n)}throw Error(i(156,t.tag))};var Yl="function"==typeof reportError?reportError:function(e){console.error(e)};function Wl(e){this._internalRoot=e}function Ql(e){this._internalRoot=e}function Kl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function Zl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var u=o;o=function(){var e=Hl(a);u.call(e)}}Bl(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Hl(a);i.call(e)}}var a=ql(t,r,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),cl(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var u=r;r=function(){var e=Hl(s);u.call(e)}}var s=zl(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=s,e[mo]=s.current,qr(8===e.nodeType?e.parentNode:e),cl((function(){Bl(t,s,n,r)})),s}(n,t,e,o,r);return Hl(a)}Ql.prototype.render=Wl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Bl(e,t,null,null)},Ql.prototype.unmount=Wl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Bl(null,e,null,null)})),t[mo]=null}},Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Rt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),rl(t,Xe()),!(6&Ts)&&(qs=Xe()+500,Bo()))}break;case 13:cl((function(){var t=Fi(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),$l(e,1)}},St=function(e){if(13===e.tag){var t=Fi(e,134217728);null!==t&&nl(t,e,134217728,el()),$l(e,134217728)}},xt=function(e){if(13===e.tag){var t=tl(e),n=Fi(e,t);null!==n&&nl(n,e,t,el()),$l(e,t)}},Et=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));Y(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=ll,Ce=cl;var ec={usingClientEntryPoint:!1,Events:[wo,_o,So,ke,Pe,ll]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kl(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kl(e))throw Error(i(299));var n=!1,r="",o=Yl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zl(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Wl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kl(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",u=Yl;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),t=ql(t,null,e,1,null!=n?n:null,o,0,a,u),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ql(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(i(40));return!!e._reactRootContainer&&(cl((function(){Zl(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zl(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case y:case m:case s:return e;default:return t}}case o:return t}}}function S(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||_(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:c,props:i,_owner:u.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,i={},a=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:u,props:i,_owner:x.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+T(s,0):i,_(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),C(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",_(e))for(var l=0;l<e.length;l++){var c=i+T(u=e[l],l);s+=C(u,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=C(u=u.value,t,o,c=i+T(u,l++),a);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},L={transition:null},D={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:L,ReactCurrentOwner:x};function F(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=F,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)S.call(t,l)&&!E.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:u}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=F,t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.3.1"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var u=2*(r+1)-1,s=e[u],l=u+1,c=e[l];if(0>i(s,n))l<o&&0>i(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(l<o&&0>i(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var l=[],c=[],f=1,p=null,d=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function _(e){if(y=!1,w(e),!m)if(null!==r(l))m=!0,L(S);else{var t=r(c);null!==t&&D(_,t.startTime-e)}}function S(e,n){m=!1,y&&(y=!1,g(k),k=-1),h=!0;var i=d;try{for(w(n),p=r(l);null!==p&&(!(p.expirationTime>n)||e&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var u=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?p.callback=u:p===r(l)&&o(l),w(n)}else o(l);p=r(l)}if(null!==p)var s=!0;else{var f=r(c);null!==f&&D(_,f.startTime-n),s=!1}return s}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,O=null,k=-1,P=5,T=-1;function C(){return!(t.unstable_now()-T<P)}function I(){if(null!==O){var e=t.unstable_now();T=e;var n=!0;try{n=O(!0,e)}finally{n?x():(E=!1,O=null)}}else E=!1}if("function"==typeof b)x=function(){b(I)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,j=N.port2;N.port1.onmessage=I,x=function(){j.postMessage(null)}}else x=function(){v(I,0)};function L(e){O=e,E||(E=!0,x())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(l)&&e===r(c)&&(y?(g(k),k=-1):y=!0,D(_,i-a))):(e.sortIndex=u,n(l,e),m||h||(m=!0,L(S))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},7983:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,o={}){if(o=Object.assign({},r,o),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return e;if(o.hex&&t.test(i))return Number.parseInt(i,16);{const t=n.exec(i);if(t){const n=t[1],r=t[2];let u=(a=t[3])&&-1!==a.indexOf(".")?("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1)),a):a;const s=t[4]||t[6];if(!o.leadingZeros&&r.length>0&&n&&"."!==i[2])return e;if(!o.leadingZeros&&r.length>0&&!n&&"."!==i[1])return e;{const t=Number(i),a=""+t;return-1!==a.search(/[eE]/)||s?o.eNotation?t:e:-1!==i.indexOf(".")?"0"===a&&""===u||a===u||n&&a==="-"+u?t:e:r?u===a||n+u===a?t:e:i===a||i===n+a?t:e}}return e}var a}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(4848),t=o(7414),n=o.n(t);function r(e){return function(t,n){return n.mode===e}}var i=r("onBoot"),a=r("renderPage"),u=r("renderConfigScreen"),s=r("renderModal"),l=r("renderItemFormSidebarPanel"),c=r("renderItemFormSidebar"),f=r("renderItemFormOutlet"),p=r("renderFieldExtension"),d=r("renderManualFieldExtensionConfigScreen"),h=r("renderAssetSource"),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},y=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function v(e){return function(t,n){if(!e)return{};for(var r={},o=0,i=t;o<i.length;o++){var a=i[o],u=n.itemTypes[a.relationships.item_type.data.id];r[a.id]=e(a,m(m({},n),{itemType:u}))}return r}}var g=function(e){var t=null,n=function(n){var r=void 0===n?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,function(){for(var e=document.querySelectorAll("body *"),t=0,n=0;n<e.length;n++)t=Math.max(e[n].getBoundingClientRect().bottom,t);return t}()):n;r!==t&&(e.setHeight(r),t=r)},r=null,o=null,i=function(){return n()};return{updateHeight:n,startAutoResizer:function(){n(),r||(r=new ResizeObserver(i)).observe(document.documentElement),o||(o=new MutationObserver(i)).observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},stopAutoResizer:function(){r&&(r.disconnect(),r=null),o&&(o.disconnect(),o=null)}}},b=o(6540),w=o.t(b,2),_=o(6942),S=o.n(_),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)};function E(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}function O(e,t){return void 0===t&&(t=!1),x({padding:t?void 0:e.bodyPadding.map((function(e){return"".concat(e,"px")})).join(" ")},Object.fromEntries(Object.entries(e.theme).flatMap((function(e){var t,n=e[0],r=e[1];return[["--".concat(E(n)),r],["--".concat(E("".concat(n,"RgbComponents"))),(null===(t=r.match(/rgb\((\d+, \d+, \d+)\)/))||void 0===t?void 0:t[1])||void 0]]}))))}const k=JSON.parse('{"v":"_themeVariables_ovgoa_1","J":"_canvas_ovgoa_68"}');var P=(0,b.createContext)(null);function T(e){var t=e.ctx,n=e.children,r=e.noAutoResizer,o=t.mode;return(0,b.useEffect)((function(){if(!["renderPage","renderItemFormSidebar"].includes(o)&&!r){var e=t;return e.startAutoResizer(),function(){e.stopAutoResizer()}}}),[o,r]),b.createElement(P.Provider,{value:t},b.createElement("div",{className:S()(k.v,k.J),style:O(t)},n))}const C=JSON.parse('{"button":"_button_474wk_1","disabled":"_disabled_474wk_30","buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113","fullWidth":"_fullWidth_474wk_118","button__leftIcon":"_button__leftIcon_474wk_124","button__rightIcon":"_button__rightIcon_474wk_125"}');function I(e){var t,n=e.children,r=e.className,o=e.disabled,i=e.buttonType,a=void 0===i?"muted":i,u=e.buttonSize,s=void 0===u?"m":u,l=e.fullWidth,c=e.onClick,f=e.style,p=e.leftIcon,d=e.rightIcon,h=e.type,m=void 0===h?"button":h;return b.createElement("button",{type:m,className:S()(C.button,C["buttonType-".concat(a)],C["buttonSize-".concat(s)],(t={},t[C.disabled]=o,t[C.fullWidth]=l,t),r),disabled:o,onClick:c,style:f},p&&b.createElement("span",{className:C.button__leftIcon},p),n&&b.createElement("span",null,n),d&&b.createElement("span",{className:C.button__rightIcon},d))}const N=JSON.parse('{"HJ":"_Spinner--inline_oumod_1","Gk":"_Spinner--centered_oumod_7","FY":"_Spinner__bar_oumod_13"}');var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j.apply(this,arguments)};function L(e){for(var t,n=e.size,r=void 0===n?32:n,o=e.placement,i=void 0===o?"inline":o,a=e.style,u=void 0===a?{}:a,s=[],l=0;l<12;l+=1){var c={};c.animationDelay="".concat((l-12)/10,"s"),c.transform="rotate(".concat(30*l,"deg) translate(146%)"),s.push(b.createElement("div",{style:c,className:N.FY,key:l}))}var f={width:.5*r,height:.5*r};return"inline"===i&&(f.marginLeft=.5*r,f.transform="translateY(33%)"),b.createElement("div",{className:S()((t={},t[N.HJ]="inline"===i,t[N.Gk]="centered"===i,t)),style:j(j({},u),f)},s)}const D=JSON.parse('{"Form":"_Form_5qspp_1","Form__item":"_Form__item_5qspp_5","Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"}');var F=function(){return F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},F.apply(this,arguments)},A=function(e){var t=e.children,n=e.className,r=e.onSubmit,o=e.spacing,i=void 0===o?"default":o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","onSubmit","spacing"]),u=S()(D.Form,n),s=S()(D.Form__item,D["Form__item--".concat(i)]),l=(0,b.useCallback)((function(e){e.preventDefault(),r&&r(e)}),[r]);return b.createElement("form",F({className:u,onSubmit:l},a),b.Children.map(t,(function(e){return e?b.createElement("div",{className:s},e):null})))};const R=JSON.parse('{"M":"_FieldGroup_uz9ju_1","d":"_FieldGroup__item_uz9ju_5"}');var M=function(){return M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M.apply(this,arguments)},V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function z(e){var t=e.children,n=e.className,r=V(e,["children","className"]),o=S()(R.M,n);return b.createElement("div",M({},r,{className:o}),b.Children.map(t,(function(e){return b.createElement("div",{className:R.d},e)})))}const U=JSON.parse('{"zw":"_formLabel_tcjrv_1","w9":"_formLabel__code_tcjrv_8","bL":"_formLabel--error_tcjrv_14","Hn":"_formLabel__label_tcjrv_18","aK":"_formLabel__required_tcjrv_30"}');var q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},q.apply(this,arguments)},B=function(e){var t,n=e.children,r=e.className,o=e.htmlFor,i=e.code,a=e.required,u=void 0!==a&&a,s=e.error,l=void 0!==s&&s,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","htmlFor","code","required","error"]),f=S()(U.zw,r,((t={})[U.bL]=l,t));return b.createElement("label",q({className:f,htmlFor:o},c),b.createElement("span",{className:U.Hn},n,u&&b.createElement("span",{className:U.aK},"*")),i&&b.createElement("span",{className:U.w9},i))};const H=JSON.parse('{"$":"_fieldError_qi0xk_1"}');function G(e){var t=e.children;return b.createElement("div",{className:H.$},t)}const $=JSON.parse('{"s":"_fieldHint_1avon_1"}');function Y(e){var t=e.children;return b.createElement("div",{className:$.s},t)}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)};function Q(e){var t=e.id,n=e.label,r=e.hint,o=e.error,i=e.required,a=e.formLabelProps,u=e.children;return b.createElement(b.Fragment,null,b.createElement(B,W({},a,{htmlFor:t,required:i,error:!!o}),n),u,o&&b.createElement(G,null,o),r&&b.createElement(Y,null,r))}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 X(e){var t=function(e){if("object"!=K(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==K(t)?t:t+""}function J(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e,t){if(e){if("string"==typeof e)return te(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)?te(e,t):void 0}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||ne(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 oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ie=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(null,arguments)}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X(r.key),r)}}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ce=function(){return!!e})()}function fe(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ne(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.")}()}var pe=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),de=Math.abs,he=String.fromCharCode,me=Object.assign;function ye(e){return e.trim()}function ve(e,t,n){return e.replace(t,n)}function ge(e,t){return e.indexOf(t)}function be(e,t){return 0|e.charCodeAt(t)}function we(e,t,n){return e.slice(t,n)}function _e(e){return e.length}function Se(e){return e.length}function xe(e,t){return t.push(e),e}var Ee=1,Oe=1,ke=0,Pe=0,Te=0,Ce="";function Ie(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ee,column:Oe,length:a,return:""}}function Ne(e,t){return me(Ie("",null,null,"",null,null,0),e,{length:-e.length},t)}function je(){return Te=Pe>0?be(Ce,--Pe):0,Oe--,10===Te&&(Oe=1,Ee--),Te}function Le(){return Te=Pe<ke?be(Ce,Pe++):0,Oe++,10===Te&&(Oe=1,Ee++),Te}function De(){return be(Ce,Pe)}function Fe(){return Pe}function Ae(e,t){return we(Ce,e,t)}function Re(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Me(e){return Ee=Oe=1,ke=_e(Ce=e),Pe=0,[]}function Ve(e){return Ce="",e}function ze(e){return ye(Ae(Pe-1,Be(91===e?e+2:40===e?e+1:e)))}function Ue(e){for(;(Te=De())&&Te<33;)Le();return Re(e)>2||Re(Te)>3?"":" "}function qe(e,t){for(;--t&&Le()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return Ae(e,Fe()+(t<6&&32==De()&&32==Le()))}function Be(e){for(;Le();)switch(Te){case e:return Pe;case 34:case 39:34!==e&&39!==e&&Be(Te);break;case 40:41===e&&Be(e);break;case 92:Le()}return Pe}function He(e,t){for(;Le()&&e+Te!==57&&(e+Te!==84||47!==De()););return"/*"+Ae(t,Pe-1)+"*"+he(47===e?e:Le())}function Ge(e){for(;!Re(De());)Le();return Ae(e,Pe)}var $e="-ms-",Ye="-moz-",We="-webkit-",Qe="comm",Ke="rule",Xe="decl",Je="@keyframes";function Ze(e,t){for(var n="",r=Se(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function et(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xe:return e.return=e.return||e.value;case Qe:return"";case Je:return e.return=e.value+"{"+Ze(e.children,r)+"}";case Ke:e.value=e.props.join(",")}return _e(n=Ze(e.children,r))?e.return=e.value+"{"+n+"}":""}function tt(e){return Ve(nt("",null,null,null,[""],e=Me(e),0,[0],e))}function nt(e,t,n,r,o,i,a,u,s){for(var l=0,c=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,g=0,b="",w=o,_=i,S=r,x=b;y;)switch(h=g,g=Le()){case 40:if(108!=h&&58==be(x,f-1)){-1!=ge(x+=ve(ze(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=ze(g);break;case 9:case 10:case 13:case 32:x+=Ue(h);break;case 92:x+=qe(Fe()-1,7);continue;case 47:switch(De()){case 42:case 47:xe(ot(He(Le(),Fe()),t,n),s);break;default:x+="/"}break;case 123*m:u[l++]=_e(x)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:-1==v&&(x=ve(x,/\f/g,"")),d>0&&_e(x)-f&&xe(d>32?it(x+";",r,n,f-1):it(ve(x," ","")+";",r,n,f-2),s);break;case 59:x+=";";default:if(xe(S=rt(x,t,n,l,c,o,u,b,w=[],_=[],f),i),123===g)if(0===c)nt(x,t,S,S,w,i,f,u,_);else switch(99===p&&110===be(x,3)?100:p){case 100:case 108:case 109:case 115:nt(e,S,S,r&&xe(rt(e,S,S,0,0,o,u,b,o,w=[],f),_),o,_,f,u,r?w:_);break;default:nt(x,S,S,S,[""],_,0,u,_)}}l=c=d=0,m=v=1,b=x="",f=a;break;case 58:f=1+_e(x),d=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==je())continue;switch(x+=he(g),g*m){case 38:v=c>0?1:(x+="\f",-1);break;case 44:u[l++]=(_e(x)-1)*v,v=1;break;case 64:45===De()&&(x+=ze(Le())),p=De(),c=f=_e(b=x+=Ge(Fe())),g++;break;case 45:45===h&&2==_e(x)&&(m=0)}}return i}function rt(e,t,n,r,o,i,a,u,s,l,c){for(var f=o-1,p=0===o?i:[""],d=Se(p),h=0,m=0,y=0;h<r;++h)for(var v=0,g=we(e,f+1,f=de(m=a[h])),b=e;v<d;++v)(b=ye(m>0?p[v]+" "+g:ve(g,/&\f/g,p[v])))&&(s[y++]=b);return Ie(e,t,n,0===o?Ke:u,s,l,c)}function ot(e,t,n){return Ie(e,t,n,Qe,he(Te),we(e,2,-2),0)}function it(e,t,n,r){return Ie(e,t,n,Xe,we(e,0,r),we(e,r+1,-1),r)}var at=function(e,t,n){for(var r=0,o=0;r=o,o=De(),38===r&&12===o&&(t[n]=1),!Re(o);)Le();return Ae(e,Pe)},ut=new WeakMap,st=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)||ut.get(n))&&!r){ut.set(e,!0);for(var o=[],i=function(e,t){return Ve(function(e,t){var n=-1,r=44;do{switch(Re(r)){case 0:38===r&&12===De()&&(t[n]=1),e[n]+=at(Pe-1,t,n);break;case 2:e[n]+=ze(r);break;case 4:if(44===r){e[++n]=58===De()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=he(r)}}while(r=Le());return e}(Me(e),t))}(t,o),a=n.props,u=0,s=0;u<i.length;u++)for(var l=0;l<a.length;l++,s++)e.props[s]=o[u]?i[u].replace(/&\f/g,a[l]):a[l]+" "+i[u]}}},lt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ct(e,t){switch(function(e,t){return 45^be(e,0)?(((t<<2^be(e,0))<<2^be(e,1))<<2^be(e,2))<<2^be(e,3):0}(e,t)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Ye+e+$e+e+e;case 6828:case 4268:return We+e+$e+e+e;case 6165:return We+e+$e+"flex-"+e+e;case 5187:return We+e+ve(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return We+e+$e+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return We+e+$e+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+$e+ve(e,"shrink","negative")+e;case 5292:return We+e+$e+ve(e,"basis","preferred-size")+e;case 6060:return We+"box-"+ve(e,"-grow","")+We+e+$e+ve(e,"grow","positive")+e;case 4554:return We+ve(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_e(e)-1-t>6)switch(be(e,t+1)){case 109:if(45!==be(e,t+4))break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Ye+(108==be(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ge(e,"stretch")?ct(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==be(e,t+1))break;case 6444:switch(be(e,_e(e)-3-(~ge(e,"!important")&&10))){case 107:return ve(e,":",":"+We)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(45===be(e,14)?"inline-":"")+"box$3$1"+We+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(be(e,t+11)){case 114:return We+e+$e+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+$e+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+$e+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+$e+e+e}return e}var ft=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xe:e.return=ct(e.value,e.length);break;case Je:return Ze([Ne(e,{value:ve(e.value,"@","@"+We)})],r);case Ke: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 Ze([Ne(e,{props:[ve(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ze([Ne(e,{props:[ve(t,/:(plac\w+)/,":"+We+"input-$1")]}),Ne(e,{props:[ve(t,/:(plac\w+)/,":-moz-$1")]}),Ne(e,{props:[ve(t,/:(plac\w+)/,$e+"input-$1")]})],r)}return""}))}}],pt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||ft,a={},u=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;u.push(e)}));var s,l,c,f,p=[et,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],d=(l=[st,lt].concat(i,p),c=Se(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,Ze(tt(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new pe({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(u),h},dt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ht={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var yt=!1,vt=/[A-Z]|^ms/g,gt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},wt=function(e){return null!=e&&"boolean"!=typeof e},_t=mt((function(e){return bt(e)?e:e.replace(vt,"-$&").toLowerCase()})),St=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(gt,(function(e,t,n){return Ot={name:t,styles:n,next:Ot},t}))}return 1===ht[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"},xt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Et(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ot={name:o.name,styles:o.styles,next:Ot},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ot={name:a.name,styles:a.styles,next:Ot},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Et(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var u=a;null!=t&&void 0!==t[u]?r+=i+"{"+t[u]+"}":wt(u)&&(r+=_t(i)+":"+St(i,u)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&yt)throw new Error(xt);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Et(e,t,a);switch(i){case"animation":case"animationName":r+=_t(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)wt(a[l])&&(r+=_t(i)+":"+St(i,a[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var u=Ot,s=n(e);return Ot=u,Et(e,t,s)}}var l=n;if(null==t)return l;var c=t[l];return void 0!==c?c:l}var Ot,kt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Pt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ot=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Et(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Et(n,t,e[a]),r&&(o+=i[a]);kt.lastIndex=0;for(var u,s="";null!==(u=kt.exec(o));)s+="-"+u[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:Ot}}var Tt=!!w.useInsertionEffect&&w.useInsertionEffect,Ct=Tt||function(e){return e()},It=(Tt||b.useLayoutEffect,b.createContext("undefined"!=typeof HTMLElement?pt({key:"css"}):null)),Nt=(It.Provider,function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(It);return e(t,r,n)}))}),jt=b.createContext({}),Lt={}.hasOwnProperty,Dt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ft=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return dt(t,n,r),Ct((function(){return function(e,t,n){dt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},At=Nt((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Dt],i=[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]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var u=Pt(i,void 0,b.useContext(jt));a+=t.key+"-"+u.name;var s={};for(var l in e)Lt.call(e,l)&&"css"!==l&&l!==Dt&&(s[l]=e[l]);return s.className=a,n&&(s.ref=n),b.createElement(b.Fragment,null,b.createElement(Ft,{cache:t,serialized:u,isStringTag:"string"==typeof o}),b.createElement(o,s))})),Rt=At,Mt=(o(4146),function(e,t){var n=arguments;if(null==t||!Lt.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Rt,o[1]=function(e,t){var n={};for(var r in t)Lt.call(t,r)&&(n[r]=t[r]);return n[Dt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return b.createElement.apply(null,o)});function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pt(t)}var zt=o(961);const Ut=Math.min,qt=Math.max,Bt=Math.round,Ht=Math.floor,Gt=e=>({x:e,y:e});function $t(e){return Qt(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wt(e){var t;return null==(t=(Qt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qt(e){return e instanceof Node||e instanceof Yt(e).Node}function Kt(e){return e instanceof Element||e instanceof Yt(e).Element}function Xt(e){return e instanceof HTMLElement||e instanceof Yt(e).HTMLElement}function Jt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot)}function Zt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=en(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function en(e){return Yt(e).getComputedStyle(e)}function tn(e){const t=function(e){if("html"===$t(e))return e;const t=e.assignedSlot||e.parentNode||Jt(e)&&e.host||Wt(e);return Jt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes($t(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&Zt(t)?t:tn(t)}function nn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=tn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Yt(o);return i?t.concat(a,a.visualViewport||[],Zt(o)?o:[],a.frameElement&&n?nn(a.frameElement):[]):t.concat(o,nn(o,[],n))}function rn(e){return Kt(e)?e:e.contextElement}function on(e){const t=rn(e);if(!Xt(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=en(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Bt(n)!==i||Bt(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}(t);let a=(i?Bt(n.width):n.width)/r,u=(i?Bt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const an=Gt(0);function un(e){const t=Yt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:an}function sn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=rn(e);let a=Gt(1);t&&(r?Kt(r)&&(a=on(r)):a=on(e));const u=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Yt(e))&&t}(i,n,r)?un(i):Gt(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const e=Yt(i),t=r&&Kt(r)?Yt(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=on(o),t=o.getBoundingClientRect(),r=en(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,f*=e.y,s+=i,l+=a,n=Yt(o),o=n.frameElement}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:f,x:s,y:l})}const ln=b.useLayoutEffect;var cn=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],fn=function(){};function pn(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function dn(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(pn(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var hn=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===K(e)&&null!==e?[e]:[];var t},mn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ee({},oe(e,cn))},yn=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function vn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gn(e){return vn(e)?window.pageYOffset:e.scrollTop}function bn(e,t){vn(e)?window.scrollTo(0,t):e.scrollTop=t}function wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fn,o=gn(e),i=t-o,a=0;!function t(){var u,s=i*((u=(u=a+=10)/n-1)*u*u+1)+o;bn(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function _n(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?bn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&bn(e,Math.max(t.offsetTop-o,0))}function Sn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var xn=!1,En={get passive(){return xn=!0}},On="undefined"!=typeof window?window:{};On.addEventListener&&On.removeEventListener&&(On.addEventListener("p",fn,En),On.removeEventListener("p",fn,!1));var kn=xn;function Pn(e){return null!=e}function Tn(e,t,n){return e?t:n}var Cn=["children","innerProps"],In=["children","innerProps"];var Nn,jn,Ln,Dn=function(e){return"auto"===e?"bottom":e},Fn=(0,b.createContext)(null),An=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,u=e.theme,s=((0,b.useContext)(Fn)||{}).setPortalPlacement,l=(0,b.useRef)(null),c=re((0,b.useState)(r),2),f=c[0],p=c[1],d=re((0,b.useState)(null),2),h=d[0],m=d[1],y=u.spacing.controlHeight;return ln((function(){var e=l.current;if(e){var t="fixed"===i,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,f=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,h=p.height,m=p.top,y=n.offsetParent.getBoundingClientRect().top,v=a||vn(c=s)?window.innerHeight:c.clientHeight,g=gn(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=y-w,S=v-m,x=_+g,E=f-g-m,O=d-v+g+b,k=g+m-w,P=160;switch(o){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&wn(s,O,P),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&S>=r)return i&&wn(s,O,P),{placement:"bottom",maxHeight:a?S-b:E-b};if("auto"===o||a){var T=t,C=a?_:x;return C>=r&&(T=Math.min(C-b-u,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&bn(s,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(x>=h&&!a)return i&&wn(s,k,P),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&_>=r){var I=t;return(!a&&x>=r||a&&_>=r)&&(I=a?_-w:x-w),i&&wn(s,k,P),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});p(u.maxHeight),m(u.placement),null==s||s(u.placement)}}),[r,o,i,a,n,s,y]),t({ref:l,placerProps:ee(ee({},e),{},{placement:h||Dn(o),maxHeight:f})})},Rn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ee({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Mn=Rn,Vn=Rn,zn=["size"],Un=["innerProps","isRtl","size"],qn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Bn=function(e){var t=e.size,n=oe(e,zn);return Mt("svg",ae({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qn},n))},Hn=function(e){return Mt(Bn,ae({size:20},e),Mt("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"}))},Gn=function(e){return Mt(Bn,ae({size:20},e),Mt("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"}))},$n=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ee({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Yn=$n,Wn=$n,Qn=function(){var e=Vt.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_"}}}(Nn||(jn=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ln||(Ln=jn.slice(0)),Nn=Object.freeze(Object.defineProperties(jn,{raw:{value:Object.freeze(Ln)}})))),Kn=function(e){var t=e.delay,n=e.offset;return Mt("span",{css:Vt({animation:"".concat(Qn," 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"},"","")})},Xn=["data"],Jn=["innerRef","isDisabled","isHidden","inputClassName"],Zn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},er={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ee({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Zn)},tr=function(e){return ee({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Zn)},nr=function(e){var t=e.children,n=e.innerProps;return Mt("div",n,t)},rr={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Mt(Hn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Mt("div",ae({ref:o},yn(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Mt(Gn,null))},DownChevron:Gn,CrossIcon:Hn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,c=e.selectProps;return Mt("div",ae({},yn(e,"group",{group:!0}),u),Mt(i,ae({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:o,cx:n}),s),Mt("div",null,t))},GroupHeading:function(e){var t=mn(e);t.data;var n=oe(t,Xn);return Mt("div",ae({},yn(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Mt("span",ae({},t,yn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=mn(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,u=r.inputClassName,s=oe(r,Jn);return Mt("div",ae({},yn(e,"input",{"input-container":!0}),{"data-value":n||""}),Mt("input",ae({className:t({input:!0},u),ref:o,style:tr(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=oe(e,Un);return Mt("div",ae({},yn(ee(ee({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Mt(Kn,{delay:0,offset:n}),Mt(Kn,{delay:160,offset:!0}),Mt(Kn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Mt("div",ae({},yn(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Mt("div",ae({},yn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,u=(0,b.useRef)(null),s=(0,b.useRef)(null),l=re((0,b.useState)(Dn(i)),2),c=l[0],f=l[1],p=(0,b.useMemo)((function(){return{setPortalPlacement:f}}),[]),d=re((0,b.useState)(null),2),h=d[0],m=d[1],y=(0,b.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[c]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,c,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);ln((function(){y()}),[y]);var v=(0,b.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&u.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=rn(e),c=o||i?[...l?nn(l):[],...nn(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=l&&u?function(e,t){let n,r=null;const o=Wt(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:f,height:p}=e.getBoundingClientRect();if(u||t(),!f||!p)return;const d={rootMargin:-Ht(c)+"px "+-Ht(o.clientWidth-(l+f))+"px "+-Ht(o.clientHeight-(c+p))+"px "+-Ht(l)+"px",threshold:qt(0,Ut(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...d,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,d)}r.observe(e)}(!0),i}(l,n):null;let p,d=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!s&&h.observe(l),h.observe(t));let m=s?sn(e):null;return s&&function t(){const r=sn(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}(r,u.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);ln((function(){v()}),[v]);var g=(0,b.useCallback)((function(e){u.current=e,v()}),[v]);if(!t&&"fixed"!==a||!h)return null;var w=Mt("div",ae({ref:g},yn(ee(ee({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Mt(Fn.Provider,{value:p},t?(0,zt.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=oe(e,In);return Mt("div",ae({},yn(ee(ee({},o),{},{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,o=oe(e,Cn);return Mt("div",ae({},yn(ee(ee({},o),{},{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,o=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,s=n.Container,l=n.Label,c=n.Remove;return Mt(s,{data:r,innerProps:ee(ee({},yn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},Mt(l,{data:r,innerProps:ee({},yn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),Mt(c,{data:r,innerProps:ee(ee({},yn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:nr,MultiValueLabel:nr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({role:"button"},n),t||Mt(Hn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Mt("div",ae({},yn(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Mt("div",ae({},yn(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Mt("div",ae({},yn(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Mt("div",ae({},yn(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,o=e.hasValue;return Mt("div",ae({},yn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},or=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ir(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||or(r)&&or(o)))return!1;var r,o;return!0}for(var ar={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ur=function(e){return Mt("span",ae({css:ar},e))},sr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var f=u?" disabled":"",p="".concat(s?" selected":"").concat(f);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},lr=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,u=e.selectProps,s=e.id,l=e.isAppleDevice,c=u.ariaLiveMessages,f=u.getOptionLabel,p=u.inputValue,d=u.isMulti,h=u.isOptionDisabled,m=u.isSearchable,y=u.menuIsOpen,v=u.options,g=u.screenReaderStatus,w=u.tabSelectsValue,_=u.isLoading,S=u["aria-label"],x=u["aria-live"],E=(0,b.useMemo)((function(){return ee(ee({},sr),c||{})}),[c]),O=(0,b.useMemo)((function(){var e="";if(t&&E.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,u=t.value,s=o||n||function(e){return Array.isArray(e)?null:e}(u),l=s?f(s):"",c=r||i||void 0,p=c?c.map(f):[],d=ee({isDisabled:s&&h(s,a),label:l,labels:p},t);e=E.onChange(d)}return e}),[t,E,h,a,f]),k=(0,b.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var u={focused:t,label:f(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=E.onFocus(u)}return e}),[n,r,f,h,E,o,a,l]),P=(0,b.useMemo)((function(){var e="";if(y&&v.length&&!_&&E.onFilter){var t=g({count:o.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,E,v,g,_]),T="initial-input-focus"===(null==t?void 0:t.action),C=(0,b.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":y?"menu":"input";e=E.guidance({"aria-label":S,context:t,isDisabled:n&&h(n,a),isMulti:d,isSearchable:m,tabSelectsValue:w,isInitialFocus:T})}return e}),[S,n,r,d,h,m,y,E,a,w,T]),I=Mt(b.Fragment,null,Mt("span",{id:"aria-selection"},O),Mt("span",{id:"aria-focused"},k),Mt("span",{id:"aria-results"},P),Mt("span",{id:"aria-guidance"},C));return Mt(b.Fragment,null,Mt(ur,{id:s},T&&I),Mt(ur,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!T&&I))},cr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],fr=new RegExp("["+cr.map((function(e){return e.letters})).join("")+"]","g"),pr={},dr=0;dr<cr.length;dr++)for(var hr=cr[dr],mr=0;mr<hr.letters.length;mr++)pr[hr.letters[mr]]=hr.base;var yr=function(e){return e.replace(fr,(function(e){return pr[e]}))},vr=function(e,t){void 0===t&&(t=ir);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(yr),gr=function(e){return e.replace(/^\s+|\s+$/g,"")},br=function(e){return"".concat(e.label," ").concat(e.value)},wr=["innerRef"];function _r(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=re(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=re(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(oe(e,wr),"onExited","in","enter","exit","appear");return Mt("input",ae({ref:t},n,{css:Vt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Sr=["boxSizing","height","overflow","paddingRight","position"],xr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Er(e){e.preventDefault()}function Or(e){e.stopPropagation()}function kr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Tr=!("undefined"==typeof window||!window.document||!window.document.createElement),Cr=0,Ir={capture:!1,passive:!1},Nr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},jr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Lr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,b.useRef)(!1),u=(0,b.useRef)(!1),s=(0,b.useRef)(0),l=(0,b.useRef)(null),c=(0,b.useCallback)((function(e,t){if(null!==l.current){var s=l.current,c=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=l.current,h=t>0,m=f-p-c,y=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=f,y=!0,a.current=!0):!h&&-t>c&&(o&&!u.current&&o(e),d.scrollTop=0,y=!0,u.current=!0),y&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=(0,b.useCallback)((function(e){c(e,e.deltaY)}),[c]),p=(0,b.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,b.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;c(e,t)}),[c]),h=(0,b.useCallback)((function(e){if(e){var t=!!kn&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,b.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,b.useEffect)((function(){if(t){var e=l.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,b.useRef)({}),i=(0,b.useRef)(null),a=(0,b.useCallback)((function(e){if(Tr){var t=document.body,n=t&&t.style;if(r&&Sr.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Cr<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+i||0;Object.keys(xr).forEach((function(e){var t=xr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&Pr()&&(t.addEventListener("touchmove",Er,Ir),e&&(e.addEventListener("touchstart",kr,Ir),e.addEventListener("touchmove",Or,Ir))),Cr+=1}}),[r]),u=(0,b.useCallback)((function(e){if(Tr){var t=document.body,n=t&&t.style;Cr=Math.max(Cr-1,0),r&&Cr<1&&Sr.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Pr()&&(t.removeEventListener("touchmove",Er,Ir),e&&(e.removeEventListener("touchstart",kr,Ir),e.removeEventListener("touchmove",Or,Ir)))}}),[r]);return(0,b.useEffect)((function(){if(t){var e=i.current;return a(e),function(){u(e)}}}),[t,a,u]),function(e){i.current=e}}({isEnabled:n});return Mt(b.Fragment,null,n&&Mt("div",{onClick:Nr,css:jr}),t((function(e){o(e),i(e)})))}var Dr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Fr=function(e){var t=e.name,n=e.onFocus;return Mt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Dr,value:"",onChange:function(){}})};function Ar(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 Rr(){return Ar(/^Mac/i)}var Mr={clearIndicator:Wn,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,o=e.theme,i=o.colors,a=o.borderRadius;return ee({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Yn,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,o=n.spacing;return ee({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.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,o=r.spacing.baseUnit,i=r.colors;return ee({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ee(ee({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},er),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ee({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Vn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,u=o.colors;return ee((J(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),J(n,"position","absolute"),J(n,"width","100%"),J(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:i,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 ee({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,o=n.borderRadius,i=n.colors;return ee({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ee({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ee({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Mn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return ee({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ee({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ee({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ee({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Vr={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}},zr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sn(),captureMenuScroll:!Sn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ee({ignoreCase:!0,ignoreAccents:!0,stringify:br,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,s=a?gr(t):t,l=a?gr(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=vr(s),l=yr(l)),"start"===u?l.substr(0,s.length)===s:l.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 Ur(e,t,n,r){return{type:"option",data:t,isDisabled:Qr(e,t,n),isSelected:Kr(e,t,n),label:Yr(e,t),value:Wr(e,t),index:r}}function qr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ur(e,n,t,r)})).filter((function(t){return Gr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ur(e,n,t,r);return Gr(e,i)?i:void 0})).filter(Pn)}function Br(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,fe(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Hr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,fe(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 Gr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!Jr(e)||!i)&&Xr(e,{label:a,value:u,data:o},r)}var $r=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Yr=function(e,t){return e.getOptionLabel(t)},Wr=function(e,t){return e.getOptionValue(t)};function Qr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Kr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Wr(e,t);return n.some((function(t){return Wr(e,t)===r}))}function Xr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Jr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Zr=1,eo=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&&se(e,t)}(n,e);var t=function(e){var t=ce();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==K(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:""},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.isAppleDevice=Rr()||Ar(/^iPhone/i)||Ar(/^iPad/i)||Rr()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,u=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:u}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,u=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(u){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(fe(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,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=Tn(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Tn(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Tn(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return $r(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Hr(qr(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;n<e;n++)t[n]=arguments[n];return dn.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Yr(r.props,e)},r.getOptionValue=function(e){return Wr(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Mr[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ee(ee({},rr),e.components);var e},r.buildCategorizedOptions=function(){return qr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Br(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:ee({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&vn(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){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 Jr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,y=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():u&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!f||!h||p&&r.isOptionSelected(h,y))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):u&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Zr),r.state.selectValue=hn(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=$r(o,i[a])}return r}return function(e,t,n){t&&ue(e.prototype,t),n&&ue(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&&_n(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(_n(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,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Vr):ee(ee({},Vr),this.props.theme):Vr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,u=this.props,s=u.isMulti,l=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,selectProps:u,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 Qr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Kr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Xr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,u=e.menuIsOpen,s=e.required,l=this.getComponents().Input,c=this.state,f=c.inputIsHidden,p=c.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=ee(ee(ee({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?b.createElement(l,ae({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):b.createElement(_r,ae({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:fn,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,s=this.commonProps,l=this.props,c=l.controlShouldRenderValue,f=l.isDisabled,p=l.isMulti,d=l.inputValue,h=l.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,g=m.isFocused;if(!this.hasValue()||!c)return d?null:b.createElement(u,ae({},s,{key:"placeholder",isDisabled:f,isFocused:g,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return y.map((function(t,a){var u=t===v,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return b.createElement(n,ae({},s,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:f,key:l,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(d)return null;var w=y[0];return b.createElement(a,ae({},s,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,ae({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?b.createElement(e,ae({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return b.createElement(n,ae({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,ae({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,c=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,g=p.maxMenuHeight,w=p.menuIsOpen,_=p.menuPlacement,S=p.menuPosition,x=p.menuPortalTarget,E=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,k=p.noOptionsMessage,P=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!w)return null;var C,I=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,u=t.label,s=t.value,p=f===o,d=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),y={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return b.createElement(l,ae({},c,{innerProps:y,data:o,isDisabled:i,isSelected:a,key:m,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,u="".concat(e.getElementId("group"),"-").concat(a),s="".concat(u,"-heading");return b.createElement(n,ae({},c,{key:u,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(m){var N=y({inputValue:h});if(null===N)return null;C=b.createElement(u,c,N)}else{var j=k({inputValue:h});if(null===j)return null;C=b.createElement(s,c,j)}var L={minMenuHeight:v,maxMenuHeight:g,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:O},D=b.createElement(An,ae({},c,L),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return b.createElement(o,ae({},c,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),b.createElement(Lr,{captureEnabled:d,onTopArrive:P,onBottomArrive:T,lockEnabled:E},(function(t){return b.createElement(i,ae({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:u,focusedOption:f}),C)})))}));return x||"fixed"===S?b.createElement(a,ae({},c,{appendTo:x,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!r)return b.createElement(Fr,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=u.map((function(t){return e.getOptionValue(t)})).join(n);return b.createElement("input",{name:i,type:"hidden",value:s})}var l=u.length>0?u.map((function(t,n){return b.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.createElement("input",{name:i,type:"hidden",value:""});return b.createElement("div",null,l)}var c=u[0]?this.getOptionValue(u[0]):"";return b.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return b.createElement(lr,ae({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,s=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused,f=this.commonProps=this.getCommonProps();return b.createElement(r,ae({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),b.createElement(t,ae({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:l}),b.createElement(o,ae({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(n,ae({},f,{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,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,u=t.prevWasFocused,s=t.instancePrefix,l=e.options,c=e.value,f=e.menuIsOpen,p=e.inputValue,d=e.isMulti,h=hn(c),m={};if(n&&(c!==n.value||l!==n.options||f!==n.menuIsOpen||p!==n.inputValue)){var y=f?function(e,t){return Br(qr(e,t))}(e,h):[],v=f?Hr(qr(e,h),"".concat(s,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,y);m={selectValue:h,focusedOption:b,focusedOptionId:$r(v,b),focusableOptionsWithIds:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=i,S=a&&u;return a&&!S&&(_={value:Tn(d,h,h[0]||null),options:h,action:"initial-input-focus"},S=!u),"initial-input-focus"===(null==i?void 0:i.action)&&(_=null),ee(ee(ee({},m),w),{},{prevProps:e,ariaSelection:_,prevWasFocused:S})}}]),n}(b.Component);eo.defaultProps=zr;var to=(0,b.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,u=e.inputValue,s=e.menuIsOpen,l=e.onChange,c=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=oe(e,ie),m=re((0,b.useState)(void 0!==u?u:n),2),y=m[0],v=m[1],g=re((0,b.useState)(void 0!==s?s:o),2),w=g[0],_=g[1],S=re((0,b.useState)(void 0!==d?d:a),2),x=S[0],E=S[1],O=(0,b.useCallback)((function(e,t){"function"==typeof l&&l(e,t),E(e)}),[l]),k=(0,b.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),v(void 0!==n?n:e)}),[c]),P=(0,b.useCallback)((function(){"function"==typeof p&&p(),_(!0)}),[p]),T=(0,b.useCallback)((function(){"function"==typeof f&&f(),_(!1)}),[f]),C=void 0!==u?u:y,I=void 0!==s?s:w,N=void 0!==d?d:x;return ee(ee({},h),{},{inputValue:C,menuIsOpen:I,onChange:O,onInputChange:k,onMenuClose:T,onMenuOpen:P,value:N})}(e);return b.createElement(eo,ae({ref:t},n))})),no=to,ro=function(){return ro=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ro.apply(this,arguments)},oo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},io=function(e){return ro(ro({},e),{borderRadius:0,colors:ro(ro({},e.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},ao=function(e,t){return(0,b.useMemo)((function(){return{placeholder:function(e){return ro(ro({},e),{color:"var(--placeholder-body-color)"})},container:function(e){return ro(ro({},e),{fontSize:"inherit"})},control:function(n,r){var o=r.isFocused,i=n;return i=ro(ro({},i),{minHeight:40}),ro(ro({},i),o?{borderColor:t?"var(--alert-color)":"var(--accent-color)",backgroundColor:e?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(t?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:t?"var(--alert-color)":"var(--accent-color)"}}:{borderColor:t?"var(--alert-color)":"var(--border-color)",backgroundColor:e?"var(--disabled-color)":"white","&:hover":{borderColor:t?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(e){return ro(ro({},e),{cursor:"pointer"})},menu:function(e){return ro(ro({},e),{zIndex:1e3,minWidth:250})},input:function(e){return ro(ro({},e),{boxShadow:"none","input:focus":{boxShadow:"none"}})},multiValue:function(e){return ro(ro({},e),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(e){return ro(ro({},e),{fontSize:"inherit",padding:3})}}}),[e,t])};function uo(e){var t=e.isDisabled,n=e.error,r=oo(e,["isDisabled","error"]),o=ao(t,n);return b.createElement(no,ro({},r,{isDisabled:t,theme:io,styles:o}))}var so,lo,co=function(){return co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},co.apply(this,arguments)};function fo(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.placeholder,s=e.formLabelProps,l=e.value,c=e.onChange,f=e.selectInputProps;return b.createElement(Q,{formLabelProps:s,id:t,required:a,error:i,hint:o,label:r},b.createElement(uo,co({},f,{id:t,name:n,value:l,placeholder:u,onChange:c,error:!!i})))}!function(e){e.MainNavigationTabs="mainNavigationTabs",e.ContentAreaSidebarItems="contentAreaSidebarItems",e.SettingsAreaSidebarItemGroups="settingsAreaSidebarItemGroups"}(so||(so={})),function(e){e.Before="before",e.After="after",e.Content="content",e.Media="media",e.Schema="schema",e.Configuration="configuration",e.CdaPlayground="cdaPlayground",e.Properties="properties",e.Permissions="permissions",e.MenuItems="menuItems",e.SeoPreferences="seoPreferences"}(lo||(lo={}));var po="Upload SVG",ho="svg-uploader",mo="file-upload",yo="svg-raw-viewer-modal",vo="New SVG",go=[{label:"Top menu",value:so.MainNavigationTabs},{label:"Side menu",value:so.ContentAreaSidebarItems},{label:"Settings menu",value:so.SettingsAreaSidebarItemGroups}],bo=[{label:"Before menu item",value:lo.Before},{label:"After menu item",value:lo.After}],wo=[{label:"Menu items",value:lo.MenuItems},{label:"Seo preferences",value:lo.SeoPreferences}],_o=[{label:"Properties",value:lo.Properties},{label:"Permissions",value:lo.Permissions}],So=[{label:"Content",value:lo.Content},{label:"Media",value:lo.Media},{label:"Schema",value:lo.Schema},{label:"Configuration",value:lo.Configuration},{label:"CDA Playground",value:lo.CdaPlayground}],xo="plugin_svg",Eo="Plugin SVG";function Oo(e){return e===so.SettingsAreaSidebarItemGroups?_o:e===so.ContentAreaSidebarItems?wo:So}var ko=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Po="__ARRAY_INDEX__";function To(e){return e.reduce((function(e,t,n){return 0===n?t:t===Po?"".concat(e,"[]"):"".concat(e,"[").concat(t,"]")}),"")}function Co(e){if("number"==typeof e||"string"==typeof e)return e.toString();if(!0===e)return"true";if(!1===e)return"false";throw"Don't know how to serialize param value ".concat(JSON.stringify(e))}function Io(e,t){void 0===t&&(t=[]);var n=[];if("number"==typeof e||"string"==typeof e||"boolean"==typeof e)n.push([To(t),Co(e)]);else if("object"==typeof e)if(Array.isArray(e))for(var r=0,o=e;r<o.length;r++)for(var i=0,a=Io(o[r],ko(ko([],t,!0),[Po],!1));i<a.length;i++){var u=a[i];n.push(u)}else if(e)for(var s=0,l=Object.entries(e);s<l.length;s++)for(var c=l[s],f=c[0],p=0,d=Io(c[1],ko(ko([],t,!0),[f],!1));p<d.length;p++)u=d[p],n.push(u);return n}var No,jo=(No=function(e,t){return No=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},No(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}No(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Lo={BATCH_DATA_VALIDATION_IN_PROGRESS:"The schema of this model changed, we're re-running validations over every record in background. Please retry with this operation in a few seconds!",INSUFFICIENT_PERMISSIONS:"Your role does not permit this action",MAINTENANCE_MODE:"The project is currently in maintenance mode!",DELETE_RESTRICTION:"Sorry, but you cannot delete this resource, as it's currently used/referenced elsewhere!",INVALID_CREDENTIALS:"Credentials are incorrect!",INVALID_EMAIL:"Email address is incorrect!",INVALID_FORMAT:"The format of the parameters passed is incorrect, take a look at the details of the error to know what's wrong!",ITEM_LOCKED:"The operation cannot be completed as some other user is currently editing this record!",LINKED_FROM_PUBLISHED_ITEMS:"Couldn't unpublish the record, as some published records are linked to it!",PLAN_UPGRADE_REQUIRED:"Cannot proceed, please upgrade plan!",PUBLISHED_CHILDREN:"Couldn't unpublish the record, some children records are still published!",REQUIRED_2FA_SETUP:"This project requires every user to turn on 2-factor authentication! Please go to your Dashboard and activate it! (https://dashboard.datocms.com/account/setup-2fa)",REQUIRED_BY_ASSOCIATION:"Cannot delete the record, as it's required by other records:",STALE_ITEM_VERSION:"Someone else made a change while you were editing this record, please refresh the page!",TITLE_ALREADY_PRESENT:"There can only be one Title field per model",UNPUBLISHED_LINK:"Couldn't publish the record, as it links some unpublished records!",UNPUBLISHED_PARENT:"Couldn't publish the record, as the parent record is not published!",UPLOAD_IS_CURRENTLY_IN_USE:"Couldn't delete this asset, as it's currently used by some records!",UPLOAD_NOT_PASSING_FIELD_VALIDATIONS:"Couldn't update this asset since some records are failing to pass the validations!"},Do={build_triggers:"You've reached the maximum number of build triggers your plan allows",sandbox_environments:"You've reached the maximum number of environments your plan allows",item_types:"You've reached the maximum number of models your plan allows to create",items:"You've reached the maximum number of records your plan allows to create",locales:"You've reached the maximum number of locales your plan allows",mux_encoding_seconds:"You've reached the maximum video encoding limits of your plan",otp:"Two-factor authentication cannot be on the current plan",plugins:"You've reached the maximum number of plugins your plan allows",roles:"You've reached the maximum number of roles your plan allows to create",uploadable_bytes:"You've reached the file storage limits of your plan",users:"You've reached the maximum number of collaborators your plan allows to invite to the project",access_tokens:"You've reached the maximum number of API tokens your plan allows to create"},Fo=function(e){function t(t){var n=this.constructor,r=e.call(this,"API Error!")||this;return Object.setPrototypeOf(r,n.prototype),"captureStackTrace"in Error?Error.captureStackTrace(r,Ao):r.stack=(new Error).stack,r.request=t.request,r.preCallStack=t.preCallStack,r.message="".concat(t.request.method," ").concat(t.request.url,": Timeout error"),r.preCallStack&&(r.stack+="\nCaused By:\n".concat(r.preCallStack)),r}return jo(t,e),t}(Error),Ao=function(e){function t(n){var r=this.constructor,o=e.call(this,"API Error!")||this;Object.setPrototypeOf(o,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(o,t):o.stack=(new Error).stack,o.request=n.request,o.response=n.response,o.preCallStack=n.preCallStack;var i="".concat(n.request.method," ").concat(n.request.url,": ").concat(o.response.status," ").concat(o.response.statusText);return o.errors.length>0&&(i+="\n\n".concat(JSON.stringify(o.errors,null,2))),o.message=i,o.preCallStack&&(o.stack+="\nCaused By:\n".concat(o.preCallStack)),o}return jo(t,e),Object.defineProperty(t.prototype,"errors",{get:function(){return function(e){if("object"!=typeof e||null===e||!("data"in e))return!1;var t=e;if(!Array.isArray(t.data))return!1;var n=t;if(0===n.data.length)return!1;var r=n.data[0];return"object"==typeof r&&null!==r&&"id"in r&&"type"in r&&"attributes"in r&&"api_error"===r.type}(this.response.body)?this.response.body.data:[]},enumerable:!1,configurable:!0}),t.prototype.findError=function(e,t){var n=Array.isArray(e)?e:[e];return this.errors.find((function(e){return n.includes(e.attributes.code)&&(!t||("function"==typeof t?t(e.attributes.details):Object.entries(t).every((function(t){var n=t[0],r=t[1];return e.attributes.details[n]===r}))))}))},Object.defineProperty(t.prototype,"humanMessage",{get:function(){var e=this,t=this.findError("PLAN_UPGRADE_REQUIRED");if(t){var n=t.attributes.details.limit;return"".concat(Do[n],". Please head over to your account dashboard (https://dashboard.datocms.com/) to upgrade the plan or, if no publicly available plan suits your needs, contact our Sales team (https://www.datocms.com/contact) to get a custom quote!")}var r=Object.keys(Lo).filter((function(t){return e.findError(t)})).map((function(e){return Lo[e]}));return 0===r.length?null:r.join("\n")},enumerable:!1,configurable:!0}),t}(Error),Ro=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mo=function(e){function t(){var t=this.constructor,n=e.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(n,t.prototype),n}return Ro(t,e),t}(Error);function Vo(e,t){var n=null,r=new Promise((function(r,o){n=function(){try{t&&t(),o(new Mo)}catch(e){o(e)}},("function"==typeof e?e():e).then(r,o)}));return n&&(r.cancel=n),r}function zo(e){return new Promise((function(t){setTimeout(t,e)}))}var Uo,qo=function(){return qo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qo.apply(this,arguments)},Bo="undefined"!=typeof window&&void 0!==window.document;function Ho(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o.status,statusText:o.statusText,headers:(u=o.headers,s={},u.forEach((function(e,t){s[t]=e})),s),body:i},preCallStack:a};var u,s}!function(e){e[e.NONE=0]="NONE",e[e.BASIC=1]="BASIC",e[e.BODY=2]="BODY",e[e.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"}(Uo||(Uo={}));var Go=1;function $o(e){return t=this,n=void 0,o=function(){var t,n,r,o,i,a,u,s,l,c,f,p,d,h,m,y,v,g,b,w,_,S,x,E,O,k,P,T,C,I,N;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(j){switch(j.label){case 0:if(t=Go,Go+=1,void 0===(n=e.fetchFn||("undefined"==typeof fetch?void 0:fetch)||("undefined"==typeof globalThis?void 0:globalThis.fetch)))throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");if(r=e.preCallStack,o=e.userAgent||"@datocms/rest-client-utils",i=e.retryCount||1,a=e.logLevel||Uo.NONE,u=!("autoRetry"in e)||e.autoRetry,s=e.logFn||function(){return!0},l=qo({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?(L=e.extraHeaders,Object.fromEntries(Object.entries(L).map((function(e){var t=e[0],n=e[1];return[t.toLowerCase(),n]})))):{}),Bo&&delete l["user-agent"],c=e.baseUrl.replace(/\/$/,""),f=e.body?JSON.stringify(e.body,null,2):void 0,p=e.queryParams&&Object.keys(e.queryParams).length>0?"?".concat(new URLSearchParams(Io(e.queryParams)).toString()):"",d="".concat(c).concat(e.url).concat(p),a>=Uo.BASIC){if(s("[".concat(t,"] ").concat(e.method," ").concat(d)),a>=Uo.BODY_AND_HEADERS)for(h=0,m=Object.entries(l||{});h<m.length;h++)y=m[h],O=y[0],k=y[1],s("[".concat(t,"] ").concat(O,": ").concat(k));a>=Uo.BODY&&f&&s("[".concat(t,"] ").concat(f))}j.label=1;case 1:return j.trys.push([1,12,,16]),v=Vo(n(d,{method:e.method,headers:l,body:f})),g=setTimeout((function(){v.cancel()}),e.requestTimeout||3e4),[4,v];case 2:if(b=j.sent(),clearTimeout(g),w=b.headers.get("Content-Type"),_=w&&!w.includes("application/json"),429!==b.status&&!_)return[3,4];if(!u||_&&"GET"!==e.method)throw new Ao(Ho(e.method,d,l,e.body,b,void 0,r));return S=b.headers.has("X-RateLimit-Reset")?Number.parseInt(b.headers.get("X-RateLimit-Reset"),10):i,a>=Uo.BASIC&&(429===b.status?s("[".concat(t,"] Rate limit exceeded, wait ").concat(S," seconds then retry...")):s("[".concat(t,'] Invalid response content type "').concat(w,'" (status ').concat(b.status,"). Wait ").concat(S," seconds then retry..."))),[4,zo(1e3*S)];case 3:return j.sent(),[2,$o(qo(qo({},e),{retryCount:i+1}))];case 4:if(a>=Uo.BASIC&&(s("[".concat(t,"] Status: ").concat(b.status," (").concat(b.statusText,")")),a>=Uo.BODY_AND_HEADERS))for(x=0,E=["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"];x<E.length;x++)O=E[x],(k=b.headers.get(O))&&s("[".concat(t,"] ").concat(O,": ").concat(k));return 204!==b.status?[3,5]:(T=void 0,[3,7]);case 5:return[4,b.json()];case 6:T=j.sent(),j.label=7;case 7:return P=T,a>=Uo.BODY&&P&&s("[".concat(t,"] ").concat(JSON.stringify(P,null,2))),202!==b.status?[3,9]:[4,e.fetchJobResult(P.data.id)];case 8:if((C=j.sent()).status<200||C.status>=300)throw new Ao(function(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o,statusText:"N/A",headers:{},body:i},preCallStack:a}}(e.method,d,l,e.body,C.status,C.payload,r));P=C.payload,j.label=9;case 9:return b.status>=200&&b.status<300?[2,P]:(I=new Ao(Ho(e.method,d,l,e.body,b,P,r)),u&&I.findError("BATCH_DATA_VALIDATION_IN_PROGRESS")?(a>=Uo.BASIC&&s("[".concat(t,"] Data validation in progress, wait ").concat(i," seconds then retry...")),[4,zo(1e3*i)]):[3,11]);case 10:return j.sent(),[2,$o(qo(qo({},e),{retryCount:i+1}))];case 11:throw I;case 12:return(N=j.sent())instanceof Mo||function(e){return"object"==typeof e&&!!e&&"code"in e}(N)&&N.code.includes("ETIMEDOUT")?u&&i<5?(a>=Uo.BASIC&&s("[".concat(t,"] Timeout error, wait ").concat(i," seconds then retry...")),[4,zo(1e3*i)]):[3,14]:[3,15];case 13:return j.sent(),[2,$o(qo(qo({},e),{retryCount:i+1}))];case 14:throw new Fo(function(e,t,n,r,o){return{request:{url:t,method:e,headers:n,body:r},preCallStack:o}}(e.method,d,l,e.body,r));case 15:throw N;case 16:return[2]}var L}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function u(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}var Yo=function(){return Yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yo.apply(this,arguments)};function Wo(e){return"object"==typeof e&&!!e&&"id"in e&&"type"in e}function Qo(e){return Array.isArray(e)&&e.every(Wo)}function Ko(e,t){if("object"!=typeof e||!e)throw new Error("Invalid body!");var n=e,r=n.id,o=n.type,i=n.meta,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["id","type","meta"]),u={},s={};if("*"===t.attributes)for(var l=0,c=Object.entries(a);l<c.length;l++){var f=c[l],p=f[0],d=f[1];if(t.relationships.includes(p))if(Wo(d)){var h=d.id,m=d.type;s[p]={data:{id:h,type:m}}}else Qo(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null};else u[p]=d}else if("*"===t.relationships)for(var y=0,v=Object.entries(a);y<v.length;y++){var g=v[y];if(p=g[0],d=g[1],t.attributes.includes(p))u[p]=d;else if(Wo(d)){var b=d.id,w=d.type;s[p]={data:{id:b,type:w}}}else Qo(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}else for(var _=0,S=Object.entries(a);_<S.length;_++){var x=S[_];if(p=x[0],d=x[1],t.attributes.includes(p))u[p]=d;else if(t.relationships.includes(p))if(Wo(d)){var E=d.id,O=d.type;s[p]={data:{id:E,type:O}}}else Qo(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}return{data:Yo(Yo(Yo(Yo(Yo({},r||t.id?{id:r||t.id}:{}),{type:o||t.type}),Object.keys(u).length>0?{attributes:u}:{}),Object.keys(s).length>0?{relationships:s}:{}),i?{meta:i}:{})}}var Xo=function(){return Xo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xo.apply(this,arguments)};function Jo(e){var t=e.id,n=e.type,r=e.attributes,o=e.relationships,i=e.meta;return Xo(Xo(Xo(Xo(Xo({},t?{id:t}:{}),n?{type:n}:{}),r||{}),o?Object.fromEntries(Object.entries(o).map((function(e){var t=e[0],n=e[1];return[t,null==n?void 0:n.data]}))):{}),i?{meta:i}:{})}function Zo(e){if("object"!=typeof(t=e)||!t||!("data"in t))throw new Error("Invalid body!");var t;return Array.isArray(e.data)?e.data.map(Jo):Jo(e.data)}function ei(e){return"string"==typeof e?e:e.id}const ti=function(e){this.client=e};var ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ni(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/roles",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/roles/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/roles/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/roles/".concat(e)})},t.TYPE="role",t}(ti);var oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ii=function(){return ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ii.apply(this,arguments)},ai=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function ui(e,t){return null==e&&null==t||e===t}function si(e,t,n,r){if(!t)return e;var o=t.add,i=t.remove;return ai(ai([],i?i.reduce((function(e,t){var o=ii(ii({},t),{environment:n}),i=e.find((function(e){return function(e,t){for(var n in e)if(!ui(e[n],t[n]))return!1;for(var n in t)if(!ui(e[n],t[n]))return!1;return!0}(e,o)}));if(!i)throw new Error("Cannot find rule ".concat(JSON.stringify(o)," to remove in ").concat(r,"!"));return e.filter((function(e){return e!==i}))}),e):e,!0),o?o.map((function(e){return ii({environment:n},e)})):[],!0)}var li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oi(t,e),t.prototype.updateCurrentEnvironmentPermissions=function(e,t){return n=this,r=void 0,i=function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:return(r=this.client.config.environment)?[3,2]:[4,this.client.environments.list()];case 1:r=s.sent().find((function(e){return e.meta.primary})).id,s.label=2;case 2:return n=r,[4,this.find(e)];case 3:return o=s.sent(),i=Boolean(t.positive_item_type_permissions||t.negative_item_type_permissions),a=Boolean(t.positive_upload_permissions||t.negative_upload_permissions),u=ii(ii({},i?{positive_item_type_permissions:si(o.positive_item_type_permissions,t.positive_item_type_permissions,n,"positive_item_type_permissions"),negative_item_type_permissions:si(o.negative_item_type_permissions,t.negative_item_type_permissions,n,"negative_item_type_permissions")}:{}),a?{positive_upload_permissions:si(o.positive_upload_permissions,t.positive_upload_permissions,n,"positive_upload_permissions"),negative_upload_permissions:si(o.negative_upload_permissions,t.negative_upload_permissions,n,"negative_upload_permissions")}:{}),[2,this.update(e,u)]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},t}(ri);const ci=li;var fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"user",attributes:["is_active"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/users/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},t.prototype.find=function(e,t){return this.rawFind(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/users/".concat(e),queryParams:t})},t.prototype.findMe=function(e){return this.rawFindMe(e).then((function(e){return Zo(e)}))},t.prototype.rawFindMe=function(e){return this.client.request({method:"GET",url:"/users/me",queryParams:e})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/users/".concat(e),queryParams:t})},t.TYPE="user",t}(ti);var di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return di(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/sso-users/".concat(e)})},t.prototype.copyUsers=function(){return this.rawCopyUsers().then((function(e){return Zo(e)}))},t.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/sso-users/".concat(e),queryParams:t})},t.TYPE="sso_user",t}(ti);var mi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mi(t,e),t.prototype.query=function(e){return this.rawQuery(Ko(e,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawQuery=function(e){return this.client.request({method:"POST",url:"/audit-log-events/query",body:e})},t.TYPE="audit_log_event",t}(ti);var vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vi(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/menu-items/".concat(e)})},t.TYPE="menu_item",t}(ti);var bi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bi(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/schema-menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/schema-menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/schema-menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/schema-menu-items/".concat(e)})},t.TYPE="schema_menu_item",t}(ti);var _i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _i(t,e),t.prototype.create=function(e,t){return this.rawCreate(Ko(e,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]}),t).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types",body:e,queryParams:t})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-types/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/duplicate")})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/item-types/".concat(e),queryParams:t})},t.TYPE="item_type",t}(ti);var xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xi(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fields"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fields/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields")})},t.prototype.referencing=function(e){return this.rawReferencing(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawReferencing=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/referencing")})},t.prototype.related=function(e){return this.rawRelated(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawRelated=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/related")})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fields/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fields/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/fields/".concat(e,"/duplicate")})},t.TYPE="field",t}(ti);var Oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oi(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fieldsets"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fieldsets/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fieldsets")})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fieldsets/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(e)})},t.TYPE="fieldset",t}(ti);var Pi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pi(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/sessions",body:e})},t.TYPE="session",t}(ti);var Ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ci(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/access_tokens",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/access_tokens/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/access_tokens/".concat(e)})},t.prototype.regenerateToken=function(e){return this.rawRegenerateToken(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawRegenerateToken=function(e){return this.client.request({method:"POST",url:"/access_tokens/".concat(e,"/regenerate_token")})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(e),queryParams:t})},t.TYPE="access_token",t}(ti);var Ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ni(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/plugins",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/plugins/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/plugins/".concat(e)})},t.prototype.fields=function(e){return this.rawFields(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFields=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e,"/fields")})},t.TYPE="plugin",t}(ti);var Li=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/job-results/".concat(e)})},t.TYPE="job_result",t}(ti);var Fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/subscription-limits/".concat(e)})},t.TYPE="subscription_limit",t}(ti);var Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ri(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(ti);var Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-events/".concat(e)})},t.TYPE="build_event",t}(ti);var Ui=o(3271),qi=function(e){return this instanceof qi?(this.v=e,this):new qi(e)};function Bi(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof qi?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c,f,p,d,h,m,y;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(v){switch(v.label){case 0:if((r=(null==n?void 0:n.perPage)||e.defaultLimit)>e.maxLimit)throw new Error("perPage option cannot exceed maximum value of ".concat(e.maxLimit));if((o=(null==n?void 0:n.concurrency)||1)>10)throw new Error("concurrency option cannot exceed maximum value of 10");return[4,qi(t({limit:r,offset:0}))];case 1:i=v.sent(),a=0,u=i.data,v.label=2;case 2:return a<u.length?(y=u[a],[4,qi(y)]):[3,6];case 3:return[4,v.sent()];case 4:v.sent(),v.label=5;case 5:return a++,[3,2];case 6:for(s=i.meta.total_count,l=new Ui.Scheduler(o),c=[],f=function(e){c.push(l.enqueue((function(){return t({limit:r,offset:e})})))},p=r;p<s;p+=r)f(p);v.label=7;case 7:return c.length>0?[4,qi(c.shift())]:[3,14];case 8:d=v.sent(),h=0,m=d.data,v.label=9;case 9:return h<m.length?(y=m[h],[4,qi(y)]):[3,13];case 10:return[4,v.sent()];case 11:v.sent(),v.label=12;case 12:return h++,[3,9];case 13:return[3,7];case 14:return[2]}}))}))}function Hi(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var Gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$i=function(){return $i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$i.apply(this,arguments)},Yi=function(e){return this instanceof Yi?(this.v=e,this):new Yi(e)},Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gi(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/items",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Yi?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Yi(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Yi(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Yi(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Hi(e),Bi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList($i($i({},e),{page:t}))}),t)},t.prototype.validateExisting=function(e,t){return this.rawValidateExisting(ei(e),Ko(t,{id:ei(e),type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateExisting=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/validate"),body:t})},t.prototype.validateNew=function(e){return this.rawValidateNew(Ko(e,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateNew=function(e){return this.client.request({method:"POST",url:"/items/validate",body:e})},t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/items",body:e})},t.prototype.duplicate=function(e){return this.rawDuplicate(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/items/".concat(e,"/duplicate")})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/items/".concat(e),body:t})},t.prototype.references=function(e,t){return this.rawReferences(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/references"),queryParams:t})},t.prototype.find=function(e,t){return this.rawFind(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e),queryParams:t})},t.prototype.currentVsPublishedState=function(e){return this.rawCurrentVsPublishedState(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawCurrentVsPublishedState=function(e){return this.client.request({method:"GET",url:"/items/".concat(e,"/current-vs-published-state")})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e)})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/items",queryParams:e})},t.prototype.batchPublish=function(e){return this.rawBatchPublish(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchPublish=function(e){return this.client.request({method:"PUT",url:"/items/publish",queryParams:e})},t.prototype.batchUnpublish=function(e){return this.rawBatchUnpublish(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchUnpublish=function(e){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:e})},t.prototype.publish=function(e,t,n){return this.rawPublish(ei(e),t?Ko(t,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,n).then((function(e){return Zo(e)}))},t.prototype.rawPublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/publish"),body:t,queryParams:n})},t.prototype.unpublish=function(e,t,n){return this.rawUnpublish(ei(e),t?Ko(t,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,n).then((function(e){return Zo(e)}))},t.prototype.rawUnpublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/unpublish"),body:t,queryParams:n})},t.prototype.bulkPublish=function(e){return this.rawBulkPublish(Ko(e,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkPublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/publish",body:e})},t.prototype.bulkUnpublish=function(e){return this.rawBulkUnpublish(Ko(e,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkUnpublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(Ko(e,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:e})},t.prototype.bulkMoveToStage=function(e){return this.rawBulkMoveToStage(Ko(e,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkMoveToStage=function(e){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:e})},t.TYPE="item",t}(ti);const Qi=Wi;var Ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xi=function(){return Xi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xi.apply(this,arguments)},Ji=function(e){return this instanceof Ji?(this.v=e,this):new Ji(e)},Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ki(t,e),t.prototype.restore=function(e){return this.rawRestore(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawRestore=function(e){return this.client.request({method:"POST",url:"/versions/".concat(e,"/restore")})},t.prototype.list=function(e,t){return this.rawList(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/versions"),queryParams:t})},t.prototype.listPagedIterator=function(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Ji?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(f){switch(f.label){case 0:f.trys.push([0,9,10,15]),r=!0,o=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(ei(e),t,n)),f.label=1;case 1:return[4,Ji(o.next())];case 2:if(i=f.sent(),u=i.done)return[3,8];c=i.value,r=!1,f.label=3;case 3:return f.trys.push([3,,6,7]),[4,Ji(Jo(c))];case 4:return[4,f.sent()];case 5:return f.sent(),[3,7];case 6:return r=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return a=f.sent(),s={error:a},[3,15];case 10:return f.trys.push([10,,13,14]),r||u||!(l=o.return)?[3,12]:[4,Ji(l.call(o))];case 11:f.sent(),f.label=12;case 12:return[3,14];case 13:if(s)throw s.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t,n){var r=this;return Hi(t),Bi({defaultLimit:15,maxLimit:50},(function(n){return r.rawList(e,Xi(Xi({},t),{page:n}))}),n)},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/versions/".concat(e)})},t.TYPE="item_version",t}(ti);const ea=Zi;var ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),na=function(){return na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},na.apply(this,arguments)},ra=function(e){return this instanceof ra?(this.v=e,this):new ra(e)},oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ta(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/uploads",body:e})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof ra?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,ra(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,ra(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,ra(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Hi(e),Bi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(na(na({},e),{page:t}))}),t)},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/".concat(e)})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/uploads/".concat(e),body:t})},t.prototype.batchAddTags=function(e,t){return this.rawBatchAddTags(Ko(e,{type:"upload",attributes:["tags"],relationships:[]}),t).then((function(e){return Zo(e)}))},t.prototype.rawBatchAddTags=function(e,t){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:e,queryParams:t})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return Zo(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:e})},t.prototype.references=function(e,t){return this.rawReferences(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/references"),queryParams:t})},t.prototype.bulkTag=function(e){return this.rawBulkTag(Ko(e,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkTag=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(Ko(e,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then((function(e){return Zo(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:e})},t.TYPE="upload",t}(ti);const ia=oa;var aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return aa(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload_request",attributes:["filename"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-requests",body:e})},t.TYPE="upload_request",t}(ti);var sa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const la=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sa(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks"),body:t})},t.prototype.list=function(e){return this.rawList(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/tracks")})},t.prototype.destroy=function(e,t){return this.rawDestroy(ei(e),ei(t)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/uploads/".concat(e,"/tracks/").concat(t)})},t.prototype.generateSubtitles=function(e,t){return this.rawGenerateSubtitles(ei(e),Ko(t,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawGenerateSubtitles=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks/generate-subtitles"),body:t})},t.TYPE="upload_track",t}(ti);var ca=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ca(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-publication"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-publication")})},t.TYPE="scheduled_publication",t}(ti);var pa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pa(t,e),t.prototype.create=function(e,t){return this.rawCreate(ei(e),Ko(t,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-unpublishing"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-unpublishing")})},t.TYPE="scheduled_unpublishing",t}(ti);var ha=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ma.apply(this,arguments)},ya=function(e){return this instanceof ya?(this.v=e,this):new ya(e)},va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ha(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/search-results",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof ya?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,ya(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,ya(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,ya(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Hi(e),Bi({defaultLimit:20,maxLimit:100},(function(t){return n.rawList(ma(ma({},e),{page:t}))}),t)},t.TYPE="search_result",t}(ti);const ga=va;var ba=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ba(t,e),t.prototype.fork=function(e,t,n){return this.rawFork(ei(e),Ko(t,{id:ei(e),type:"environment",attributes:[],relationships:[]}),n).then((function(e){return Zo(e)}))},t.prototype.rawFork=function(e,t,n){return this.client.request({method:"POST",url:"/environments/".concat(e,"/fork"),body:t,queryParams:n})},t.prototype.promote=function(e){return this.rawPromote(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawPromote=function(e){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/promote")})},t.prototype.rename=function(e,t){return this.rawRename(ei(e),Ko(t,{id:ei(e),type:"environment",attributes:[],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawRename=function(e,t){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/rename"),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/environments/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/environments/".concat(e)})},t.TYPE="environment",t}(ti);var _a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _a(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},t.prototype.activate=function(e){return this.rawActivate(e).then((function(e){return Zo(e)}))},t.prototype.rawActivate=function(e){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:e})},t.prototype.deactivate=function(){return this.rawDeactivate().then((function(e){return Zo(e)}))},t.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},t.TYPE="maintenance_mode",t}(ti);var xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xa(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/webhooks",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/webhooks/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/webhooks/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/webhooks/".concat(e)})},t.TYPE="webhook",t}(ti);var Oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ka=function(){return ka=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ka.apply(this,arguments)},Pa=function(e){return this instanceof Pa?(this.v=e,this):new Pa(e)},Ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oa(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Pa?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Pa(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Pa(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Pa(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Hi(e),Bi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(ka(ka({},e),{page:t}))}),t)},t.prototype.resendWebhook=function(e){return this.rawResendWebhook(ei(e))},t.prototype.rawResendWebhook=function(e){return this.client.request({method:"POST",url:"/webhook_calls/".concat(e,"/resend_webhook")})},t.TYPE="webhook_call",t}(ti);const Ca=Ta;var Ia=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ia(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-triggers/".concat(e)})},t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/build-triggers",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e),body:t})},t.prototype.trigger=function(e){return this.rawTrigger(ei(e))},t.prototype.rawTrigger=function(e){return this.client.request({method:"POST",url:"/build-triggers/".concat(e,"/trigger")})},t.prototype.abort=function(e){return this.rawAbort(ei(e))},t.prototype.rawAbort=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort")})},t.prototype.abortIndexing=function(e){return this.rawAbortIndexing(ei(e))},t.prototype.rawAbortIndexing=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort_indexing")})},t.prototype.reindex=function(e){return this.rawReindex(ei(e))},t.prototype.rawReindex=function(e){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e,"/reindex")})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e)})},t.TYPE="build_trigger",t}(ti);var ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const La=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ja(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/item-type-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-type-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(e)})},t.TYPE="item_type_filter",t}(ti);var Da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Da(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/upload-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/upload-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(e)})},t.TYPE="upload_filter",t}(ti);var Aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/site-invitations",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"site_invitation",attributes:[],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/site-invitations/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site-invitations/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(e)})},t.prototype.resend=function(e){return this.rawResend(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawResend=function(e){return this.client.request({method:"POST",url:"/site-invitations/".concat(e,"/resend")})},t.TYPE="site_invitation",t}(ti);var Ma=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ma(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(e)})},t.TYPE="editing_session",t}(ti);var za=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return za(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},t.prototype.copyRoles=function(e){return this.rawCopyRoles(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawCopyRoles=function(e){return this.client.request({method:"POST",url:"/sso-groups/".concat(e,"/copy-roles")})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"sso_group",attributes:["priority"],relationships:["role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/sso-groups/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(e)})},t.TYPE="sso_group",t}(ti);var qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ba=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},t.prototype.generateToken=function(){return this.rawGenerateToken().then((function(e){return Zo(e)}))},t.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},t.prototype.update=function(e){return this.rawUpdate(Ko(e,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/sso-settings",body:e})},t.TYPE="sso_settings",t}(ti);var Ha=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ha(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:e})},t.TYPE="emoji_suggestions",t}(ti);var $a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $a(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},t.prototype.update=function(e){return this.rawUpdate(Ko(e,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/white-label-settings",body:e})},t.TYPE="white_label_settings",t}(ti);var Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wa(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Zo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},t.TYPE="public_info",t}(ti);var Ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ka(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},t.TYPE="daily_usage",t}(ti);var Ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ja(t,e),t.prototype.find=function(e,t){return this.rawFind(ei(e),t).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(e),queryParams:t})},t.TYPE="usage_counter",t}(ti);var eu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tu=function(){return tu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tu.apply(this,arguments)},nu=function(e){return this instanceof nu?(this.v=e,this):new nu(e)},ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof nu?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,nu(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,nu(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,nu(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Hi(e),Bi({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(tu(tu({},e),{page:t}))}),t)},t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"upload_tag",attributes:["name"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-tags",body:e})},t.TYPE="upload_tag",t}(ti);const ou=ru;var iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),au=function(){return au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},au.apply(this,arguments)},uu=function(e){return this instanceof uu?(this.v=e,this):new uu(e)},su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Zo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof uu?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,uu(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,uu(Jo(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,uu(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Hi(e),Bi({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(au(au({},e),{page:t}))}),t)},t.TYPE="upload_smart_tag",t}(ti);const lu=su;var cu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cu(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site",queryParams:e})},t.prototype.update=function(e){return this.rawUpdate(Ko(e,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/site",body:e})},t.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},t.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},t.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},t.prototype.activateImprovedGqlVisibilityControl=function(){return this.rawActivateImprovedGqlVisibilityControl().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedGqlVisibilityControl=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})},t.prototype.activateImprovedBooleanFields=function(){return this.rawActivateImprovedBooleanFields().then((function(e){return Zo(e)}))},t.prototype.rawActivateImprovedBooleanFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})},t.prototype.updateAssetsCdnDefaultSettings=function(e){return this.rawUpdateAssetsCdnDefaultSettings(Ko(e,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdateAssetsCdnDefaultSettings=function(e){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:e})},t.TYPE="site",t}(ti);var pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t.prototype.create=function(e){return this.rawCreate(Ko(e,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/workflows",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(ei(e),Ko(t,{id:ei(e),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return Zo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/workflows/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Zo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},t.prototype.find=function(e){return this.rawFind(ei(e)).then((function(e){return Zo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/workflows/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(ei(e))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/workflows/".concat(e)})},t.TYPE="workflow",t}(ti);var hu=function(){return hu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hu.apply(this,arguments)},mu=function(){function e(e){this.config=e,this.roles=new ci(this),this.users=new pi(this),this.ssoUsers=new hi(this),this.auditLogEvents=new yi(this),this.menuItems=new gi(this),this.schemaMenuItems=new wi(this),this.itemTypes=new Si(this),this.fields=new Ei(this),this.fieldsets=new ki(this),this.session=new Ti(this),this.accessTokens=new Ii(this),this.plugins=new ji(this),this.jobResults=new Di(this),this.subscriptionLimits=new Ai(this),this.subscriptionFeatures=new Mi(this),this.buildEvents=new zi(this),this.items=new Qi(this),this.itemVersions=new ea(this),this.uploads=new ia(this),this.uploadRequest=new ua(this),this.uploadTracks=new la(this),this.scheduledPublication=new fa(this),this.scheduledUnpublishing=new da(this),this.searchResults=new ga(this),this.environments=new wa(this),this.maintenanceMode=new Sa(this),this.webhooks=new Ea(this),this.webhookCalls=new Ca(this),this.buildTriggers=new Na(this),this.itemTypeFilters=new La(this),this.uploadFilters=new Fa(this),this.siteInvitations=new Ra(this),this.editingSessions=new Va(this),this.ssoGroups=new Ua(this),this.ssoSettings=new Ba(this),this.emojiSuggestions=new Ga(this),this.whiteLabelSettings=new Ya(this),this.publicInfo=new Qa(this),this.dailyUsages=new Xa(this),this.usageCounters=new Za(this),this.uploadTags=new ou(this),this.uploadSmartTags=new lu(this),this.site=new fu(this),this.workflows=new du(this)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.config.baseUrl||e.defaultBaseUrl},enumerable:!1,configurable:!0}),e.prototype.request=function(e){var t=this;return $o(hu(hu(hu({},this.config),e),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v3.3.5",baseUrl:this.baseUrl,preCallStack:(new Error).stack,extraHeaders:hu(hu(hu({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(e){return t.jobResultsFetcher?t.jobResultsFetcher(e):function(){return n=this,r=void 0,i=function(){var n,r,o;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(i){switch(i.label){case 0:r=0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,zo(1e3*(r+=1))];case 2:return i.sent(),[4,t.jobResults.find(e)];case 3:return n=i.sent(),[3,5];case 4:if(!((o=i.sent())instanceof Ao)||404!==o.response.status)throw o;return[3,5];case 5:if(!n)return[3,1];i.label=6;case 6:return[2,n]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}()}}))},e.prototype.eventsChannelName=function(){return e=this,t=void 0,r=function(){var e;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(t){switch(t.label){case 0:return this.cachedEventsChannelName?[2,this.cachedEventsChannelName]:[4,this.site.rawFind()];case 1:return e=t.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(e.id,"-environment-").concat(this.config.environment):"private-site-".concat(e.id),[2,this.cachedEventsChannelName]}}))},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}));var e,t,n,r},e.defaultBaseUrl="https://site-api.datocms.com",e}(),yu=function(){return yu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yu.apply(this,arguments)};function vu(e,t,n){var r=this;void 0===n&&(n={});var o=n.filename||("name"in t?t.name:void 0);if(!o)throw new Error("Missing filename, please provide it as an option!");var i=!1,a=void 0;return Vo((function(){return u=r,s=void 0,c=function(){var r,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:return n.onProgress&&(null==n||n.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:o}})),[4,e.uploadRequest.create({filename:o})];case 1:if(r=c.sent(),u=r.id,s=r.url,l=r.request_headers,i)throw new Mo;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=function(e,t,n){var r=void 0===n?{}:n,o=r.onProgress,i=r.additionalHeaders,a=new XMLHttpRequest;return Vo(new Promise((function(n,r){if(o&&a.upload&&(a.upload.onprogress=function(e){e.lengthComputable&&o({type:"UPLOADING_FILE",payload:{progress:Math.round(e.loaded/e.total*100)}})}),a.onreadystatechange=function(){4===a.readyState&&(200===a.status?n():r(new Error("Status ".concat(a.status))))},a.addEventListener("error",r,!1),a.open("PUT",t,!0),i)for(var u=0,s=Object.entries(i);u<s.length;u++){var l=s[u],c=l[0],f=l[1];a.setRequestHeader(c,f)}a.send(e)})),(function(){a.onreadystatechange=null,a.abort()}))}(t,s,yu(yu({},n),{additionalHeaders:l})),[4,a];case 2:return c.sent(),[2,u]}}))},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((c=c.apply(u,s||[])).next())}));var u,s,l,c}),(function(){a?a.cancel():i=!0}))}var gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bu=function(){return bu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bu.apply(this,arguments)},wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gu(t,e),t.prototype.createFromFileOrBlob=function(e){var t,n=this,r=!1;return Vo((function(){return o=n,i=void 0,u=function(){var n,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:if(r)throw new Mo;return n=e.fileOrBlob,o=e.filename,i=e.onProgress,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["fileOrBlob","filename","onProgress"]),[4,t=vu(this.client,n,{filename:o,onProgress:i})];case 1:return u=s.sent(),i&&i({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(bu(bu({},a),{path:u}))]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(u.next(e))}catch(e){t(e)}}function r(e){try{s(u.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((u=u.apply(o,i||[])).next())}));var o,i,a,u}),(function(){t?t.cancel():r=!0}))},t}(ia);const _u=wu;var Su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xu=function(e){function t(t){var n=e.call(this,t)||this;return n.uploads=new _u(n),n}return Su(t,e),t}(mu);function Eu(e){return new xu(e)}var Ou=function(){return Ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ou.apply(this,arguments)},ku=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Pu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function Tu(e,t){return ku(this,void 0,void 0,(function(){var n,r,o,i,a,u,s;return Pu(this,(function(l){switch(l.label){case 0:n={apiToken:e},t&&(n.environment=t),r=Eu(n),l.label=1;case 1:return l.trys.push([1,10,,11]),[4,r.itemTypes.create({name:Eo,api_key:xo,collection_appearance:"table",singleton:!1},{skip_menu_item_creation:!0})];case 2:return o=l.sent(),[4,r.fields.create(o.id,{label:"Name",api_key:"name",field_type:"string",validators:{required:{}}})];case 3:return l.sent(),[4,r.fields.create(o.id,{label:"SVG Content",api_key:"svg_content",field_type:"text",validators:{required:{}}})];case 4:return l.sent(),[4,r.fields.create(o.id,{label:"Type",api_key:"svg_type",field_type:"string",validators:{enum:{values:["svg","image"]}}})];case 5:return l.sent(),[4,r.fields.create(o.id,{label:"Media Upload",api_key:"media_upload",field_type:"file",validators:{}})];case 6:return l.sent(),[4,r.fields.list(o.id)];case 7:return i=l.sent(),(a=null===(s=i.find((function(e){return"name"===e.api_key})))||void 0===s?void 0:s.id)?[4,r.itemTypes.update(o.id,{title_field:{type:"field",id:a}})]:[3,9];case 8:l.sent(),l.label=9;case 9:return[2,o];case 10:throw u=l.sent(),console.error("Error creating SVG model:",u),u;case 11:return[2]}}))}))}function Cu(e,t){return ku(this,void 0,void 0,(function(){var n,r,o,i,a;return Pu(this,(function(u){switch(u.label){case 0:n={apiToken:e},t&&(n.environment=t),r=Eu(n),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,r.itemTypes.list()];case 2:return o=u.sent(),[2,(null==(i=o.find((function(e){return e.api_key===xo})))?void 0:i.id)||null];case 3:return a=u.sent(),console.error("Error checking for SVG model:",a),[2,null];case 4:return[2]}}))}))}function Iu(e,t,n){return ku(this,void 0,void 0,(function(){var r,o,i,a,u,s,l,c;return Pu(this,(function(f){switch(f.label){case 0:r=Eu({apiToken:e}),o=[],i=0,a=n,f.label=1;case 1:if(!(i<a.length))return[3,6];u=a[i],f.label=2;case 2:return f.trys.push([2,4,,5]),s=Ou({item_type:{type:"item_type",id:t},name:u.filename||"Untitled SVG",svg_content:u.raw,svg_type:u.type},"image"===u.type&&u.imageId?{media_upload:{upload_id:u.imageId}}:{}),[4,r.items.create(s)];case 3:return l=f.sent(),o.push(l),[3,5];case 4:return c=f.sent(),console.error("Error migrating SVG ".concat(u.filename||u.id,":"),c),[3,5];case 5:return i++,[3,1];case 6:return[2,o]}}))}))}var Nu=function(){return Nu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nu.apply(this,arguments)},ju=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Lu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},Du=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Fu(t){var n=this,r=t.ctx,o=r.plugin.attributes.parameters,i=(0,b.useState)(!1),a=i[0],u=i[1],s=(0,b.useState)(!1),l=s[0],c=s[1],f=(null==o?void 0:o.pageType)||go[0],p=(null==o?void 0:o.placement)||bo[0],d=(0,b.useMemo)((function(){return(null==o?void 0:o.menuItemPlacement)||Oo(f.value)[0]}),[null==o?void 0:o.menuItemPlacement,f.value]);function h(e){r.updatePluginParameters(Nu(Nu({},o),e)),r.notice("Settings updated successfully!")}var m=o.svgs&&o.svgs.length>0;return o.isSetupComplete?(0,e.jsxs)(T,{ctx:r,children:[(0,e.jsx)("h1",{style:{marginBottom:"1rem"},children:"Plugin Settings"}),(0,e.jsx)(A,{children:(0,e.jsxs)(z,{children:[(0,e.jsx)(fo,{name:"pageType",id:"pageType",label:"Where do you want to show the menu item?",value:f,selectInputProps:{options:go},onChange:function(e){h({pageType:e,menuItemPlacement:Oo(e.value)[0]})}}),(0,e.jsx)(fo,{name:"placement",id:"placement",label:"Show the menu item before or after the other menu items?",value:p,selectInputProps:{options:bo},onChange:function(e){h({placement:e})}}),(0,e.jsx)(fo,{name:"menuItemPlacement",id:"menuItemPlacement",label:"".concat("before"===p.value?"Before":"After"," which menu item do you want to show the menu item?"),value:d,selectInputProps:{options:Oo(f.value)},onChange:function(e){h({menuItemPlacement:e})}})]})}),m&&o.isSetupComplete&&(0,e.jsxs)("div",{style:{marginTop:"2rem",padding:"1rem",border:"1px solid var(--border-color)",borderRadius:"4px"},children:[(0,e.jsx)("h3",{style:{marginTop:0},children:"Migration"}),(0,e.jsxs)("p",{children:["You have ",o.svgs.length," SVG(s) stored in plugin parameters. Migrate them to records to avoid size limitations."]}),(0,e.jsx)(I,{buttonSize:"m",buttonType:"primary",onClick:function(){return ju(n,void 0,void 0,(function(){var e,t,n,i,a;return Lu(this,(function(s){switch(s.label){case 0:return 0===(e=o.svgs||[]).length?(r.alert("No SVGs to migrate!"),[2]):o.svgModelId?[4,r.openConfirm({title:"Migrate SVGs to Records",content:"This will migrate ".concat(e.length," SVG(s) from plugin parameters to records. This action cannot be undone. Continue?"),choices:[{label:"Migrate",value:"migrate",intent:"positive"},{label:"Cancel",value:"cancel",intent:"negative"}],cancel:{label:"Cancel",value:"cancel"}})]:(r.alert("SVG model not found! Please complete setup first."),[2]);case 1:if("migrate"!==s.sent())return[2];u(!0),s.label=2;case 2:return s.trys.push([2,5,6,7]),console.info("[Everything SVG] Backing up ".concat(e.length," SVG(s) before migration. Copy this data if you need to recover:"),JSON.stringify(e)),[4,Iu(r.currentUserAccessToken,o.svgModelId,e)];case 3:return t=s.sent(),n=e.length-t.length,o.svgs,i=Du(o,["svgs"]),[4,r.updatePluginParameters(Nu(Nu({},i),{svgs:[]}))];case 4:return s.sent(),n>0?r.alert("".concat(t.length," SVG(s) migrated successfully, but ").concat(n," failed. Check the browser console for details.")):r.notice("Successfully migrated ".concat(t.length," SVG(s) to records!")),[3,7];case 5:return a=s.sent(),console.error("Migration error:",a),r.alert("Migration failed: ".concat(a instanceof Error?a.message:"Unknown error")),[3,7];case 6:return u(!1),[7];case 7:return[2]}}))}))},disabled:a,children:a?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(L,{size:16}),(0,e.jsx)("span",{style:{marginLeft:"0.5rem"},children:"Migrating..."})]}):"Migrate SVGs to Records"})]})]}):(0,e.jsx)(T,{ctx:r,children:(0,e.jsxs)("div",{style:{maxWidth:"700px",margin:"2rem auto"},children:[(0,e.jsx)("h1",{style:{fontSize:"1.75rem",marginBottom:"1rem"},children:"Welcome to Everything SVG!"}),(0,e.jsx)("p",{style:{marginBottom:"1.5rem",lineHeight:"1.6"},children:"To use record-based storage for your SVGs, you need to create a model."}),(0,e.jsxs)("div",{style:{background:"var(--extra-light-bg)",border:"1px solid var(--border-color)",borderRadius:"4px",padding:"1.5rem",marginBottom:"1.5rem"},children:[(0,e.jsx)("h2",{style:{fontSize:"1.125rem",marginBottom:"1rem"},children:"Automatic Setup"}),(0,e.jsx)("p",{style:{marginBottom:"1rem",lineHeight:"1.6"},children:"Click below to automatically create the model:"}),(0,e.jsx)(I,{buttonSize:"l",buttonType:"primary",onClick:function(){return ju(n,void 0,void 0,(function(){var e,t,n,i,a,u,s,l,f,p,d;return Lu(this,(function(h){switch(h.label){case 0:if(!r.currentUserAccessToken)return r.alert("Authentication token not available. Please reload the page and try again."),[2];c(!0),h.label=1;case 1:return h.trys.push([1,9,10,11]),e=r.currentUserAccessToken,t=r.environment&&!r.environment.includes("navigation")?r.environment:void 0,[4,Cu(e,t)];case 2:return(n=h.sent())?(a={id:n},[3,5]):[3,3];case 3:return[4,Tu(e,t)];case 4:a=h.sent(),h.label=5;case 5:return i=a,u=o.svgs||[],s=0,u.length>0?(console.info("[Everything SVG] Backing up ".concat(u.length," SVG(s) before migration. Copy this data if you need to recover:"),JSON.stringify(u)),[4,Iu(e,i.id,u)]):[3,7];case 6:l=h.sent(),s=l.length,h.label=7;case 7:return f=u.length-s,o.svgs,p=Du(o,["svgs"]),[4,r.updatePluginParameters(Nu(Nu({},p),{svgModelId:i.id,isSetupComplete:!0}))];case 8:return h.sent(),f>0?r.alert("SVG model created. ".concat(s," SVG(s) migrated successfully, but ").concat(f," failed. Check the browser console for details.")):s>0?r.notice("SVG model created and ".concat(s," SVG(s) migrated successfully!")):r.notice("SVG model created successfully!"),[3,11];case 9:return d=h.sent(),console.error("Error creating model:",d),r.alert(d instanceof Error?d.message:"Failed to create SVG model"),[3,11];case 10:return c(!1),[7];case 11:return[2]}}))}))},disabled:l,children:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(L,{size:24}),(0,e.jsx)("span",{style:{marginLeft:"0.5rem"},children:"Creating model..."})]}):"Create SVG Model"}),(0,e.jsxs)("details",{style:{marginTop:"1rem",fontSize:"0.9rem"},children:[(0,e.jsx)("summary",{style:{cursor:"pointer",color:"var(--light-body-color)"},children:"Or create manually..."}),(0,e.jsxs)("ol",{style:{marginLeft:"1.5rem",marginTop:"0.75rem",lineHeight:"1.6"},children:[(0,e.jsx)("li",{children:"Go to Settings → Models"}),(0,e.jsx)("li",{children:'Create model: Name = "Plugin SVG", API key = "plugin_svg"'}),(0,e.jsx)("li",{children:"Add 4 fields: name, svg_content, svg_type, media_upload"}),(0,e.jsx)("li",{children:(0,e.jsx)(I,{buttonSize:"s",buttonType:"muted",onClick:function(){return ju(n,void 0,void 0,(function(){return Lu(this,(function(e){switch(e.label){case 0:return[4,r.updatePluginParameters(Nu(Nu({},o),{isSetupComplete:!0}))];case 1:return e.sent(),r.notice("Setup marked as complete!"),[2]}}))}))},style:{marginTop:"0.5rem"},children:"Mark as complete"})})]})]})]}),(0,e.jsx)("p",{style:{fontSize:"0.875rem",color:"var(--light-body-color)",fontStyle:"italic"},children:"Note: The plugin will work with parameter-based storage until you complete this setup."})]})})}const Au=JSON.parse('{"Te":"_switchInput__inner_1knbg_1","td":"_switchInput_1knbg_1","I4":"_switchInput__checked_1knbg_47","rf":"_switchInput__disabled_1knbg_60"}');var Ru=function(){return Ru=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ru.apply(this,arguments)},Mu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Vu(e){var t,n=e.className,r=e.value,o=e.disabled,i=e.onClick,a=e.onChange,u=e.onKeyDown,s=Mu(e,["className","value","disabled","onClick","onChange","onKeyDown"]);function l(e,t){!o&&a&&a(e,t)}var c=S()(Au.td,n,((t={})[Au.I4]=r,t[Au.rf]=o,t));return b.createElement("button",Ru({},s,{type:"button",role:"switch","aria-checked":r,disabled:o,className:c,onKeyDown:function(e){"ArrowLeft"===e.key?l(!1,e):"ArrowRight"===e.key&&l(!0,e),null==u||u(e)},onClick:function(e){l(!r,e),null==i||i(e)}}),b.createElement("span",{className:Au.Te}))}const zu=JSON.parse('{"Ai":"_switchField__flex_16z4j_1","rO":"_switchField__switchInput_16z4j_6","Tb":"_switchField__label_16z4j_10","s8":"_switchField__below_16z4j_22"}');var Uu=function(){return Uu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Uu.apply(this,arguments)};function qu(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.formLabelProps,s=e.value,l=e.onChange,c=e.switchInputProps;return b.createElement(b.Fragment,null,b.createElement("div",{className:zu.Ai},b.createElement("div",{className:zu.rO},b.createElement(Vu,Uu({},c,{name:n,value:s,onChange:l}))),b.createElement(B,Uu({},u,{htmlFor:t,required:a,className:S()(zu.Tb,null==u?void 0:u.className),error:!!i}),r)),(o||i)&&b.createElement("div",{className:zu.s8},i&&b.createElement(G,null,i),o&&b.createElement(Y,null,o)))}var Bu=o(6454);function Hu(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(0===(e=e.trim()).length)return!1;if(!0!==Bu.XMLValidator.validate(e))return!1;let t;const n=new Bu.XMLParser;try{t=n.parse(e)}catch{return!1}return!!t&&!!Object.keys(t).some((e=>"svg"===e.toLowerCase()))}function Gu(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z"})})}function $u(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"})})}var Yu="ImageViewer-module__border--CocHd",Wu="ImageViewer-module__caption--qKvmP",Qu="ImageViewer-module__clickable--YNkn4",Ku="ImageViewer-module__dropdown--V_fG8",Xu="ImageViewer-module__dropdownButton--edHOU",Ju="ImageViewer-module__dropdownDeleteButton--M4_Y7",Zu="ImageViewer-module__dropdownMenu--ziYe3",es="ImageViewer-module__dropdownMenuButton--Fnta0",ts="ImageViewer-module__dropdownMenuDeleteButton--Jj5DS",ns="ImageViewer-module__filename--ZX4Qx",rs="ImageViewer-module__image--PBt7a",os="ImageViewer-module__imageWithFilename--szUif",is="ImageViewer-module__medium--xtt2R",as="ImageViewer-module__raw--xfmgD",us="ImageViewer-module__root--PHPSR",ss="ImageViewer-module__selected--v7MzH",ls="ImageViewer-module__small--C5ma5",cs="ImageViewer-module__tag--PrjB5",fs="ImageViewer-module__tagText--LOlAw";function ps(t){var n,r,o,i,a=t.image,u=t.component,s=void 0===u?"div":u,l=t.selected,c=t.showTag,f=t.disabled,p=t.size,d=void 0===p?"l":p,h=t.onDelete,m=t.onShowUpload,y=t.onShowRaw,v=t.onClick,g=(0,b.useState)(!1),w=g[0],_=g[1],x=null,E=v?"button":s,O=(o=function(){return _(!1)},i=(0,b.useRef)(),(0,b.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&o()};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[i]),i);return"svg"===a.type&&(x=(0,e.jsx)("div",{className:as,dangerouslySetInnerHTML:{__html:a.raw}})),"image"===a.type&&(x=(0,e.jsx)("img",{src:a.url,alt:a.filename})),(0,e.jsxs)(E,{className:S()(us,(n={},n[Yu]=v||h,n[Qu]=v,n[ss]=l,n[ls]="s"===d,n[is]="m"===d,n)),onClick:v?function(){return v(a)}:void 0,disabled:f,children:[(h||m||y)&&(0,e.jsxs)("div",{ref:O,children:[(0,e.jsx)("div",{className:Ku,children:y||m||!h?(0,e.jsxs)("button",{type:"button",className:Xu,onClick:function(){return _(!w)},children:[(0,e.jsx)(Gu,{}),(0,e.jsx)("span",{className:"sr-only",children:w?"Close menu":"Open menu"})]}):(0,e.jsxs)("button",{type:"button",className:S()(Xu,Ju),onClick:function(){return h(a)},children:[(0,e.jsx)($u,{}),(0,e.jsx)("span",{className:"sr-only",children:"Delete icon"})]})}),w&&(0,e.jsxs)("div",{className:Zu,children:["svg"===a.type&&y&&(0,e.jsx)("button",{type:"button",className:es,onClick:function(){return y(a)},children:"Show raw details"}),"image"===a.type&&m&&(0,e.jsx)("button",{type:"button",className:es,onClick:function(){return m(a)},children:"Show image details"}),h&&(0,e.jsx)("button",{type:"button",className:ts,onClick:function(){return h(a)},children:"Delete"})]})]}),c&&(0,e.jsx)("div",{className:cs,children:(0,e.jsxs)("p",{className:S()(fs,"body--small"),children:["svg"===a.type&&"Raw"," ","image"===a.type&&"Raw + Image"]})}),(0,e.jsx)("div",{className:S()(rs,(r={},r[os]=a.filename,r)),children:x}),a.filename&&(0,e.jsx)("div",{className:Wu,children:(0,e.jsx)("span",{className:S()("body--medium",ns),children:a.filename})})]})}var ds="ImageList-module__root--zkSEd",hs="ImageList-module__small--Zz7tX",ms="ImageList-module__spinner--GZyBO";function ys(t){var n,r=t.svgs,o=t.activeSvgs,i=t.onDelete,a=t.onShowUpload,u=t.onShowRaw,s=t.onClick,l=t.size,c=t.showTag,f=t.disabled,p=t.isLoading;return r&&0!==r.length?(0,e.jsxs)("ul",{className:S()(ds,(n={},n[hs]="s"===l,n)),children:[null==r?void 0:r.map((function(t){var n;return(0,e.jsx)(ps,{component:"li",image:t,onDelete:i,onShowUpload:a,onShowRaw:u,onClick:s,selected:null===(n=null==o?void 0:o.map((function(e){return e.id})))||void 0===n?void 0:n.includes(t.id),size:l,showTag:c,disabled:f},t.id)})),p&&(0,e.jsx)("div",{className:ms,children:(0,e.jsx)(L,{})})]}):null}var vs="SvgViewer-module__filenameInput--YggJw",gs="SvgViewer-module__root--JLl6V",bs="SvgViewer-module__svgInput--p8Mqd",ws="SvgViewer-module__text--FQb4f",_s="SvgViewer-module__textarea--P5eOo",Ss="SvgViewer-module__viewer--ps6H1",xs="SvgViewer-module__viewerFilename--gMlUO",Es="SvgViewer-module__viewerSvg--RPqBE",Os="SvgViewer-module__viewerSvgElement--VfV8v",ks="SvgViewer-module__viewerText--L91TL";function Ps(t){var n=t.value,r=t.onChangeSvg,o=t.filename,i=t.onChangeFilename,a=(0,b.useMemo)((function(){return n&&!Hu(n)}),[n]);return(0,e.jsxs)("form",{className:gs,children:[(0,e.jsxs)("div",{className:bs,children:[(0,e.jsx)("label",{className:"sr-only",htmlFor:"embeded-svg",children:"Embeded svg"}),(0,e.jsx)("textarea",{className:_s,name:"embeded-svg",id:"embeded-svg",value:n,onChange:function(e){return r(e.target.value)},placeholder:"<svg>Paste your svg here</svg>"})]}),(0,e.jsxs)("div",{className:Ss,children:[(0,e.jsxs)("div",{className:Es,children:[Hu(n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{className:Os,dangerouslySetInnerHTML:{__html:n}})}),(a||!n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:ks,children:[n&&a&&(0,e.jsx)(G,{children:"Use a valid svg string"}),!n&&(0,e.jsxs)("p",{className:ws,children:[(0,e.jsx)("span",{className:"h3",children:"Nothing to show"}),(0,e.jsx)("span",{className:"body--medium",children:"Input a valid svg"})]})]})})]}),(0,e.jsx)("div",{className:xs,children:Hu(n)&&i&&(0,e.jsx)("input",{className:vs,value:o,onChange:function(e){return i(e.target.value)},autoFocus:!0})})]})]})}function Ts(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})})}var Cs=function(){return Cs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cs.apply(this,arguments)},Is=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Ns=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function js(e){var t={id:e.id,filename:e.name||void 0,raw:e.svg_content};return"image"===e.svg_type&&e.media_upload?Cs(Cs({},t),{type:"image",imageId:e.media_upload.upload_id,url:e.media_upload.url}):Cs(Cs({},t),{type:"svg"})}function Ls(e,t){var n={apiToken:e};return t&&(n.environment=t),Eu(n)}function Ds(e,t){return Is(this,void 0,void 0,(function(){var n;return Ns(this,(function(r){switch(r.label){case 0:if("image"!==t.svg_type||!t.media_upload)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.uploads.find(t.media_upload.upload_id)];case 2:return n=r.sent(),t.media_upload.url=n.url,[3,4];case 3:return r.sent(),[3,4];case 4:return[2]}}))}))}function Fs(e){var t={id:e.id,name:e.name||"Untitled",svg_content:e.svg_content||"",svg_type:e.svg_type||"svg"};return e.media_upload&&"object"==typeof e.media_upload&&(t.media_upload={upload_id:e.media_upload.upload_id,url:""}),t}function As(e,t,n){return Is(this,void 0,void 0,(function(){var r,o,i,a;return Ns(this,(function(u){switch(u.label){case 0:r=Ls(e,n),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,r.items.list({filter:{type:t},page:{limit:500},version:"current"})];case 2:return o=u.sent(),i=o.map((function(e){return Fs(e)})),[4,Promise.all(i.map((function(e){return Ds(r,e)})))];case 3:return u.sent(),[2,i];case 4:return a=u.sent(),console.error("Error loading SVG records:",a),[2,[]];case 5:return[2]}}))}))}function Rs(e,t,n,r){return Is(this,void 0,void 0,(function(){var o,i,a,u;return Ns(this,(function(s){switch(s.label){case 0:o=Ls(e,r),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,o.items.create(Cs({item_type:{type:"item_type",id:t}},n))];case 2:return i=s.sent(),a=Fs(i),[4,Ds(o,a)];case 3:return s.sent(),[2,a];case 4:return u=s.sent(),console.error("Error creating SVG record:",u),[2,null];case 5:return[2]}}))}))}function Ms(e,t,n,r){return Is(this,void 0,void 0,(function(){var o,i;return Ns(this,(function(a){switch(a.label){case 0:o=Ls(e,r),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,o.items.update(t,n)];case 2:return[2,Fs(a.sent())];case 3:return i=a.sent(),console.error("Error updating SVG record:",i),[2,null];case 4:return[2]}}))}))}function Vs(e,t,n){return Is(this,void 0,void 0,(function(){var r,o;return Ns(this,(function(i){switch(i.label){case 0:r=Ls(e,n),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.items.destroy(t)];case 2:return i.sent(),[2,!0];case 3:return o=i.sent(),console.error("Error deleting SVG record:",o),[2,!1];case 4:return[2]}}))}))}var zs=function(){return zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zs.apply(this,arguments)},Us=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},qs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},Bs=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Hs(t){var n,r=t.ctx,o=r.plugin.attributes.parameters,i=(0,b.useState)([]),a=i[0],u=i[1],s=(0,b.useState)(""),l=s[0],c=s[1],f=(0,b.useState)(vo),p=f[0],d=f[1],h=(0,b.useState)(!1),m=h[0],y=h[1],v=(0,b.useState)(!1),g=v[0],w=v[1],_=(0,b.useState)(!0),S=_[0],x=_[1],E=(0,b.useState)(!1),O=E[0],k=E[1],P=r.currentUserAccessToken,C=r.environment;function N(e){return Us(this,void 0,void 0,(function(){var t;return qs(this,(function(n){switch(n.label){case 0:if(!e||!Hu(e))return[2];if(!o.svgModelId||!P)return r.alert("SVG model not found. Please complete setup."),[2];n.label=1;case 1:return n.trys.push([1,,3,4]),y(!0),[4,Rs(P,o.svgModelId,{name:p,svg_content:e,svg_type:"svg"},C)];case 2:return(t=n.sent())?(u(Bs([t],a,!0)),r.notice("SVG uploaded successfully!")):r.alert("Failed to create SVG record"),[3,4];case 3:return y(!1),c(""),d(vo),[7];case 4:return[2]}}))}))}function j(e){return Us(this,void 0,void 0,(function(){var t,i,s,l;return qs(this,(function(f){switch(f.label){case 0:if(!e||!Hu(e))return[2];if(!o.svgModelId||!P)return r.alert("SVG model not found. Please complete setup."),[2];t=new Blob([e],{type:"image/svg+xml"}),i=new File([t],p),f.label=1;case 1:return f.trys.push([1,,4,5]),y(!0),[4,n.uploads.createFromFileOrBlob({fileOrBlob:i,filename:"".concat(p,".svg")})];case 2:return s=f.sent(),[4,Rs(P,o.svgModelId,{name:p,svg_content:e,svg_type:"image",media_upload:{upload_id:s.id}},C)];case 3:return(l=f.sent())?(u(Bs([l],a,!0)),r.notice("SVG uploaded successfully!")):r.alert("Failed to create SVG record"),[3,5];case 4:return y(!1),c(""),d(vo),[7];case 5:return[2]}}))}))}function D(e){return Us(this,void 0,void 0,(function(){var t;return qs(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),w(!0),[4,n.uploads.destroy(e)];case 1:return r.sent(),[3,4];case 2:return t=r.sent(),console.error(t),[3,4];case 3:return w(!1),[7];case 4:return[2]}}))}))}function F(e){return Us(this,void 0,void 0,(function(){var t;return qs(this,(function(n){switch(n.label){case 0:return P&&(t=a.find((function(t){return t.id===e.id})))?"image"===t.svg_type&&t.media_upload?[4,D(t.media_upload.upload_id)]:[3,2]:[2];case 1:n.sent(),n.label=2;case 2:return[4,Vs(P,t.id,C)];case 3:return n.sent()?(u(a.filter((function(e){return e.id!==t.id}))),r.notice("SVG deleted successfully!")):r.alert("Failed to delete SVG"),[2]}}))}))}function A(e){return Us(this,void 0,void 0,(function(){var t;return qs(this,(function(n){switch(n.label){case 0:return P?[4,Ms(P,e.id,{name:e.filename},C)]:[2];case 1:return(t=n.sent())?(u(a.map((function(n){return n.id===e.id?t:n}))),r.notice("SVG renamed successfully!")):r.alert("Failed to rename SVG"),[2]}}))}))}P&&(n=Eu({apiToken:P,environment:C})),(0,b.useEffect)((function(){!function(){Us(this,void 0,void 0,(function(){var e;return qs(this,(function(t){switch(t.label){case 0:return o.svgModelId&&P?[4,As(P,o.svgModelId,C)]:(x(!1),[2]);case 1:return e=t.sent(),u(e),x(!1),[2]}}))}))}()}),[o.svgModelId,P]);var R=a.map(js);return(0,e.jsx)(T,{ctx:r,children:(0,e.jsxs)("div",{className:"layout",children:[(0,e.jsx)(Ps,{value:l,onChangeSvg:c,filename:p,onChangeFilename:d}),(0,e.jsxs)("div",{className:"PageScreen-module__uploadContainer--unBcu",children:[m&&(0,e.jsx)(L,{}),!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(I,{disabled:!Hu(l),onClick:function(){return function(e){return Us(this,void 0,void 0,(function(){return qs(this,(function(t){switch(t.label){case 0:return O?[4,j(e)]:[3,2];case 1:case 3:return t.sent(),[2];case 2:return[4,N(e)]}}))}))}(l)},leftIcon:(0,e.jsx)(Ts,{}),children:"Upload raw svg"}),P&&(0,e.jsx)("div",{children:(0,e.jsx)(qu,{name:"uploadToMedia",id:"uploadToMedia",label:"Upload SVG to the Media library",value:O,onChange:function(e){return k(e)}})})]})]}),(0,e.jsx)("h3",{className:"h2",children:"Uploaded svgs"}),S&&(0,e.jsx)(L,{}),!S&&0===R.length&&(0,e.jsx)("p",{children:"Nothing to show (yet)"}),!S&&(0,e.jsx)(ys,{svgs:R,onDelete:g?void 0:F,onShowUpload:function(e){return Us(this,void 0,void 0,(function(){var t;return qs(this,(function(n){switch(n.label){case 0:return"image"!==e.type?[2]:[4,r.editUpload(e.imageId)];case 1:return(t=n.sent())&&t.deleted?[4,F(e)]:[3,3];case 2:return n.sent(),[2];case 3:return t&&t.attributes.basename!==e.filename?[4,A(zs(zs({},e),{filename:t.attributes.basename}))]:[3,5];case 4:n.sent(),n.label=5;case 5:return[2]}}))}))},onShowRaw:function(e){return Us(this,void 0,void 0,(function(){var t;return qs(this,(function(n){switch(n.label){case 0:return"svg"!==e.type?[2]:(t=null,[4,r.openModal({id:yo,title:"Raw details",width:"s",parameters:{rawSvg:e}})]);case 1:return(t=n.sent())&&t.deleted?[4,F(e)]:[3,3];case 2:return n.sent(),[2];case 3:return t&&t.filename!==e.filename?[4,A(zs(zs({},e),{filename:t.filename}))]:[3,5];case 4:n.sent(),n.label=5;case 5:return[2]}}))}))},isLoading:g,showTag:!0})]})})}var Gs=function(){return Gs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gs.apply(this,arguments)},$s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Ys(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=n.parameters,i=(0,b.useState)(o.selectedSvgs||[]),a=i[0],u=i[1],s=(0,b.useState)(o.showAllSvgs||!1),l=s[0],c=s[1];return(0,b.useEffect)((function(){n.setParameters(Gs(Gs({},o),{selectedSvgs:l?[]:a,showAllSvgs:l}))}),[a,l]),(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("h2",{className:"FieldExtensionConfigScreen-module__heading--ZG1IO",children:"Select the svgs that are selectable for the user"}),(0,e.jsx)("div",{className:"FieldExtensionConfigScreen-module__switch--g3jVD",children:(0,e.jsx)(qu,{name:"showAllSvgs",id:"showAllSvgs",label:"Select all SVGs",hint:"When this is selected you can select all SVGs uploaded in this field",value:l,onChange:c})}),(0,e.jsx)(ys,{svgs:r.svgs,activeSvgs:l?r.svgs:o.selectedSvgs,onClick:function(e){var t;if(null===(t=null==a?void 0:a.map((function(e){return e.id})))||void 0===t?void 0:t.includes(e.id)){var n=null==a?void 0:a.filter((function(t){return t.id!==e.id}));u(n)}else u($s($s([],a,!0),[e],!1))},disabled:l,showTag:!0})]})}const Ws=JSON.parse('{"rI":"_SidebarPanel_4uwco_1","MR":"_SidebarPanel__header_4uwco_5","CI":"_SidebarPanel__header__title_4uwco_30","n5":"_SidebarPanel__header__chevron_4uwco_36","w0":"_SidebarPanel__content_4uwco_42","FT":"_SidebarPanel__content--no-padding_4uwco_47"}');function Qs(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))}function Ks(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))}function Xs(e){var t,n=e.startOpen,r=void 0!==n&&n,o=e.title,i=e.children,a=e.noPadding,u=(0,b.useState)(r),s=u[0],l=u[1];return b.createElement("div",{className:Ws.rI},o&&b.createElement("button",{type:"button",className:Ws.MR,onClick:function(){l(!s)}},b.createElement("div",{className:Ws.CI},o),b.createElement("div",{className:Ws.n5},s?b.createElement(Qs,null):b.createElement(Ks,null))),s&&b.createElement("div",{className:S()(Ws.w0,(t={},t[Ws.FT]=a,t))},i))}var Js="RawSvgViewer-module__button--JR2Fm",Zs="RawSvgViewer-module__buttonList--bMN0E",el="RawSvgViewer-module__deleteButton--DuioO",tl="RawSvgViewer-module__editing--LVDdB",nl="RawSvgViewer-module__editingText--wLDy_",rl="RawSvgViewer-module__header--_aaee",ol="RawSvgViewer-module__input--i7vSo",il="RawSvgViewer-module__rawCode--hMDfX",al="RawSvgViewer-module__svgLogo--ROrY7",ul="RawSvgViewer-module__title--R0gYS",sl=function(){return sl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sl.apply(this,arguments)};function ll(t){var n,r=t.svg,o=t.onRename,i=t.onDelete,a=(0,b.useState)(!1),u=a[0],s=a[1],l=(0,b.useState)(r.filename),c=l[0],f=l[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:S()(rl,(n={},n[tl]=u,n)),children:[(0,e.jsx)("div",{className:al,dangerouslySetInnerHTML:{__html:r.raw}}),(0,e.jsxs)("div",{children:[u?(0,e.jsx)("input",{className:ol,value:c,onChange:function(e){return f(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&o&&o(sl(sl({},r),{filename:c}))}}):(0,e.jsx)("h2",{className:S()("h3",ul),children:c}),(0,e.jsx)("div",{className:Zs,children:u?(0,e.jsx)("p",{className:nl,children:"Press Enter to confirm"}):(0,e.jsxs)(e.Fragment,{children:[o&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{className:Js,type:"button",onClick:function(){s(!0)},children:(0,e.jsx)("span",{children:"Rename"})}),(0,e.jsx)("span",{children:"•"})]}),i&&(0,e.jsx)("button",{className:S()(Js,el),type:"button",onClick:function(){return i(r)},children:(0,e.jsx)("span",{children:"Delete"})})]})})]})]}),(0,e.jsx)(Xs,{title:"Raw data",startOpen:!0,children:(0,e.jsx)("pre",{className:il,children:r.raw})})]})}var cl=function(){return cl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cl.apply(this,arguments)};function fl(t){var n=t.ctx,r=n.parameters;return(0,e.jsx)(T,{ctx:n,children:r.rawSvg?(0,e.jsx)(ll,{svg:r.rawSvg,onDelete:function(e){n.resolve(cl(cl({},e),{deleted:!0}))},onRename:function(e){n.resolve(e)}}):(0,e.jsx)("p",{children:"Nothing to show here"})})}var pl=o(5338),dl=document.getElementById("root"),hl=(0,pl.H)(dl);function ml(t){return hl.render((0,e.jsx)(b.StrictMode,{children:t}))}var yl=o(8156),vl=o.n(yl);function gl(t){var n=t.ctx,r=String(vl()(n.formValues,n.fieldPath)),o=n.plugin.attributes.parameters,i=n.parameters,a=(0,b.useState)([]),u=a[0],s=a[1],l=(0,b.useState)(!0),c=l[0],f=l[1];(0,b.useEffect)((function(){!function(){var e,t,r,i;e=this,t=void 0,i=function(){var e,t;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(r){switch(r.label){case 0:if(!o.svgModelId||!n.currentUserAccessToken||!o.isSetupComplete)return f(!1),[2];r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,As(n.currentUserAccessToken,o.svgModelId,n.environment)];case 2:return e=r.sent(),s(e),[3,5];case 3:return t=r.sent(),console.error("Error loading SVG records:",t),[3,5];case 4:return f(!1),[7];case 5:return[2]}}))},new((r=void 0)||(r=Promise))((function(n,o){function a(e){try{s(i.next(e))}catch(e){o(e)}}function u(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((i=i.apply(e,t||[])).next())}))}()}),[o.svgModelId,o.isSetupComplete,n.currentUserAccessToken]);var p=u.map(js),d=i.showAllSvgs?o.svgs:i.selectedSvgs,h=p.length>0||o.isSetupComplete?p:d||[],m=(0,e.jsx)("p",{children:"No SVG images to show"});return c?m=(0,e.jsx)(L,{}):r?m=(0,e.jsx)("div",{className:"FieldExtension-module__content--JmNOb",children:(0,e.jsx)(ps,{size:"s",image:{id:n.field.id,raw:r,type:"svg"},onDelete:function(){n.setFieldValue(n.fieldPath,"")}})}):h&&h.length>0&&(m=(0,e.jsx)(ys,{svgs:h,onClick:function(e){n.setFieldValue(n.fieldPath,e.raw)},size:"s"})),(0,e.jsx)(T,{ctx:n,children:m})}var bl=function(){return bl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bl.apply(this,arguments)},wl=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},_l=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function Sl(e,t){return wl(this,void 0,void 0,(function(){var n,r=this;return _l(this,(function(o){switch(o.label){case 0:return[4,e.loadFieldsUsingPlugin()];case 1:return n=o.sent(),[4,Promise.all(n.map((function(n){return wl(r,void 0,void 0,(function(){var r,o;return _l(this,(function(i){switch(i.label){case 0:return r=n.attributes.appearance.parameters,t&&r.selectedSvgs?(o=r.selectedSvgs.filter((function(e){return null==t?void 0:t.find((function(t){return t.id===e.id}))})),[4,e.updateFieldAppearance(n.id,[{operation:"updateEditor",newParameters:bl(bl({},r),{selectedSvgs:o})}])]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))})))];case 2:return o.sent(),[2]}}))}))}var xl=function(){return xl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xl.apply(this,arguments)},El=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Ol=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};!function(e){var t,r,o,b;void 0===e&&(e={}),t=this,r=void 0,b=function(){var t,r,o,b,w,_,S,x,E,O,k,P,T,C,I,N,j,L,D,F,A,R,M;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(V){switch(V.label){case 0:return t=e.assetSources,r=e.mainNavigationTabs,o=e.settingsAreaSidebarItemGroups,b=e.contentAreaSidebarItems,w=e.manualFieldExtensions,_=e.itemFormSidebarPanels,S=e.itemFormSidebars,x=e.itemFormOutlets,E=null,O=null,k=n()({methods:{sdkVersion:function(){return"0.2.0"},implementedHooks:function(){return Object.fromEntries(Object.entries(e).map((function(e){var t=e[0],n=e[1];return"function"==typeof n?[t,!0]:[t,n]})))},assetSources:t,mainNavigationTabs:r,settingsAreaSidebarItemGroups:o,contentAreaSidebarItems:b,manualFieldExtensions:w,itemFormSidebarPanels:_,itemFormSidebars:S,itemFormOutlets:x,overrideFieldExtensions:v(e.overrideFieldExtensions),customMarksForStructuredTextField:v(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:v(e.customBlockStylesForStructuredTextField),onChange:function(e){E&&E(e)},callMethodMergingBootCtx:function(e,t,n){return O?O(e,t,n):null}}}),[4,k.promise];case 1:return[4,(P=V.sent()).getSettings()];case 2:return T=V.sent(),i(P,T)&&(C=T,E=function(e){C=e},O=function(t,n,r){var o;if(t in e)return(o=e)[t].apply(o,y(y([],n,!1),[m(m(m({},P),C),r)],!1))},e.onBoot&&e.onBoot(m(m({},P),C))),a(P,T)&&(E=M=function(t){e.renderPage&&e.renderPage(t.pageId,m(m({},P),t))},M(T)),u(P,T)&&(I=g(P),E=M=function(t){e.renderConfigScreen&&e.renderConfigScreen(m(m(m({},P),t),I))},M(T)),s(P,T)&&(N=g(P),E=M=function(t){e.renderModal&&e.renderModal(t.modalId,m(m(m({},P),t),N))},M(T)),h(P,T)&&(j=g(P),E=M=function(t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,m(m(m({},P),t),j))},M(T)),l(P,T)&&(L=g(P),E=M=function(t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,m(m(m({},P),t),L))},M(T)),c(P,T)&&(D=g(P),E=M=function(t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,m(m(m({},P),t),D))},M(T)),f(P,T)&&(F=g(P),E=M=function(t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,m(m(m({},P),t),F))},M(T)),p(P,T)&&(A=g(P),E=M=function(t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,m(m(m({},P),t),A))},M(T)),d(P,T)&&(R=g(P),E=M=function(t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,m(m(m({},P),t),R))},M(T)),[2]}}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{u(b.next(e))}catch(e){n(e)}}function a(e){try{u(b.throw(e))}catch(e){n(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}u((b=b.apply(t,r||[])).next())}))}({onBoot:function(e){return El(this,void 0,void 0,(function(){var t,n;return Ol(this,(function(r){switch(r.label){case 0:return(t=e.plugin.attributes.parameters).isSetupComplete?[3,3]:[4,Cu(e.currentUserAccessToken,e.environment)];case 1:return(n=r.sent())?[4,e.updatePluginParameters(xl(xl({},t),{svgModelId:n,isSetupComplete:!0}))]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,Sl(e,t.svgs)];case 4:return r.sent(),[2]}}))}))},renderConfigScreen:function(t){return ml((0,e.jsx)(Fu,{ctx:t}))},mainNavigationTabs:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==so.MainNavigationTabs)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||bo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||So[0].value];return[{label:po,icon:mo,placement:i,pointsTo:{pageId:"".concat(ho,"--").concat(e.plugin.id)}}]},contentAreaSidebarItems:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==so.ContentAreaSidebarItems)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||bo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||wo[0].value];return[{label:po,icon:mo,placement:i,pointsTo:{pageId:"".concat(ho,"--").concat(e.plugin.id)}}]},settingsAreaSidebarItemGroups:function(e){var t,n,r,o=e.plugin.attributes.parameters;return e.currentRole.meta.final_permissions.can_edit_schema||(null===(t=o.pageType)||void 0===t?void 0:t.value)===so.SettingsAreaSidebarItemGroups?[{label:"Plugin",placement:[(null===(n=o.placement)||void 0===n?void 0:n.value)||bo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||_o[0].value],items:[{label:po,icon:mo,pointsTo:{pageId:"".concat(ho,"--").concat(e.plugin.id)}}]}]:[]},renderPage:function(t,n){if(t==="".concat(ho,"--").concat(n.plugin.id))return ml((0,e.jsx)(Hs,{ctx:n}))},renderModal:function(t,n){if(t===yo)return ml((0,e.jsx)(fl,{ctx:n}))},manualFieldExtensions:function(){return[{id:"svg-selector",name:"SVG Selector",type:"editor",fieldTypes:["string","text"],configurable:!0}]},renderManualFieldExtensionConfigScreen:function(t,n){return ml((0,e.jsx)(Ys,{ctx:n}))},renderFieldExtension:function(t,n){return ml((0,e.jsx)(gl,{ctx:n}))},buildItemPresentationInfo:function(e,t){return El(this,void 0,void 0,(function(){var n,r,o,i,a,u,s,l,c,f,p,d,h,m,y,v,g,b,w,_;return Ol(this,(function(S){switch(S.label){case 0:return n=e.relationships.item_type.data.id,r=t.itemTypes[n],o=null===(v=null===(y=r.relationships)||void 0===y?void 0:y.image_preview_field.data)||void 0===v?void 0:v.id,i=o&&(null===(g=t.fields[o])||void 0===g?void 0:g.attributes.api_key),(null==(a=i?e.attributes[i]:null)?void 0:a.upload_id)?[2,void 0]:(u=null===(w=null===(b=r.relationships)||void 0===b?void 0:b.title_field.data)||void 0===w?void 0:w.id,s=u&&(null===(_=t.fields[u])||void 0===_?void 0:_.attributes.api_key),l=s?e.attributes[s]:"",[4,t.loadFieldsUsingPlugin()]);case 1:return c=S.sent(),f=t.plugin.id,p=c.filter((function(e){return e.attributes.appearance.editor===f})),d=r.relationships.fields.data.map((function(e){return e.id})),h=function(){for(var n,r=0,o=p;r<o.length;r++){var i=o[r].id,a=null===(n=t.fields[i])||void 0===n?void 0:n.attributes.api_key;if(d.includes(i)&&a){var u=e.attributes[a],s="string"==typeof u?u.trim():void 0;if(s)return s}}}(),h?(m=h?btoa(h):void 0,[2,{title:l,imageUrl:m?"data:image/svg+xml;base64,".concat(m):void 0}]):[2,void 0]}}))}))}})})()})();
|