notebook 7.1.3__py3-none-any.whl → 7.2.0a0__py3-none-any.whl
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.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/static/1053.bundle.js +1 -1
- notebook/static/1198.bundle.js +1 -1
- notebook/static/131.bundle.js +1 -1
- notebook/static/134.bundle.js +1 -1
- notebook/static/1408.bundle.js +1 -1
- notebook/static/1496.bundle.js +1 -1
- notebook/static/1584.bundle.js +1 -1
- notebook/static/1647.bundle.js +1 -1
- notebook/static/1650.bundle.js +1 -1
- notebook/static/1684.bundle.js +1 -1
- notebook/static/1809.bundle.js +1 -1
- notebook/static/1827.bundle.js +1 -1
- notebook/static/1828.bundle.js +1 -0
- notebook/static/1833.bundle.js +1 -1
- notebook/static/1846.bundle.js +1 -1
- notebook/static/1950.bundle.js +1 -1
- notebook/static/1958.bundle.js +1 -1
- notebook/static/2007.bundle.js +1 -1
- notebook/static/2065.bundle.js +1 -1
- notebook/static/2067.bundle.js +1 -1
- notebook/static/2088.bundle.js +1 -1
- notebook/static/2089.bundle.js +1 -1
- notebook/static/2122.bundle.js +1 -1
- notebook/static/2167.bundle.js +1 -1
- notebook/static/2184.bundle.js +1 -1
- notebook/static/2311.bundle.js +1 -1
- notebook/static/2323.bundle.js +1 -1
- notebook/static/2401.bundle.js +1 -1
- notebook/static/2479.bundle.js +1 -1
- notebook/static/2489.bundle.js +1 -1
- notebook/static/2512.bundle.js +1 -1
- notebook/static/2552.bundle.js +1 -1
- notebook/static/2557.bundle.js +743 -0
- notebook/static/2577.bundle.js +1 -1
- notebook/static/2607.bundle.js +1 -1
- notebook/static/2615.bundle.js +1 -1
- notebook/static/2924.bundle.js +1 -1
- notebook/static/2944.bundle.js +1 -1
- notebook/static/2955.bundle.js +1 -1
- notebook/static/3129.bundle.js +1 -1
- notebook/static/3146.bundle.js +1 -1
- notebook/static/3154.bundle.js +1 -1
- notebook/static/3187.bundle.js +1 -1
- notebook/static/3213.bundle.js +1 -1
- notebook/static/3301.bundle.js +1 -1
- notebook/static/3340.bundle.js +1 -1
- notebook/static/3360.bundle.js +1 -1
- notebook/static/3466.bundle.js +1 -1
- notebook/static/3512.bundle.js +1 -1
- notebook/static/3654.bundle.js +1 -1
- notebook/static/3676.bundle.js +1 -1
- notebook/static/3680.bundle.js +1 -1
- notebook/static/3768.bundle.js +1 -1
- notebook/static/377.bundle.js +1 -1
- notebook/static/3797.bundle.js +1 -1
- notebook/static/3863.bundle.js +1 -1
- notebook/static/3881.bundle.js +1 -1
- notebook/static/4042.bundle.js +1 -1
- notebook/static/4058.bundle.js +1 -1
- notebook/static/4212.bundle.js +1 -1
- notebook/static/4382.bundle.js +1 -1
- notebook/static/4588.bundle.js +1 -1
- notebook/static/4645.bundle.js +1 -1
- notebook/static/4670.bundle.js +1 -1
- notebook/static/4810.bundle.js +1 -1
- notebook/static/4811.bundle.js +1 -1
- notebook/static/4837.bundle.js +1 -1
- notebook/static/5099.bundle.js +1 -1
- notebook/static/5135.bundle.js +1 -1
- notebook/static/5166.bundle.js +1 -0
- notebook/static/5261.bundle.js +1 -1
- notebook/static/5263.bundle.js +1 -1
- notebook/static/5313.bundle.js +1 -1
- notebook/static/5325.bundle.js +1 -1
- notebook/static/5346.bundle.js +1 -1
- notebook/static/5426.bundle.js +1 -1
- notebook/static/545.bundle.js +1 -0
- notebook/static/5573.bundle.js +1 -1
- notebook/static/5601.bundle.js +1 -1
- notebook/static/5649.bundle.js +3 -3
- notebook/static/5733.bundle.js +1 -1
- notebook/static/5828.bundle.js +1 -1
- notebook/static/5850.bundle.js +1 -1
- notebook/static/5912.bundle.js +1 -1
- notebook/static/5921.bundle.js +1 -1
- notebook/static/6017.bundle.js +1 -1
- notebook/static/6061.bundle.js +1 -1
- notebook/static/6139.bundle.js +1 -1
- notebook/static/62.bundle.js +1 -1
- notebook/static/6256.bundle.js +1 -1
- notebook/static/6271.bundle.js +1 -1
- notebook/static/6281.bundle.js +1 -1
- notebook/static/6345.bundle.js +1 -1
- notebook/static/6417.bundle.js +1 -1
- notebook/static/6604.bundle.js +1 -1
- notebook/static/6621.bundle.js +1 -1
- notebook/static/6627.bundle.js +1 -1
- notebook/static/6731.bundle.js +1 -1
- notebook/static/6815.bundle.js +1 -1
- notebook/static/6853.bundle.js +1 -0
- notebook/static/6893.bundle.js +1 -1
- notebook/static/690.bundle.js +1 -1
- notebook/static/6962.bundle.js +1 -1
- notebook/static/6972.bundle.js +1 -1
- notebook/static/6999.bundle.js +1 -1
- notebook/static/7153.bundle.js +1 -1
- notebook/static/7226.bundle.js +1 -1
- notebook/static/7252.bundle.js +1 -1
- notebook/static/7302.bundle.js +1 -1
- notebook/static/7386.bundle.js +1 -1
- notebook/static/7391.bundle.js +1 -1
- notebook/static/7394.bundle.js +1 -1
- notebook/static/7450.bundle.js +1 -1
- notebook/static/7543.bundle.js +1 -0
- notebook/static/7603.bundle.js +1 -1
- notebook/static/7639.bundle.js +1 -1
- notebook/static/7674.bundle.js +1 -1
- notebook/static/7684.bundle.js +1 -1
- notebook/static/7812.bundle.js +1 -1
- notebook/static/7819.bundle.js +1 -1
- notebook/static/7854.bundle.js +1 -0
- notebook/static/7866.bundle.js +1 -1
- notebook/static/7900.bundle.js +1 -1
- notebook/static/7906.bundle.js +1 -1
- notebook/static/7995.bundle.js +1 -1
- notebook/static/7997.bundle.js +1 -1
- notebook/static/8010.bundle.js +1 -1
- notebook/static/8471.bundle.js +1 -0
- notebook/static/8579.bundle.js +1 -1
- notebook/static/8633.bundle.js +1 -1
- notebook/static/8771.bundle.js +1 -1
- notebook/static/8781.bundle.js +1 -1
- notebook/static/8845.bundle.js +1 -1
- notebook/static/8875.bundle.js +1 -1
- notebook/static/8907.bundle.js +1 -1
- notebook/static/8928.bundle.js +1 -1
- notebook/static/8929.bundle.js +1 -1
- notebook/static/893.bundle.js +1 -1
- notebook/static/901.bundle.js +1 -1
- notebook/static/9068.bundle.js +1 -1
- notebook/static/911.bundle.js +1 -1
- notebook/static/9151.bundle.js +1 -1
- notebook/static/9161.bundle.js +1 -1
- notebook/static/9239.bundle.js +1 -1
- notebook/static/9268.bundle.js +1 -1
- notebook/static/9335.bundle.js +1 -1
- notebook/static/9341.bundle.js +1 -1
- notebook/static/9380.bundle.js +1 -1
- notebook/static/9605.bundle.js +1 -1
- notebook/static/9638.bundle.js +1 -1
- notebook/static/9680.bundle.js +1 -1
- notebook/static/9685.bundle.js +1 -1
- notebook/static/9752.bundle.js +1 -1
- notebook/static/9799.bundle.js +1 -1
- notebook/static/9821.bundle.js +1 -1
- notebook/static/9852.bundle.js +1 -1
- notebook/static/bundle.js +1 -1
- notebook/static/third-party-licenses.json +134 -128
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +15 -15
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +5 -5
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +10 -10
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +17 -17
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +12 -12
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +11 -11
- notebook-7.2.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.7788635067bbb0f78314.js +1 -0
- notebook-7.1.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.a1f037cc55c9ffb2e994.js → notebook-7.2.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.1e2ca839fc49c8dc7f13.js +1 -1
- notebook-7.2.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/993.b8375a7b921d370031f6.js +1 -0
- notebook-7.2.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.e5cd5d0bbfa59d2e79c6.js +1 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.1.3.dist-info → notebook-7.2.0a0.dist-info}/METADATA +2 -2
- {notebook-7.1.3.dist-info → notebook-7.2.0a0.dist-info}/RECORD +197 -197
- {notebook-7.1.3.dist-info → notebook-7.2.0a0.dist-info}/WHEEL +1 -1
- notebook/static/1337.bundle.js +0 -1
- notebook/static/1664.bundle.js +0 -743
- notebook/static/1682.bundle.js +0 -1
- notebook/static/1835.bundle.js +0 -1
- notebook/static/4558.bundle.js +0 -1
- notebook/static/5088.bundle.js +0 -1
- notebook/static/514.bundle.js +0 -1
- notebook/static/853.bundle.js +0 -1
- notebook-7.1.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/419.e980232a56ae53a39be0.js +0 -1
- notebook-7.1.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.1a379d1d7dc566a197da.js +0 -1
- notebook-7.1.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.a1a4e0e795dca61023d3.js +0 -1
- /notebook/static/{1664.bundle.js.LICENSE.txt → 2557.bundle.js.LICENSE.txt} +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
- {notebook-7.1.3.data → notebook-7.2.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.1.3.dist-info → notebook-7.2.0a0.dist-info}/entry_points.txt +0 -0
- {notebook-7.1.3.dist-info → notebook-7.2.0a0.dist-info}/licenses/LICENSE +0 -0
notebook/static/7995.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 7995.bundle.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7995],{57995:(e,r,t)=>{"use strict";function n(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function i(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),n(e.additionalItems)}function o(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}t.r(r),t.d(r,{ADDITIONAL_PROPERTIES_KEY:()=>s,ADDITIONAL_PROPERTY_FLAG:()=>a,ALL_OF_KEY:()=>u,ANY_OF_KEY:()=>c,CONST_KEY:()=>f,DEFAULT_KEY:()=>l,DEFINITIONS_KEY:()=>p,DEPENDENCIES_KEY:()=>d,ENUM_KEY:()=>m,ERRORS_KEY:()=>h,ErrorSchemaBuilder:()=>Sr,ID_KEY:()=>y,IF_KEY:()=>v,ITEMS_KEY:()=>g,JUNK_OPTION_ID:()=>b,NAME_KEY:()=>A,ONE_OF_KEY:()=>x,PROPERTIES_KEY:()=>w,REF_KEY:()=>E,REQUIRED_KEY:()=>O,RJSF_ADDITONAL_PROPERTIES_FLAG:()=>_,ROOT_SCHEMA_PREFIX:()=>I,SUBMIT_BTN_OPTIONS_KEY:()=>S,TranslatableString:()=>nt,UI_FIELD_KEY:()=>j,UI_GLOBAL_OPTIONS_KEY:()=>$,UI_OPTIONS_KEY:()=>D,UI_WIDGET_KEY:()=>P,allowAdditionalItems:()=>i,ariaDescribedByIds:()=>qr,asNumber:()=>o,canExpand:()=>F,createErrorHandler:()=>U,createSchemaUtils:()=>lr,dataURItoBlob:()=>pr,deepEquals:()=>L,descriptionId:()=>Lr,englishStringTranslator:()=>mr,enumOptionsDeselectValue:()=>yr,enumOptionsIndexForValue:()=>gr,enumOptionsIsSelected:()=>vr,enumOptionsSelectValue:()=>xr,enumOptionsValueForIndex:()=>hr,errorId:()=>Cr,examplesId:()=>Rr,findSchemaDefinition:()=>z,getClosestMatchingOption:()=>Be,getDateElementProps:()=>Er,getDefaultFormState:()=>Ze,getDiscriminatorFieldFromSchema:()=>Se,getDisplayLabel:()=>tr,getFirstMatchingOption:()=>ce,getInputProps:()=>Ir,getMatchingOption:()=>ue,getOptionMatchingSimpleDiscriminator:()=>se,getSchemaType:()=>je,getSubmitButtonOptions:()=>Pr,getTemplate:()=>Dr,getUiOptions:()=>N,getWidget:()=>Tr,guessType:()=>Ee,hasWidget:()=>kr,hashForSchema:()=>Ur,helpId:()=>Br,isConstant:()=>Ke,isCustomWidget:()=>er,isFilesArray:()=>rr,isFixedItems:()=>Ve,isMultiSelect:()=>ze,isObject:()=>n,isSelect:()=>Je,labelValue:()=>Kr,localToUTC:()=>Jr,mergeDefaultsWithFormData:()=>qe,mergeObjects:()=>Ye,mergeSchemas:()=>Pe,mergeValidationData:()=>nr,optionId:()=>Yr,optionsList:()=>Hr,orderProperties:()=>Gr,pad:()=>Qr,parseDateString:()=>Xr,rangeSpec:()=>_r,replaceStringParameters:()=>dr,retrieveSchema:()=>De,sanitizeDataForNewSchema:()=>or,schemaParser:()=>ht,schemaRequiresTrueValue:()=>Zr,shouldRender:()=>et,titleId:()=>Vr,toConstant:()=>zr,toDateString:()=>rt,toErrorList:()=>tt,toErrorSchema:()=>at,toIdSchema:()=>sr,toPathSchema:()=>cr,unwrapErrorHandler:()=>st,utcToLocal:()=>ut,validationDataMerge:()=>ct,withIdRefPrefix:()=>ft});const a="__additional_property",s="additionalProperties",u="allOf",c="anyOf",f="const",l="default",p="definitions",d="dependencies",m="enum",h="__errors",y="$id",v="if",g="items",b="_$junk_option_schema_id$_",A="$name",x="oneOf",w="properties",O="required",S="submitButtonOptions",E="$ref",_="__rjsf_additionalProperties",I="__rjsf_rootSchema",j="ui:field",P="ui:widget",D="ui:options",$="ui:globalOptions";function N(e={},r={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((r,t)=>{const i=e[t];return t===P&&n(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===D&&n(i)?{...r,...i}:{...r,[t.substring(3)]:i}}),{...r})}function F(e,r={},t){if(!e.additionalProperties)return!1;const{expandable:n=!0}=N(r);return!1===n?n:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties}var M=t(40861),T=t.n(M);function U(e){const r={[h]:[],addError(e){this[h].push(e)}};if(Array.isArray(e))return e.reduce(((e,r,t)=>({...e,[t]:U(r)})),r);if(T()(e)){const t=e;return Object.keys(t).reduce(((e,r)=>({...e,[r]:U(t[r])})),r)}return r}var k=t(65191),W=t.n(k);function L(e,r){return W()(e,r,((e,r)=>{if("function"==typeof e&&"function"==typeof r)return!0}))}var C=t(99729),R=t.n(C),B=t(90104),V=t.n(B),q=t(88208),Y=t(48159),K=t.n(Y);function J(e,r){const t=r[e];return[K()(r,[e]),t]}function z(e,r={}){let t=e||"";if(!t.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);t=decodeURIComponent(t.substring(1));const n=q.get(r,t);if(void 0===n)throw new Error(`Could not find a definition for ${e}.`);if(n[E]){const[e,t]=J(E,n),i=z(t,r);return Object.keys(e).length>0?{...e,...i}:i}return n}var H=t(73915),G=t.n(H),Q=t(78581),X=t.n(Q),Z=t(11611),ee=t.n(Z),re=t(47206),te=t.n(re),ne=t(34172),ie=t.n(ne),oe=t(41571),ae=t.n(oe);function se(e,r,t){var n;if(e&&t){const i=R()(e,t);if(void 0===i)return;for(let e=0;e<r.length;e++){const o=r[e],a=R()(o,[w,t],{});if("object"!==a.type&&"array"!==a.type){if(a.const===i)return e;if(null===(n=a.enum)||void 0===n?void 0:n.includes(i))return e}}}}function ue(e,r,t,n,i){if(void 0===r)return 0;const o=se(r,t,i);if(X()(o))return o;for(let o=0;o<t.length;o++){const a=t[o];if(i&&G()(a,[w,i])){const t=R()(r,i),s=R()(a,[w,i],{});if(e.isValid(s,t,n))return o}else if(a[w]){const t={anyOf:Object.keys(a[w]).map((e=>({required:[e]})))};let i;if(a.anyOf){const{...e}=a;e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(t),i=e}else i=Object.assign({},a,t);if(delete i.required,e.isValid(i,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function ce(e,r,t,n,i){return ue(e,r,t,n,i)}var fe=t(56141),le=t.n(fe),pe=t(47215),de=t.n(pe),me=t(42673),he=t.n(me),ye=t(15409),ve=t.n(ye),ge=t(84812),be=t.n(ge),Ae=t(83766),xe=t.n(Ae),we=t(64717),Oe=t.n(we);function Se(e){let r;const t=R()(e,"discriminator.propertyName",void 0);return te()(t)?r=t:void 0!==t&&console.warn(`Expecting discriminator to be a string, got "${typeof t}" instead`),r}function Ee(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}var _e=t(68946),Ie=t.n(_e);function je(e){let{type:r}=e;return!r&&e.const?Ee(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&(r=2===r.length&&r.includes("null")?r.find((e=>"null"!==e)):r[0]),r):"object"}function Pe(e,r){const t=Object.assign({},e);return Object.keys(r).reduce(((t,i)=>{const o=e?e[i]:{},a=r[i];return e&&i in e&&n(a)?t[i]=Pe(o,a):e&&r&&("object"===je(e)||"object"===je(r))&&i===O&&Array.isArray(o)&&Array.isArray(a)?t[i]=Ie()(o,a):t[i]=a,t}),t)}function De(e,r,t={},n){return Me(e,r,t,n)[0]}function $e(e){return e.reduce(((e,r)=>r.length>1?r.flatMap((r=>ae()(e.length,(t=>[...e[t]].concat(r))))):(e.forEach((e=>e.push(r[0]))),e)),[[]])}function Ne(e,r,t,n,i,o){const a=Fe(r,t,i);return a!==r?Me(e,a,t,o,n,i):[r]}function Fe(e,r,t){if(!n(e))return e;let i=e;if(E in i){const{$ref:e,...n}=i;if(t.includes(e))return i;t.push(e),i={...z(e,r),...n}}if(w in i){const e=[],n=he()(i[w],((n,i,o)=>{const a=[...t];n[o]=Fe(i,r,a),e.push(a)}),{});ve()(t,xe()(be()(e))),i={...i,[w]:n}}return g in i&&!Array.isArray(i.items)&&"boolean"!=typeof i.items&&(i={...i,items:Fe(i.items,r,t)}),le()(e,i)?e:i}function Me(e,r,t,i,o=!1,f=[]){if(!n(r))return[{}];const l=function(e,r,t,n,i,o){const a=Ne(e,r,t,n,i,o);return a.length>1||a[0]!==r?a:d in r?Ue(e,r,t,n,i,o).flatMap((r=>Me(e,r,t,o,n,i))):u in r&&Array.isArray(r.allOf)?$e(r.allOf.map((r=>Me(e,r,t,o,n,i)))).map((e=>({...r,allOf:e}))):[r]}(e,r,t,o,f,i);return l.flatMap((r=>{let l=r;if(v in l)return function(e,r,t,n,i,o){const{if:a,then:s,else:u,...c}=r,f=e.isValid(a,o||{},t);let l=[c],p=[];if(n)s&&"boolean"!=typeof s&&(p=p.concat(Me(e,s,t,o,n,i))),u&&"boolean"!=typeof u&&(p=p.concat(Me(e,u,t,o,n,i)));else{const r=f?s:u;r&&"boolean"!=typeof r&&(p=p.concat(Me(e,r,t,o,n,i)))}return p.length&&(l=p.map((e=>Pe(c,e)))),l.flatMap((r=>Me(e,r,t,o,n,i)))}(e,l,t,o,f,i);if(u in l){if(o){const{allOf:e,...r}=l;return[...e,r]}try{l=Oe()(l,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:r,...t}=l;return t}}return s in l&&!1!==l.additionalProperties?function(e,r,t,i){const o={...r,properties:{...r.properties}},s=i&&n(i)?i:{};return Object.keys(s).forEach((r=>{if(r in o.properties)return;let n={};n="boolean"!=typeof o.additionalProperties?E in o.additionalProperties?De(e,{$ref:R()(o.additionalProperties,[E])},t,s):"type"in o.additionalProperties?{...o.additionalProperties}:c in o.additionalProperties||x in o.additionalProperties?{type:"object",...o.additionalProperties}:{type:Ee(R()(s,[r]))}:{type:Ee(R()(s,[r]))},o.properties[r]=n,de()(o.properties,[r,a],!0)})),o}(e,l,t,i):l}))}function Te(e,r,t,n,i){let o;const{oneOf:a,anyOf:s,...u}=r;if(Array.isArray(a)?o=a:Array.isArray(s)&&(o=s),o){const a=void 0===i&&n?{}:i,s=Se(r);o=o.map((e=>Fe(e,t,[])));const c=ce(e,a,o,t,s);if(n)return o.map((e=>Pe(u,e)));r=Pe(u,o[c])}return[r]}function Ue(e,r,t,n,i,o){const{dependencies:a,...s}=r;return Te(e,s,t,n,o).flatMap((r=>ke(e,a,r,t,n,i,o)))}function ke(e,r,t,i,o,a,s){let u=[t];for(const c in r){if(!o&&void 0===R()(s,[c]))continue;if(t.properties&&!(c in t.properties))continue;const[f,l]=J(c,r);return Array.isArray(l)?u[0]=We(t,l):n(l)&&(u=Le(e,t,i,c,l,o,a,s)),u.flatMap((r=>ke(e,f,r,i,o,a,s)))}return u}function We(e,r){if(!r)return e;const t=Array.isArray(e.required)?Array.from(new Set([...e.required,...r])):r;return{...e,required:t}}function Le(e,r,t,n,i,o,a,s){return Me(e,i,t,s,o,a).flatMap((i=>{const{oneOf:u,...c}=i;return r=Pe(r,c),void 0===u?r:$e(u.map((r=>"boolean"!=typeof r&&E in r?Ne(e,r,t,o,a,s):[r]))).flatMap((i=>function(e,r,t,n,i,o,a,s){const u=i.filter((r=>{if("boolean"==typeof r||!r||!r.properties)return!1;const{[n]:i}=r.properties;if(i){const r={type:"object",properties:{[n]:i}};return e.isValid(r,s,t)||o}return!1}));return o||1===u.length?u.flatMap((i=>{const u=i,[c]=J(n,u.properties),f={...u,properties:c};return Me(e,f,t,s,o,a).map((e=>Pe(r,e)))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[r])}(e,r,t,n,i,o,a,s)))}))}const Ce={type:"object",$id:b,properties:{__not_really_there__:{type:"number"}}};function Re(e,r,t,n={}){let i=0;return t&&(ee()(t.properties)?i+=ie()(t.properties,((t,i,o)=>{const a=R()(n,o);if("boolean"==typeof i)return t;if(G()(i,E)){const n=De(e,i,r,a);return t+Re(e,r,n,a||{})}if((G()(i,x)||G()(i,c))&&a){const n=G()(i,x)?x:c,o=Se(i);return t+Be(e,r,a,R()(i,n),-1,o)}if("object"===i.type)return t+Re(e,r,i,a||{});if(i.type===Ee(a)){let e=t+1;return i.default?e+=a===i.default?1:-1:i.const&&(e+=a===i.const?1:-1),e}return t}),0):te()(t.type)&&t.type===Ee(n)&&(i+=1)),i}function Be(e,r,t,n,i=-1,o){const a=n.map((e=>Fe(e,r,[]))),s=se(t,n,o);if(X()(s))return s;const u=a.reduce(((n,i,a)=>(1===ce(e,t,[Ce,i],r,o)&&n.push(a),n)),[]);if(1===u.length)return u[0];u.length||ae()(a.length,(e=>u.push(e)));const c=new Set,{bestIndex:f}=u.reduce(((n,i)=>{const{bestScore:o}=n,s=a[i],u=Re(e,r,s,t);return c.add(u),u>o?{bestIndex:i,bestScore:u}:n}),{bestIndex:i,bestScore:0});return 1===c.size&&i>=0?i:f}function Ve(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>n(e)))}function qe(e,r,t=!1){if(Array.isArray(r)){const n=Array.isArray(e)?e:[],i=r.map(((e,r)=>n[r]?qe(n[r],e,t):e));return t&&i.length<n.length&&i.push(...n.slice(i.length)),i}if(n(r)){const n=Object.assign({},e);return Object.keys(r).reduce(((n,i)=>(n[i]=qe(e?R()(e,i):{},R()(r,i),t),n)),n)}return r}function Ye(e,r,t=!1){return Object.keys(r).reduce(((i,o)=>{const a=e?e[o]:{},s=r[o];if(e&&o in e&&n(s))i[o]=Ye(a,s,t);else if(t&&Array.isArray(a)&&Array.isArray(s)){let e=s;"preventDuplicates"===t&&(e=s.reduce(((e,r)=>(a.includes(r)||e.push(r),e)),[])),i[o]=a.concat(e)}else i[o]=s;return i}),Object.assign({},e))}function Ke(e){return Array.isArray(e.enum)&&1===e.enum.length||f in e}function Je(e,r,t={}){const n=De(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((e=>"boolean"!=typeof e&&Ke(e)))}function ze(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&Je(e,r.items,t)}var He;function Ge(e,r=He.Ignore,t=-1){if(t>=0){if(Array.isArray(e.items)&&t<e.items.length){const r=e.items[t];if("boolean"!=typeof r)return r}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==He.Ignore&&n(e.additionalItems)?e.additionalItems:{}}function Qe(e,r,t,i,o,a=[],s={}){const{emptyObjectFields:u="populateAllDefaults"}=s;if(i)e[r]=t;else if("skipDefaults"!==u)if(n(t)){const n=void 0===o?a.includes(r):o;V()(t)&&!a.includes(r)||!n&&"populateRequiredDefaults"===u||(e[r]=t)}else void 0===t||"populateAllDefaults"!==u&&!a.includes(r)||(e[r]=t)}function Xe(e,r,{parentDefaults:t,rawFormData:i,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:f,required:p}={}){var m,h;const y=n(i)?i:{},v=n(r)?r:{};let g=t,b=null,A=s;if(n(g)&&n(v.default))g=Ye(g,v.default);else if(l in v)g=v.default;else if(E in v){const e=v[E];s.includes(e)||(A=s.concat(e),b=z(e,o))}else if(d in v)b=Ue(e,v,o,!1,[],y)[0];else if(Ve(v))g=v.items.map(((r,n)=>Xe(e,r,{rootSchema:o,includeUndefinedValues:a,_recurseList:s,experimental_defaultFormStateBehavior:f,parentDefaults:Array.isArray(t)?t[n]:void 0,rawFormData:y,required:p})));else if(x in v){const{oneOf:r,...t}=v;if(0===r.length)return;const n=Se(v);b=r[Be(e,o,V()(y)?void 0:y,r,0,n)],b=Pe(t,b)}else if(c in v){const{anyOf:r,...t}=v;if(0===r.length)return;const n=Se(v);b=r[Be(e,o,V()(y)?void 0:y,r,0,n)],b=Pe(t,b)}if(b)return Xe(e,b,{rootSchema:o,includeUndefinedValues:a,_recurseList:A,experimental_defaultFormStateBehavior:f,parentDefaults:g,rawFormData:y,required:p});switch(void 0===g&&(g=v.default),je(v)){case"object":{const r="populateDefaults"===(null==f?void 0:f.allOf)&&u in v?De(e,v,o,y):v,t=Object.keys(r.properties||{}).reduce(((t,n)=>{var i;return Qe(t,n,Xe(e,R()(r,[w,n]),{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,includeUndefinedValues:!0===a,parentDefaults:R()(g,[n]),rawFormData:R()(y,[n]),required:null===(i=r.required)||void 0===i?void 0:i.includes(n)}),a,p,r.required,f),t}),{});if(r.additionalProperties){const i=n(r.additionalProperties)?r.additionalProperties:{},u=new Set;n(g)&&Object.keys(g).filter((e=>!r.properties||!r.properties[e])).forEach((e=>u.add(e)));const c=[];Object.keys(y).filter((e=>!r.properties||!r.properties[e])).forEach((e=>{u.add(e),c.push(e)})),u.forEach((n=>{var u;const l=Xe(e,i,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,includeUndefinedValues:!0===a,parentDefaults:R()(g,[n]),rawFormData:R()(y,[n]),required:null===(u=r.required)||void 0===u?void 0:u.includes(n)});Qe(t,n,l,a,p,c)}))}return t}case"array":{const r="never"===(null===(m=null==f?void 0:f.arrayMinItems)||void 0===m?void 0:m.populate),t="requiredOnly"===(null===(h=null==f?void 0:f.arrayMinItems)||void 0===h?void 0:h.populate);if(Array.isArray(g)&&(g=g.map(((r,t)=>{const n=Ge(v,He.Fallback,t);return Xe(e,n,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,parentDefaults:r,required:p})}))),Array.isArray(i)){const t=Ge(v);g=r?i:i.map(((r,n)=>Xe(e,t,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,rawFormData:r,parentDefaults:R()(g,[n]),required:p})))}if(r)return null!=g?g:[];if(t&&!p)return g||void 0;const n=Array.isArray(g)?g.length:0;if(!v.minItems||ze(e,v,o)||v.minItems<=n)return g||[];const a=g||[],u=Ge(v,He.Invert),c=u.default,l=new Array(v.minItems-n).fill(Xe(e,u,{parentDefaults:c,rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,required:p}));return a.concat(l)}}return g}function Ze(e,r,t,i,o=!1,a){if(!n(r))throw new Error("Invalid schema: "+r);const s=Xe(e,De(e,r,i,t),{rootSchema:i,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:t});if(null==t||"number"==typeof t&&isNaN(t))return s;const{mergeExtraDefaults:u}=(null==a?void 0:a.arrayMinItems)||{};return n(t)||Array.isArray(t)?qe(s,t,u):t}function er(e={}){return"widget"in N(e)&&"hidden"!==N(e).widget}function rr(e,r,t={},n){if("files"===t[P])return!0;if(r.items){const t=De(e,r.items,n);return"string"===t.type&&"data-url"===t.format}return!1}function tr(e,r,t={},n,i){const o=N(t,i),{label:a=!0}=o;let s=!!a;const u=je(r);return"array"===u&&(s=ze(e,r,n)||rr(e,r,t,n)||er(t)),"object"===u&&(s=!1),"boolean"!==u||t[P]||(s=!1),t[j]&&(s=!1),s}function nr(e,r,t){if(!t)return r;const{errors:n,errorSchema:i}=r;let o=e.toErrorList(t),a=t;return V()(i)||(a=Ye(i,t,!0),o=[...n].concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(He||(He={}));const ir=Symbol("no Value");function or(e,r,t,n,i={}){let o;if(G()(t,w)){const a={};if(G()(n,w)){const e=R()(n,w,{});Object.keys(e).forEach((e=>{G()(i,e)&&(a[e]=void 0)}))}const s=Object.keys(R()(t,w,{})),u={};s.forEach((o=>{const s=R()(i,o);let c=R()(n,[w,o],{}),f=R()(t,[w,o],{});G()(c,E)&&(c=De(e,c,r,s)),G()(f,E)&&(f=De(e,f,r,s));const l=R()(c,"type"),p=R()(f,"type");if(!l||l===p)if(G()(a,o)&&delete a[o],"object"===p||"array"===p&&Array.isArray(s)){const t=or(e,r,f,c,s);void 0===t&&"array"!==p||(u[o]=t)}else{const e=R()(f,"default",ir),r=R()(c,"default",ir);e!==ir&&e!==s&&(r===s?a[o]=e:!0===R()(f,"readOnly")&&(a[o]=void 0));const t=R()(f,"const",ir),n=R()(c,"const",ir);t!==ir&&t!==s&&(a[o]=n===s?t:void 0)}})),o={..."string"==typeof i||Array.isArray(i)?void 0:i,...a,...u}}else if("array"===R()(n,"type")&&"array"===R()(t,"type")&&Array.isArray(i)){let a=R()(n,"items"),s=R()(t,"items");if("object"!=typeof a||"object"!=typeof s||Array.isArray(a)||Array.isArray(s))"boolean"==typeof a&&"boolean"==typeof s&&a===s&&(o=i);else{G()(a,E)&&(a=De(e,a,r,i)),G()(s,E)&&(s=De(e,s,r,i));const n=R()(a,"type"),u=R()(s,"type");if(!n||n===u){const n=R()(t,"maxItems",-1);o="object"===u?i.reduce(((t,i)=>{const o=or(e,r,s,a,i);return void 0!==o&&(n<0||t.length<n)&&t.push(o),t}),[]):n>0&&i.length>n?i.slice(0,n):i}}}return o}function ar(e,r,t,i,o,a,s,c=[]){if(E in r||d in r||u in r){const n=De(e,r,a,s);if(-1===c.findIndex((e=>le()(e,n))))return ar(e,n,t,i,o,a,s,c.concat(n))}if(g in r&&!R()(r,[g,E]))return ar(e,R()(r,g),t,i,o,a,s,c);const f={$id:o||t};if("object"===je(r)&&w in r)for(const o in r.properties){const u=R()(r,[w,o]),l=f[y]+i+o;f[o]=ar(e,n(u)?u:{},t,i,l,a,R()(s,[o]),c)}return f}function sr(e,r,t,n,i,o="root",a="_"){return ar(e,r,o,a,t,n,i)}function ur(e,r,t,n,i,o=[]){if(E in r||d in r||u in r){const a=De(e,r,n,i);if(-1===o.findIndex((e=>le()(e,a))))return ur(e,a,t,n,i,o.concat(a))}let a={[A]:t.replace(/^\./,"")};if(x in r||c in r){const s=x in r?r.oneOf:r.anyOf,u=Se(r),c=s[Be(e,n,i,s,0,u)];a={...a,...ur(e,c,t,n,i,o)}}if(s in r&&!1!==r[s]&&de()(a,_,!0),g in r&&Array.isArray(i)){const{items:s,additionalItems:u}=r;Array.isArray(s)?i.forEach(((r,i)=>{s[i]?a[i]=ur(e,s[i],`${t}.${i}`,n,r,o):u?a[i]=ur(e,u,`${t}.${i}`,n,r,o):console.warn(`Unable to generate path schema for "${t}.${i}". No schema defined for it`)})):i.forEach(((r,i)=>{a[i]=ur(e,s,`${t}.${i}`,n,r,o)}))}else if(w in r)for(const s in r.properties){const u=R()(r,[w,s]);a[s]=ur(e,u,`${t}.${s}`,n,R()(i,[s]),o)}return a}function cr(e,r,t="",n,i){return ur(e,r,t,n,i)}class fr{constructor(e,r,t){this.rootSchema=r,this.validator=e,this.experimental_defaultFormStateBehavior=t}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,r,t={}){return!(!e||!r||this.validator===e&&L(this.rootSchema,r)&&L(this.experimental_defaultFormStateBehavior,t))}getDefaultFormState(e,r,t=!1){return Ze(this.validator,e,r,this.rootSchema,t,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,r,t){return tr(this.validator,e,r,this.rootSchema,t)}getClosestMatchingOption(e,r,t,n){return Be(this.validator,this.rootSchema,e,r,t,n)}getFirstMatchingOption(e,r,t){return ce(this.validator,e,r,this.rootSchema,t)}getMatchingOption(e,r,t){return ue(this.validator,e,r,this.rootSchema,t)}isFilesArray(e,r){return rr(this.validator,e,r,this.rootSchema)}isMultiSelect(e){return ze(this.validator,e,this.rootSchema)}isSelect(e){return Je(this.validator,e,this.rootSchema)}mergeValidationData(e,r){return nr(this.validator,e,r)}retrieveSchema(e,r){return De(this.validator,e,this.rootSchema,r)}sanitizeDataForNewSchema(e,r,t){return or(this.validator,this.rootSchema,e,r,t)}toIdSchema(e,r,t,n="root",i="_"){return sr(this.validator,e,r,this.rootSchema,t,n,i)}toPathSchema(e,r,t){return cr(this.validator,e,r,this.rootSchema,t)}}function lr(e,r,t={}){return new fr(e,r,t)}function pr(e){const r=e.split(","),t=r[0].split(";"),n=t[0].replace("data:",""),i=t.filter((e=>"name"===e.split("=")[0]));let o;o=1!==i.length?"unknown":decodeURI(i[0].split("=")[1]);try{const e=atob(r[1]),t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return{blob:new window.Blob([new Uint8Array(t)],{type:n}),name:o}}catch(r){return{blob:{size:0,type:r.message},name:e}}}function dr(e,r){let t=e;if(Array.isArray(r)){const e=t.split(/(%\d)/);r.forEach(((r,t)=>{const n=e.findIndex((e=>e===`%${t+1}`));n>=0&&(e[n]=r)})),t=e.join("")}return t}function mr(e,r){return dr(e,r)}function hr(e,r=[],t){if(Array.isArray(e))return e.map((e=>hr(e,r))).filter((e=>e));const n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function yr(e,r,t=[]){const n=hr(e,t);return Array.isArray(r)?r.filter((e=>!le()(e,n))):le()(n,r)?void 0:r}function vr(e,r){return Array.isArray(r)?r.some((r=>le()(r,e))):le()(r,e)}function gr(e,r=[],t=!1){const n=r.map(((r,t)=>vr(r.value,e)?String(t):void 0)).filter((e=>void 0!==e));return t?n:n[0]}var br=t(30644),Ar=t.n(br);function xr(e,r,t=[]){const n=hr(e,t);if(!Ar()(n)){const e=t.findIndex((e=>n===e.value)),i=t.map((({value:e})=>e));return r.slice(0,e).concat(n,r.slice(e)).sort(((e,r)=>Number(i.indexOf(e)>i.indexOf(r))))}return r}var wr=t(30454),Or=t.n(wr);class Sr{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let r=Array.isArray(e)&&e.length>0||"string"==typeof e?R()(this.errorSchema,e):this.errorSchema;return!r&&e&&(r={},de()(this.errorSchema,e,r)),r}resetAllErrors(e){return this.errorSchema=e?Or()(e):{},this}addErrors(e,r){const t=this.getOrCreateErrorBlock(r);let n=R()(t,h);return Array.isArray(n)||(n=[],t[h]=n),Array.isArray(e)?n.push(...e):n.push(e),this}setErrors(e,r){const t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[...e]:[e];return de()(t,h,n),this}clearErrors(e){const r=this.getOrCreateErrorBlock(e);return de()(r,h,[]),this}}function Er(e,r,t=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:i,month:o,year:a,hour:s,minute:u,second:c}=e,f={type:"day",range:[1,31],value:i},l={type:"month",range:[1,12],value:o},p={type:"year",range:t,value:a},d=[];switch(n){case"MDY":d.push(l,f,p);break;case"DMY":d.push(f,l,p);break;default:d.push(p,l,f)}return r&&d.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:c}),d}function _r(e){const r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}function Ir(e,r,t={},n=!0){const i={type:r||"text",..._r(e)};return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i}const jr={props:{disabled:!1},submitText:"Submit",norender:!1};function Pr(e={}){const r=N(e);if(r&&r[S]){const e=r[S];return{...jr,...e}}return jr}function Dr(e,r,t={}){const{templates:n}=r;return"ButtonTemplates"===e?n[e]:t[e]||n[e]}var $r=t(24246),Nr=t(78156),Fr=t(19185);const Mr={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Tr(e,r,t={}){const n=je(e);if("function"==typeof r||r&&Fr.isForwardRef((0,Nr.createElement)(r))||Fr.isMemo(r))return function(e){let r=R()(e,"MergedWidget");if(!r){const t=e.defaultProps&&e.defaultProps.options||{};r=({options:r,...n})=>(0,$r.jsx)(e,{options:{...t,...r},...n}),de()(e,"MergedWidget",r)}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return Tr(e,t[r],t);if("string"==typeof n){if(!(n in Mr))throw new Error(`No widget for type '${n}'`);if(r in Mr[n])return Tr(e,t[Mr[n][r]],t)}throw new Error(`No widget '${r}' for type '${n}'`)}function Ur(e){const r=new Set;return JSON.stringify(e,((e,t)=>(r.add(e),t))),function(e){let r=0;for(let t=0;t<e.length;t+=1)r=(r<<5)-r+e.charCodeAt(t),r&=r;return r.toString(16)}(JSON.stringify(e,Array.from(r).sort()))}function kr(e,r,t={}){try{return Tr(e,r,t),!0}catch(e){const r=e;if(r.message&&(r.message.startsWith("No widget")||r.message.startsWith("Unsupported widget")))return!1;throw e}}function Wr(e,r){return`${te()(e)?e:e[y]}__${r}`}function Lr(e){return Wr(e,"description")}function Cr(e){return Wr(e,"error")}function Rr(e){return Wr(e,"examples")}function Br(e){return Wr(e,"help")}function Vr(e){return Wr(e,"title")}function qr(e,r=!1){const t=r?` ${Rr(e)}`:"";return`${Cr(e)} ${Lr(e)} ${Br(e)}${t}`}function Yr(e,r){return`${e}-${r}`}function Kr(e,r,t){return r?t:e}function Jr(e){return e?new Date(e).toJSON():void 0}function zr(e){if(m in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(f in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function Hr(e){const r=e;if(r.enumNames,e.enum)return e.enum.map(((e,t)=>({label:r.enumNames&&r.enumNames[t]||String(e),value:e})));const t=e.oneOf||e.anyOf;return t&&t.map((e=>{const r=e,t=zr(r);return{schema:r,label:r.title||String(t),value:t}}))}function Gr(e,r){if(!Array.isArray(r))return e;const t=e=>e.reduce(((e,r)=>(e[r]=!0,e)),{}),n=t(e),i=r.filter((e=>"*"===e||n[e])),o=t(i),a=e.filter((e=>!o[e])),s=i.indexOf("*");if(-1===s){if(a.length)throw new Error("uiSchema order list does not contain "+((u=a).length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`));return i}var u;if(s!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...i];return c.splice(s,1,...a),c}function Qr(e,r){let t=String(e);for(;t.length<r;)t="0"+t;return t}function Xr(e,r=!0){if(!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};const t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}}function Zr(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return Zr(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return Zr(e.oneOf[0]);if(e.allOf){const r=e=>Zr(e);return e.allOf.some(r)}return!1}function et(e,r,t){const{props:n,state:i}=e;return!L(n,r)||!L(i,t)}function rt(e,r=!0){const{year:t,month:n,day:i,hour:o=0,minute:a=0,second:s=0}=e,u=Date.UTC(t,n-1,i,o,a,s),c=new Date(u).toJSON();return r?c:c.slice(0,10)}function tt(e,r=[]){if(!e)return[];let t=[];return h in e&&(t=t.concat(e[h].map((e=>{const t=`.${r.join(".")}`;return{property:t,message:e,stack:`${t} ${e}`}})))),Object.keys(e).reduce(((t,n)=>{if(n!==h){const i=e[n];T()(i)&&(t=t.concat(tt(i,[...r,n])))}return t}),t)}var nt,it=t(40110),ot=t.n(it);function at(e){const r=new Sr;return e.length&&e.forEach((e=>{const{property:t,message:n}=e,i="."===t?[]:ot()(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema}function st(e){return Object.keys(e).reduce(((r,t)=>{if("addError"===t)return r;{const n=e[t];return T()(n)?{...r,[t]:st(n)}:{...r,[t]:n}}}),{})}function ut(e){if(!e)return"";const r=new Date(e);return`${Qr(r.getFullYear(),4)}-${Qr(r.getMonth()+1,2)}-${Qr(r.getDate(),2)}T${Qr(r.getHours(),2)}:${Qr(r.getMinutes(),2)}:${Qr(r.getSeconds(),2)}.${Qr(r.getMilliseconds(),3)}`}function ct(e,r){if(!r)return e;const{errors:t,errorSchema:n}=e;let i=tt(r),o=r;return V()(n)||(o=Ye(n,r,!0),i=[...t].concat(i)),{errorSchema:o,errors:i}}function ft(e){return Array.isArray(e)?function(e){for(let r=0;r<e.length;r++)e[r]=ft(e[r]);return e}([...e]):ee()(e)?function(e){for(const r in e){const t=e,n=t[r];r===E&&"string"==typeof n&&n.startsWith("#")?t[r]=I+n:t[r]=ft(n)}return e}({...e}):e}!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",e.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",e.FilesInfo="<strong>%1</strong> (%2, %3 bytes)"}(nt||(nt={}));var lt=t(47003),pt=t.n(lt);class dt{constructor(e){this.schemaMap={},this.rootSchema=e,this.addSchema(e,Ur(e))}addSchema(e,r){const t=R()(e,y,r),n={...e,[y]:t},i=this.schemaMap[t];if(i){if(!le()(i,n))throw console.error("existing schema:",JSON.stringify(i,null,2)),console.error("new schema:",JSON.stringify(n,null,2)),new Error(`Two different schemas exist with the same key ${t}! What a bad coincidence. If possible, try adding an $id to one of the schemas`)}else this.schemaMap[t]=n}getSchemaMap(){return this.schemaMap}isValid(e,r,t){if(!le()(t,this.rootSchema))throw new Error("Unexpectedly calling isValid() with a rootSchema that differs from the construction rootSchema");return this.addSchema(e,Ur(e)),!1}rawValidation(e,r){throw new Error("Unexpectedly calling the `rawValidation()` method during schema parsing")}toErrorList(e,r){throw new Error("Unexpectedly calling the `toErrorList()` method during schema parsing")}validateFormData(e,r,t,n,i){throw new Error("Unexpectedly calling the `validateFormData()` method during schema parsing")}}function mt(e,r,t,n){Me(e,n,t,void 0,!0).forEach((n=>{-1===r.findIndex((e=>le()(e,n)))&&(r.push(n),Te(e,n,t,!0).forEach((i=>{w in i&&i[w]&&pt()(n[w],(n=>{mt(e,r,t,n)}))})),g in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&mt(e,r,t,n.items))}))}function ht(e){const r=new dt(e);return mt(r,[],e,e),r.getSchemaMap()}},15422:(e,r,t)=>{"use strict";var n=t(17604),i=t(9333),o=t(86401),a=Math.pow(2,31)-1;function s(e,r){var t,n=1;if(0===e)return r;if(0===r)return e;for(;e%2==0&&r%2==0;)e/=2,r/=2,n*=2;for(;e%2==0;)e/=2;for(;r;){for(;r%2==0;)r/=2;e>r&&(t=r,r=e,e=t),r-=e}return n*e}function u(e,r){var t,n=0;if(0===e)return r;if(0===r)return e;for(;0==(1&e)&&0==(1&r);)e>>>=1,r>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;r;){for(;0==(1&r);)r>>>=1;e>r&&(t=r,r=e,e=t),r-=e}return e<<n}e.exports=function(){var e,r,t,c,f,l,p,d=arguments.length;for(e=new Array(d),p=0;p<d;p++)e[p]=arguments[p];if(i(e)){if(2===d)return(f=e[0])<0&&(f=-f),(l=e[1])<0&&(l=-l),f<=a&&l<=a?u(f,l):s(f,l);t=e}else{if(!n(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(d>1){if(t=e[0],r=e[1],!o(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else t=e[0]}if((c=t.length)<2)return null;if(r){for(f=new Array(c),p=0;p<c;p++)f[p]=r(t[p],p);t=f}if(d<3&&!i(t))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(p=0;p<c;p++)(f=t[p])<0&&(t[p]=-f);for(f=t[0],p=1;p<c;p++)f=(l=t[p])<=a&&f<=a?u(f,l):s(f,l);return f}},72982:(e,r,t)=>{"use strict";var n=t(15422),i=t(17604),o=t(9333),a=t(86401);e.exports=function(){var e,r,t,s,u,c,f,l=arguments.length;for(e=new Array(l),f=0;f<l;f++)e[f]=arguments[f];if(o(e)){if(2===l)return(u=e[0])<0&&(u=-u),(c=e[1])<0&&(c=-c),0===u||0===c?0:u/n(u,c)*c;t=e}else{if(!i(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(l>1){if(t=e[0],r=e[1],!a(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else t=e[0]}if((s=t.length)<2)return null;if(r){for(u=new Array(s),f=0;f<s;f++)u[f]=r(t[f],f);t=u}if(l<3&&!o(t))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(f=0;f<s;f++)(u=t[f])<0&&(t[f]=-u);for(u=t[0],f=1;f<s;f++){if(c=t[f],0===u||0===c)return 0;u=u/n(u,c)*c}return u}},64316:(e,r,t)=>{var n=t(56141),i=t(95099),o=t(83766),a=t(52929),s=t(70236),u=t(28054),c=t(40861),f=t(3819),l=e=>Array.isArray(e)?e:[e],p=e=>void 0===e,d=e=>c(e)||Array.isArray(e)?Object.keys(e):[],m=(e,r)=>e.hasOwnProperty(r),h=e=>i(o(e)),y=e=>p(e)||Array.isArray(e)&&0===e.length,v=(e,r)=>p(e)&&0===r||p(r)&&0===e||n(e,r),g=e=>p(e)||n(e,{})||!0===e,b=e=>p(e)||n(e,{}),A=e=>p(e)||c(e)||!0===e||!1===e;function x(e,r){return!(!y(e)||!y(r))||n(h(e),h(r))}function w(e,r,t,i){var a=o(d(e).concat(d(r)));return!(!b(e)||!b(r))||(!b(e)||!d(r).length)&&(!b(r)||!d(e).length)&&a.every((function(t){var o=e[t],a=r[t];return Array.isArray(o)&&Array.isArray(a)?n(h(e),h(r)):!(Array.isArray(o)&&!Array.isArray(a))&&!(Array.isArray(a)&&!Array.isArray(o))&&((e,r,t,n)=>r&&m(r,t)&&e&&m(e,t)&&n(e[t],r[t]))(e,r,t,i)}))}function O(e,r,t,n){var i=a(e,n),o=a(r,n);return u(i,o,n).length===Math.max(i.length,o.length)}var S={title:n,uniqueItems:(e,r)=>p(e)&&!1===r||p(r)&&!1===e||n(e,r),minLength:v,minItems:v,minProperties:v,required:x,enum:x,type:function(e,r){return e=l(e),r=l(r),n(h(e),h(r))},items:function(e,r,t,i){return c(e)&&c(r)?i(e,r):Array.isArray(e)&&Array.isArray(r)?w(e,r,0,i):n(e,r)},anyOf:O,allOf:O,oneOf:O,properties:w,patternProperties:w,dependencies:w},E=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],_=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(r,t,i){if(i=s(i,{ignore:[]}),g(r)&&g(t))return!0;if(!A(r)||!A(t))throw new Error("Either of the values are not a JSON schema.");if(r===t)return!0;if(f(r)&&f(t))return r===t;if(void 0===r&&!1===t||void 0===t&&!1===r)return!1;if(p(r)&&!p(t)||!p(r)&&p(t))return!1;var a=o(Object.keys(r).concat(Object.keys(t)));if(i.ignore.length&&(a=a.filter((e=>-1===i.ignore.indexOf(e)))),!a.length)return!0;function u(r,t){return e(r,t,i)}return a.every((function(o){var a=r[o],s=t[o];if(-1!==_.indexOf(o))return e(a,s,i);var c=S[o];if(c||(c=n),n(a,s))return!0;if(-1===E.indexOf(o)&&(!m(r,o)&&m(t,o)||m(r,o)&&!m(t,o)))return a===s;var l=c(a,s,o,u);if(!f(l))throw new Error("Comparer must return true or false");return l}))}},2143:(e,r,t)=>{const n=t(89754),i=t(84812),o=t(40861),a=t(83766),s=t(52929),u=t(81889),c=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),f=e=>o(e)||Array.isArray(e)?Object.keys(e):[],l=e=>!f(e).length&&!1!==e&&!0!==e;e.exports={allUniqueKeys:e=>a(i(e.map(f))),deleteUndefinedProps:function(e){for(const r in e)c(e,r)&&l(e[r])&&delete e[r];return e},getValues:(e,r)=>e.map((e=>e&&e[r])),has:c,isEmptySchema:l,isSchema:e=>o(e)||!0===e||!1===e,keys:f,notUndefined:e=>void 0!==e,uniqWith:s,withoutArr:(e,...r)=>u.apply(null,[e].concat(n(r)))}},71020:(e,r,t)=>{const n=t(64316),i=t(47003),{allUniqueKeys:o,deleteUndefinedProps:a,has:s,isSchema:u,notUndefined:c,uniqWith:f}=t(2143);e.exports={keywords:["items","additionalItems"],resolver(e,r,t){const l=e.map((e=>e.items)),p=l.filter(c),d={};let m;var h;return p.every(u)?d.items=t.items(l):d.items=function(e,r,t){return o(t).reduce((function(t,i){const o=function(e,r){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const t=e.items[r];if(u(t))return t;if(s(e,"additionalItems"))return e.additionalItems}}}))}(e,i),a=f(o.filter(c),n);return t[i]=r(a,i),t}),[])}(e,t.items,l),p.every(Array.isArray)?m=e.map((e=>e.additionalItems)):p.some(Array.isArray)&&(m=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),m&&(d.additionalItems=t.additionalItems(m)),!1===d.additionalItems&&Array.isArray(d.items)&&(h=d.items,i(h,(function(e,r){!1===e&&h.splice(r,1)}))),a(d)}}},88807:(e,r,t)=>{const n=t(64316),i=t(47003),{allUniqueKeys:o,deleteUndefinedProps:a,getValues:s,keys:u,notUndefined:c,uniqWith:f,withoutArr:l}=t(2143);function p(e,r){return o(e).reduce((function(t,i){const o=s(e,i),a=f(o.filter(c),n);return t[i]=r(a,i),t}),{})}e.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(e,r,t,n){n.ignoreAdditionalProperties||(e.forEach((function(r){const n=e.filter((e=>e!==r)),i=u(r.properties),o=u(r.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=u(e.properties),a=n.filter((e=>o.some((r=>r.test(e)))));l(n,i,a).forEach((function(n){e.properties[n]=t.properties([e.properties[n],r.additionalProperties],n)}))}))})),e.forEach((function(r){const t=e.filter((e=>e!==r)),n=u(r.patternProperties);!1===r.additionalProperties&&t.forEach((function(e){const r=u(e.patternProperties);l(r,n).forEach((r=>delete e.patternProperties[r]))}))})));const o={additionalProperties:t.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:p(e.map((e=>e.patternProperties)),t.patternProperties),properties:p(e.map((e=>e.properties)),t.properties)};var s;return!1===o.additionalProperties&&i(s=o.properties,(function(e,r){!1===e&&delete s[r]})),a(o)}}},64717:(e,r,t)=>{const n=t(30454),i=t(64316),o=t(72982),a=t(53533),s=t(89754),u=t(84812),c=t(27921),f=t(28054),l=t(56141),p=t(40861),d=t(90254),m=t(95099),h=t(83766),y=t(52929),v=t(88807),g=t(71020),b=(e,r)=>-1!==e.indexOf(r),A=e=>p(e)||!0===e||!1===e,x=e=>!1===e,w=e=>!0===e,O=(e,r,t)=>t(e),S=e=>m(h(u(e))),E=e=>void 0!==e,_=e=>h(u(e.map(N))),I=e=>e[0],j=e=>Math.max.apply(Math,e),P=e=>Math.min.apply(Math,e);function D(e){let{allOf:r=[],...t}=e;return t=p(e)?t:e,[t,...r.map(D)]}function $(e,r){return e.map((e=>e&&e[r]))}function N(e){return p(e)||Array.isArray(e)?Object.keys(e):[]}function F(e,r){if(r=r||[],!e.length)return r;const t=e.slice(0).shift(),n=e.slice(1);return r.length?F(n,s(r.map((e=>t.map((r=>[r].concat(e))))))):F(n,t.map((e=>e)))}function M(e,r){let t;try{t=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(r){t=e.join(", ")}throw new Error('Could not resolve values for path:"'+r.join(".")+'". They are probably incompatible. Values: \n'+t)}function T(e,r,t,n,o,a){if(e.length){const s=o.complexResolvers[r];if(!s||!s.resolver)throw new Error("No resolver found for "+r);const u=t.map((r=>e.reduce(((e,t)=>(void 0!==r[t]&&(e[t]=r[t]),e)),{}))),c=y(u,i),f=s.keywords.reduce(((e,r)=>({...e,[r]:(e,t=[])=>n(e,null,a.concat(r,t))})),{}),l=s.resolver(c,a.concat(r),f,o);return p(l)||M(c,a.concat(r)),l}}function U(e){return{required:e}}const k=["properties","patternProperties","definitions","dependencies"],W=["anyOf","oneOf"],L=["additionalProperties","additionalItems","contains","propertyNames","not","items"],C={type(e){if(e.some(Array.isArray)){const r=e.map((function(e){return Array.isArray(e)?e:[e]})),t=c.apply(null,r);if(1===t.length)return t[0];if(t.length>1)return h(t)}},dependencies:(e,r,t)=>_(e).reduce((function(r,n){const o=$(e,n);let a=y(o.filter(E),l);const s=a.filter(Array.isArray);if(s.length){if(s.length===a.length)r[n]=S(a);else{const e=a.filter(A),i=s.map(U);r[n]=t(e.concat(i),n)}return r}return a=y(a,i),r[n]=t(a,n),r}),{}),oneOf(e,r,t){const o=function(e,r){return e.map((function(e,t){try{return r(e,t)}catch(e){return}})).filter(E)}(F(n(e)),t),a=y(o,i);if(a.length)return a},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let r=e.slice(0),t=1;for(;r.some((e=>!Number.isInteger(e)));)r=r.map((e=>10*e)),t*=10;return o(r)/t},enum(e){const r=f.apply(null,e.concat(l));if(r.length)return m(r)}};C.$id=I,C.$ref=I,C.$schema=I,C.additionalItems=O,C.additionalProperties=O,C.anyOf=C.oneOf,C.contains=O,C.default=I,C.definitions=C.dependencies,C.description=I,C.examples=e=>y(s(e),l),C.exclusiveMaximum=P,C.exclusiveMinimum=j,C.items=g,C.maximum=P,C.maxItems=P,C.maxLength=P,C.maxProperties=P,C.minimum=j,C.minItems=j,C.minLength=j,C.minProperties=j,C.properties=v,C.propertyNames=O,C.required=e=>S(e),C.title=I,C.uniqueItems=e=>e.some(w);const R={properties:v,items:g};function B(e,r,t){t=t||[],r=a(r,{ignoreAdditionalProperties:!1,resolvers:C,complexResolvers:R,deep:!0});const o=Object.entries(r.complexResolvers),s=function e(a,s,u){a=n(a.filter(E)),u=u||[];const c=p(s)?s:{};if(!a.length)return;if(a.some(x))return!1;if(a.every(w))return!0;a=a.filter(p);const f=_(a);if(r.deep&&b(f,"allOf"))return B({allOf:a},r,t);const l=o.map((([e,r])=>f.filter((e=>r.keywords.includes(e)))));return l.forEach((e=>d(f,e))),f.forEach((function(t){const n=$(a,t),o=y(n.filter(E),function(e){return function(r,t){return i({[e]:r},{[e]:t})}}(t));if(1===o.length&&b(W,t))c[t]=o[0].map((r=>e([r],r)));else if(1!==o.length||b(k,t)||b(L,t)){const n=r.resolvers[t]||r.resolvers.defaultResolver;if(!n)throw new Error("No resolver found for key "+t+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const i=(r,n=[])=>e(r,null,u.concat(t,n));c[t]=n(o,u.concat(t),i,r),void 0===c[t]?M(o,u.concat(t)):void 0===c[t]&&delete c[t]}else c[t]=o[0]})),o.reduce(((t,[n,i],o)=>({...t,...T(l[o],n,a,e,r,u)})),c)}(u(D(e)));return s}B.options={resolvers:C},e.exports=B},88208:(e,r)=>{var t=/~/,n=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function o(e){return t.test(e)?e.replace(n,i):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const r of e)if("string"!=typeof r&&"number"!=typeof r)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function s(e,r){if("object"!=typeof e)throw new Error("Invalid input object.");var t=(r=a(r)).length;if(1===t)return e;for(var n=1;n<t;){if(e=e[o(r[n++])],t===n)return e;if("object"!=typeof e||null===e)return}}function u(e,r,t){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(r=a(r)).length)throw new Error("Invalid JSON pointer for set.");return function(e,r,t){for(var n,i,a=1,s=r.length;a<s;){if("constructor"===r[a]||"prototype"===r[a]||"__proto__"===r[a])return e;if(n=o(r[a++]),i=s>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),i&&(""!==r[a]&&r[a]<1/0||"-"===r[a]?e[n]=[]:e[n]={})),!i)break;e=e[n]}var u=e[n];return void 0===t?delete e[n]:e[n]=t,u}(e,r,t)}r.get=s,r.set=u,r.compile=function(e){var r=a(e);return{get:function(e){return s(e,r)},set:function(e,t){return u(e,r,t)}}}},52485:(e,r,t)=>{var n=t(74554),i=t(95915),o=t(88379);function a(e){var r=-1,t=null==e?0:e.length;for(this.__data__=new n;++r<t;)this.add(e[r])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},58095:(e,r,t)=>{var n=t(8817);e.exports=function(e,r){return!(null==e||!e.length)&&n(e,r,0)>-1}},21796:e=>{e.exports=function(e,r,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(r,e[n]))return!0;return!1}},6446:e=>{e.exports=function(e,r,t,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(t=e[++i]);++i<o;)t=r(t,e[i],i,e);return t}},90756:e=>{e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}},73140:(e,r,t)=>{var n=t(88799),i=t(85638);e.exports=function(e,r,t){(void 0!==t&&!i(e[r],t)||void 0===t&&!(r in e))&&n(e,r,t)}},11005:(e,r,t)=>{var n=t(52485),i=t(58095),o=t(21796),a=t(66070),s=t(39334),u=t(65581);e.exports=function(e,r,t,c){var f=-1,l=i,p=!0,d=e.length,m=[],h=r.length;if(!d)return m;t&&(r=a(r,s(t))),c?(l=o,p=!1):r.length>=200&&(l=u,p=!1,r=new n(r));e:for(;++f<d;){var y=e[f],v=null==t?y:t(y);if(y=c||0!==y?y:0,p&&v==v){for(var g=h;g--;)if(r[g]===v)continue e;m.push(y)}else l(r,v,c)||m.push(y)}return m}},52033:(e,r,t)=>{var n=t(26194),i=t(26789)(n);e.exports=i},95372:e=>{e.exports=function(e,r,t,n){for(var i=e.length,o=t+(n?1:-1);n?o--:++o<i;)if(r(e[o],o,e))return o;return-1}},49819:(e,r,t)=>{var n=t(18911)();e.exports=n},26194:(e,r,t)=>{var n=t(49819),i=t(50098);e.exports=function(e,r){return e&&n(e,r,i)}},8817:(e,r,t)=>{var n=t(95372),i=t(1129),o=t(58263);e.exports=function(e,r,t){return r==r?o(e,r,t):n(e,i,t)}},56006:e=>{e.exports=function(e,r,t,n){for(var i=t-1,o=e.length;++i<o;)if(n(e[i],r))return i;return-1}},96638:(e,r,t)=>{var n=t(52485),i=t(58095),o=t(21796),a=t(66070),s=t(39334),u=t(65581),c=Math.min;e.exports=function(e,r,t){for(var f=t?o:i,l=e[0].length,p=e.length,d=p,m=Array(p),h=1/0,y=[];d--;){var v=e[d];d&&r&&(v=a(v,s(r))),h=c(v.length,h),m[d]=!t&&(r||l>=120&&v.length>=120)?new n(d&&v):void 0}v=e[0];var g=-1,b=m[0];e:for(;++g<l&&y.length<h;){var A=v[g],x=r?r(A):A;if(A=t||0!==A?A:0,!(b?u(b,x):f(y,x,t))){for(d=p;--d;){var w=m[d];if(!(w?u(w,x):f(e[d],x,t)))continue e}b&&b.push(x),y.push(A)}}return y}},32866:(e,r,t)=>{var n=t(12772),i=t(92360);e.exports=function e(r,t,o,a,s){return r===t||(null==r||null==t||!i(r)&&!i(t)?r!=r&&t!=t:n(r,t,o,a,e,s))}},12772:(e,r,t)=>{var n=t(23694),i=t(27042),o=t(370),a=t(39584),s=t(3533),u=t(19785),c=t(43854),f=t(48519),l="[object Arguments]",p="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,r,t,h,y,v){var g=u(e),b=u(r),A=g?p:s(e),x=b?p:s(r),w=(A=A==l?d:A)==d,O=(x=x==l?d:x)==d,S=A==x;if(S&&c(e)){if(!c(r))return!1;g=!0,w=!1}if(S&&!w)return v||(v=new n),g||f(e)?i(e,r,t,h,y,v):o(e,r,A,t,h,y,v);if(!(1&t)){var E=w&&m.call(e,"__wrapped__"),_=O&&m.call(r,"__wrapped__");if(E||_){var I=E?e.value():e,j=_?r.value():r;return v||(v=new n),y(I,j,t,h,v)}}return!!S&&(v||(v=new n),a(e,r,t,h,y,v))}},19850:(e,r,t)=>{var n=t(23694),i=t(32866);e.exports=function(e,r,t,o){var a=t.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=t[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var f=(c=t[a])[0],l=e[f],p=c[1];if(u&&c[2]){if(void 0===l&&!(f in e))return!1}else{var d=new n;if(o)var m=o(l,p,f,e,r,d);if(!(void 0===m?i(p,l,3,o,d):m))return!1}}return!0}},1129:e=>{e.exports=function(e){return e!=e}},89278:(e,r,t)=>{var n=t(71410),i=t(57518),o=t(31137),a=t(19785),s=t(96001);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},67375:(e,r,t)=>{var n=t(52033),i=t(80068);e.exports=function(e,r){var t=-1,o=i(e)?Array(e.length):[];return n(e,(function(e,n,i){o[++t]=r(e,n,i)})),o}},71410:(e,r,t)=>{var n=t(19850),i=t(68125),o=t(65042);e.exports=function(e){var r=i(e);return 1==r.length&&r[0][2]?o(r[0][0],r[0][1]):function(t){return t===e||n(t,e,r)}}},57518:(e,r,t)=>{var n=t(32866),i=t(99729),o=t(79749),a=t(40318),s=t(68302),u=t(65042),c=t(37948);e.exports=function(e,r){return a(e)&&s(r)?u(c(e),r):function(t){var a=i(t,e);return void 0===a&&a===r?o(t,e):n(r,a,3)}}},40015:(e,r,t)=>{var n=t(23694),i=t(73140),o=t(49819),a=t(68867),s=t(11611),u=t(53893),c=t(97494);e.exports=function e(r,t,f,l,p){r!==t&&o(t,(function(o,u){if(p||(p=new n),s(o))a(r,t,u,f,e,l,p);else{var d=l?l(c(r,u),o,u+"",r,t,p):void 0;void 0===d&&(d=o),i(r,u,d)}}),u)}},68867:(e,r,t)=>{var n=t(73140),i=t(2734),o=t(63428),a=t(37561),s=t(9560),u=t(2900),c=t(19785),f=t(36468),l=t(43854),p=t(28338),d=t(11611),m=t(40861),h=t(48519),y=t(97494),v=t(89328);e.exports=function(e,r,t,g,b,A,x){var w=y(e,t),O=y(r,t),S=x.get(O);if(S)n(e,t,S);else{var E=A?A(w,O,t+"",e,r,x):void 0,_=void 0===E;if(_){var I=c(O),j=!I&&l(O),P=!I&&!j&&h(O);E=O,I||j||P?c(w)?E=w:f(w)?E=a(w):j?(_=!1,E=i(O,!0)):P?(_=!1,E=o(O,!0)):E=[]:m(O)||u(O)?(E=w,u(w)?E=v(w):d(w)&&!p(w)||(E=s(O))):_=!1}_&&(x.set(O,E),b(E,O,g,A,x),x.delete(O)),n(e,t,E)}}},98497:(e,r,t)=>{var n=t(66070),i=t(79867),o=t(89278),a=t(67375),s=t(73303),u=t(39334),c=t(96348),f=t(31137),l=t(19785);e.exports=function(e,r,t){r=r.length?n(r,(function(e){return l(e)?function(r){return i(r,1===e.length?e[0]:e)}:e})):[f];var p=-1;r=n(r,u(o));var d=a(e,(function(e,t,i){return{criteria:n(r,(function(r){return r(e)})),index:++p,value:e}}));return s(d,(function(e,r){return c(e,r,t)}))}},50517:e=>{e.exports=function(e){return function(r){return null==r?void 0:r[e]}}},10301:(e,r,t)=>{var n=t(79867);e.exports=function(e){return function(r){return n(r,e)}}},61933:(e,r,t)=>{var n=t(66070),i=t(8817),o=t(56006),a=t(39334),s=t(37561),u=Array.prototype.splice;e.exports=function(e,r,t,c){var f=c?o:i,l=-1,p=r.length,d=e;for(e===r&&(r=s(r)),t&&(d=n(e,a(t)));++l<p;)for(var m=0,h=r[l],y=t?t(h):h;(m=f(d,y,m,c))>-1;)d!==e&&u.call(d,m,1),u.call(e,m,1);return e}},19356:e=>{e.exports=function(e,r,t,n,i){return i(e,(function(e,i,o){t=n?(n=!1,e):r(t,e,i,o)})),t}},1197:(e,r,t)=>{var n=t(31137),i=t(11871),o=t(63132);e.exports=function(e,r){return o(i(e,r,n),e+"")}},73303:e=>{e.exports=function(e,r){var t=e.length;for(e.sort(r);t--;)e[t]=e[t].value;return e}},74833:(e,r,t)=>{var n=t(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},92198:(e,r,t)=>{var n=t(52485),i=t(58095),o=t(21796),a=t(65581),s=t(47111),u=t(43735);e.exports=function(e,r,t){var c=-1,f=i,l=e.length,p=!0,d=[],m=d;if(t)p=!1,f=o;else if(l>=200){var h=r?null:s(e);if(h)return u(h);p=!1,f=a,m=new n}else m=r?[]:d;e:for(;++c<l;){var y=e[c],v=r?r(y):y;if(y=t||0!==y?y:0,p&&v==v){for(var g=m.length;g--;)if(m[g]===v)continue e;r&&m.push(v),d.push(y)}else f(m,v,t)||(m!==d&&m.push(v),d.push(y))}return d}},65581:e=>{e.exports=function(e,r){return e.has(r)}},60923:(e,r,t)=>{var n=t(36468);e.exports=function(e){return n(e)?e:[]}},62079:(e,r,t)=>{var n=t(31137);e.exports=function(e){return"function"==typeof e?e:n}},17845:(e,r,t)=>{var n=t(55193);e.exports=function(e,r){if(e!==r){var t=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==r,u=null===r,c=r==r,f=n(r);if(!u&&!f&&!a&&e>r||a&&s&&c&&!u&&!f||i&&s&&c||!t&&c||!o)return 1;if(!i&&!a&&!f&&e<r||f&&t&&o&&!i&&!a||u&&t&&o||!s&&o||!c)return-1}return 0}},96348:(e,r,t)=>{var n=t(17845);e.exports=function(e,r,t){for(var i=-1,o=e.criteria,a=r.criteria,s=o.length,u=t.length;++i<s;){var c=n(o[i],a[i]);if(c)return i>=u?c:c*("desc"==t[i]?-1:1)}return e.index-r.index}},7270:(e,r,t)=>{var n=t(1197),i=t(57535);e.exports=function(e){return n((function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,s=o>2?t[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(t[0],t[1],s)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var u=t[n];u&&e(r,u,n,a)}return r}))}},26789:(e,r,t)=>{var n=t(80068);e.exports=function(e,r){return function(t,i){if(null==t)return t;if(!n(t))return e(t,i);for(var o=t.length,a=r?o:-1,s=Object(t);(r?a--:++a<o)&&!1!==i(s[a],a,s););return t}}},18911:e=>{e.exports=function(e){return function(r,t,n){for(var i=-1,o=Object(r),a=n(r),s=a.length;s--;){var u=a[e?s:++i];if(!1===t(o[u],u,o))break}return r}}},47111:(e,r,t)=>{var n=t(46151),i=t(50344),o=t(43735),a=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=a},19491:(e,r,t)=>{var n=t(40015),i=t(11611);e.exports=function e(r,t,o,a,s,u){return i(r)&&i(t)&&(u.set(t,r),n(r,t,void 0,e,u),u.delete(t)),r}},27042:(e,r,t)=>{var n=t(52485),i=t(90756),o=t(65581);e.exports=function(e,r,t,a,s,u){var c=1&t,f=e.length,l=r.length;if(f!=l&&!(c&&l>f))return!1;var p=u.get(e),d=u.get(r);if(p&&d)return p==r&&d==e;var m=-1,h=!0,y=2&t?new n:void 0;for(u.set(e,r),u.set(r,e);++m<f;){var v=e[m],g=r[m];if(a)var b=c?a(g,v,m,r,e,u):a(v,g,m,e,r,u);if(void 0!==b){if(b)continue;h=!1;break}if(y){if(!i(r,(function(e,r){if(!o(y,r)&&(v===e||s(v,e,t,a,u)))return y.push(r)}))){h=!1;break}}else if(v!==g&&!s(v,g,t,a,u)){h=!1;break}}return u.delete(e),u.delete(r),h}},370:(e,r,t)=>{var n=t(96539),i=t(59942),o=t(85638),a=t(27042),s=t(19383),u=t(43735),c=n?n.prototype:void 0,f=c?c.valueOf:void 0;e.exports=function(e,r,t,n,c,l,p){switch(t){case"[object DataView]":if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=r.byteLength||!l(new i(e),new i(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+r);case"[object Error]":return e.name==r.name&&e.message==r.message;case"[object RegExp]":case"[object String]":return e==r+"";case"[object Map]":var d=s;case"[object Set]":var m=1&n;if(d||(d=u),e.size!=r.size&&!m)return!1;var h=p.get(e);if(h)return h==r;n|=2,p.set(e,r);var y=a(d(e),d(r),n,c,l,p);return p.delete(e),y;case"[object Symbol]":if(f)return f.call(e)==f.call(r)}return!1}},39584:(e,r,t)=>{var n=t(51385),i=Object.prototype.hasOwnProperty;e.exports=function(e,r,t,o,a,s){var u=1&t,c=n(e),f=c.length;if(f!=n(r).length&&!u)return!1;for(var l=f;l--;){var p=c[l];if(!(u?p in r:i.call(r,p)))return!1}var d=s.get(e),m=s.get(r);if(d&&m)return d==r&&m==e;var h=!0;s.set(e,r),s.set(r,e);for(var y=u;++l<f;){var v=e[p=c[l]],g=r[p];if(o)var b=u?o(g,v,p,r,e,s):o(v,g,p,e,r,s);if(!(void 0===b?v===g||a(v,g,t,o,s):b)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){var A=e.constructor,x=r.constructor;A==x||!("constructor"in e)||!("constructor"in r)||"function"==typeof A&&A instanceof A&&"function"==typeof x&&x instanceof x||(h=!1)}return s.delete(e),s.delete(r),h}},68125:(e,r,t)=>{var n=t(68302),i=t(50098);e.exports=function(e){for(var r=i(e),t=r.length;t--;){var o=r[t],a=e[o];r[t]=[o,a,n(a)]}return r}},57535:(e,r,t)=>{var n=t(85638),i=t(80068),o=t(42383),a=t(11611);e.exports=function(e,r,t){if(!a(t))return!1;var s=typeof r;return!!("number"==s?i(t)&&o(r,t.length):"string"==s&&r in t)&&n(t[r],e)}},68302:(e,r,t)=>{var n=t(11611);e.exports=function(e){return e==e&&!n(e)}},19383:e=>{e.exports=function(e){var r=-1,t=Array(e.size);return e.forEach((function(e,n){t[++r]=[n,e]})),t}},65042:e=>{e.exports=function(e,r){return function(t){return null!=t&&t[e]===r&&(void 0!==r||e in Object(t))}}},97494:e=>{e.exports=function(e,r){if(("constructor"!==r||"function"!=typeof e[r])&&"__proto__"!=r)return e[r]}},95915:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},88379:e=>{e.exports=function(e){return this.__data__.has(e)}},43735:e=>{e.exports=function(e){var r=-1,t=Array(e.size);return e.forEach((function(e){t[++r]=e})),t}},58263:e=>{e.exports=function(e,r,t){for(var n=t-1,i=e.length;++n<i;)if(e[n]===r)return n;return-1}},56127:e=>{var r=/\s/;e.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},70236:(e,r,t)=>{var n=t(1197),i=t(85638),o=t(57535),a=t(53893),s=Object.prototype,u=s.hasOwnProperty,c=n((function(e,r){e=Object(e);var t=-1,n=r.length,c=n>2?r[2]:void 0;for(c&&o(r[0],r[1],c)&&(n=1);++t<n;)for(var f=r[t],l=a(f),p=-1,d=l.length;++p<d;){var m=l[p],h=e[m];(void 0===h||i(h,s[m])&&!u.call(e,m))&&(e[m]=f[m])}return e}));e.exports=c},53533:(e,r,t)=>{var n=t(79349),i=t(1197),o=t(19491),a=t(73952),s=i((function(e){return e.push(void 0,o),n(a,void 0,e)}));e.exports=s},84812:(e,r,t)=>{var n=t(23545);e.exports=function(e){return null!=e&&e.length?n(e,1/0):[]}},47003:(e,r,t)=>{var n=t(80594),i=t(52033),o=t(62079),a=t(19785);e.exports=function(e,r){return(a(e)?n:i)(e,o(r))}},27921:(e,r,t)=>{var n=t(66070),i=t(96638),o=t(1197),a=t(60923),s=o((function(e){var r=n(e,a);return r.length&&r[0]===e[0]?i(r):[]}));e.exports=s},28054:(e,r,t)=>{var n=t(66070),i=t(96638),o=t(1197),a=t(60923),s=t(31159),u=o((function(e){var r=s(e),t=n(e,a);return(r="function"==typeof r?r:void 0)&&t.pop(),t.length&&t[0]===e[0]?i(t,void 0,r):[]}));e.exports=u},36468:(e,r,t)=>{var n=t(80068),i=t(92360);e.exports=function(e){return i(e)&&n(e)}},3819:(e,r,t)=>{var n=t(99736),i=t(92360);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==n(e)}},56141:(e,r,t)=>{var n=t(32866);e.exports=function(e,r){return n(e,r)}},65191:(e,r,t)=>{var n=t(32866);e.exports=function(e,r,t){var i=(t="function"==typeof t?t:void 0)?t(e,r):void 0;return void 0===i?n(e,r,void 0,t):!!i}},30644:e=>{e.exports=function(e){return null==e}},78581:(e,r,t)=>{var n=t(99736),i=t(92360);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==n(e)}},47206:(e,r,t)=>{var n=t(99736),i=t(19785),o=t(92360);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==n(e)}},15409:(e,r,t)=>{var n=t(40015),i=t(7270)((function(e,r,t){n(e,r,t)}));e.exports=i},73952:(e,r,t)=>{var n=t(40015),i=t(7270)((function(e,r,t,i){n(e,r,t,i)}));e.exports=i},50344:e=>{e.exports=function(){}},96001:(e,r,t)=>{var n=t(50517),i=t(10301),o=t(40318),a=t(37948);e.exports=function(e){return o(e)?n(a(e)):i(e)}},90254:(e,r,t)=>{var n=t(61933);e.exports=function(e,r){return e&&e.length&&r&&r.length?n(e,r):e}},34172:(e,r,t)=>{var n=t(6446),i=t(52033),o=t(89278),a=t(19356),s=t(19785);e.exports=function(e,r,t){var u=s(e)?n:a,c=arguments.length<3;return u(e,o(r,4),t,c,i)}},95099:(e,r,t)=>{var n=t(23545),i=t(98497),o=t(1197),a=t(57535),s=o((function(e,r){if(null==e)return[];var t=r.length;return t>1&&a(e,r[0],r[1])?r=[]:t>2&&a(r[0],r[1],r[2])&&(r=[r[0]]),i(e,n(r,1),[])}));e.exports=s},41571:(e,r,t)=>{var n=t(24701),i=t(62079),o=t(47991),a=4294967295,s=Math.min;e.exports=function(e,r){if((e=o(e))<1||e>9007199254740991)return[];var t=a,u=s(e,a);r=i(r),e-=a;for(var c=n(u,r);++t<e;)r(t);return c}},94919:(e,r,t)=>{var n=t(91936);e.exports=function(e){return e?Infinity===(e=n(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},47991:(e,r,t)=>{var n=t(94919);e.exports=function(e){var r=n(e),t=r%1;return r==r?t?r-t:r:0}},91936:(e,r,t)=>{var n=t(74833),i=t(11611),o=t(55193),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=i(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var t=s.test(e);return t||u.test(e)?c(e.slice(2),t?2:8):a.test(e)?NaN:+e}},89328:(e,r,t)=>{var n=t(35159),i=t(53893);e.exports=function(e){return n(e,i(e))}},42673:(e,r,t)=>{var n=t(80594),i=t(80158),o=t(26194),a=t(89278),s=t(2173),u=t(19785),c=t(43854),f=t(28338),l=t(11611),p=t(48519);e.exports=function(e,r,t){var d=u(e),m=d||c(e)||p(e);if(r=a(r,4),null==t){var h=e&&e.constructor;t=m?d?new h:[]:l(e)&&f(h)?i(s(e)):{}}return(m?n:o)(e,(function(e,n,i){return r(t,e,n,i)})),t}},68946:(e,r,t)=>{var n=t(23545),i=t(1197),o=t(92198),a=t(36468),s=i((function(e){return o(n(e,1,a,!0))}));e.exports=s},83766:(e,r,t)=>{var n=t(92198);e.exports=function(e){return e&&e.length?n(e):[]}},52929:(e,r,t)=>{var n=t(92198);e.exports=function(e,r){return r="function"==typeof r?r:void 0,e&&e.length?n(e,void 0,r):[]}},81889:(e,r,t)=>{var n=t(11005),i=t(1197),o=t(36468),a=i((function(e,r){return o(e)?n(e,r):[]}));e.exports=a},58702:(e,r)=>{"use strict";var t,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case o:case s:case a:case p:case d:return e;default:switch(e=e&&e.$$typeof){case f:case c:case l:case h:case m:case u:return e;default:return r}}case i:return r}}}t=Symbol.for("react.module.reference"),r.ContextConsumer=c,r.ContextProvider=u,r.Element=n,r.ForwardRef=l,r.Fragment=o,r.Lazy=h,r.Memo=m,r.Portal=i,r.Profiler=s,r.StrictMode=a,r.Suspense=p,r.SuspenseList=d,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return v(e)===c},r.isContextProvider=function(e){return v(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return v(e)===l},r.isFragment=function(e){return v(e)===o},r.isLazy=function(e){return v(e)===h},r.isMemo=function(e){return v(e)===m},r.isPortal=function(e){return v(e)===i},r.isProfiler=function(e){return v(e)===s},r.isStrictMode=function(e){return v(e)===a},r.isSuspense=function(e){return v(e)===p},r.isSuspenseList=function(e){return v(e)===d},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===p||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},r.typeOf=v},19185:(e,r,t)=>{"use strict";e.exports=t(58702)},17604:e=>{"use strict";e.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},86401:e=>{"use strict";e.exports=function(e){return"function"==typeof e}},9333:(e,r,t)=>{"use strict";var n=t(17604),i=t(50459);e.exports=function(e){var r;if(!n(e))return!1;if(!(r=e.length))return!1;for(var t=0;t<r;t++)if(!i(e[t]))return!1;return!0}},50459:(e,r,t)=>{"use strict";var n=t(7365);e.exports=function(e){return n(e)&&e%1==0}},7365:e=>{"use strict";e.exports=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()}}}]);
|
|
2
|
+
(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7995],{57995:(e,r,t)=>{"use strict";function n(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function i(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),n(e.additionalItems)}function o(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}t.r(r),t.d(r,{ADDITIONAL_PROPERTIES_KEY:()=>s,ADDITIONAL_PROPERTY_FLAG:()=>a,ALL_OF_KEY:()=>u,ANY_OF_KEY:()=>c,CONST_KEY:()=>f,DEFAULT_KEY:()=>l,DEFINITIONS_KEY:()=>p,DEPENDENCIES_KEY:()=>d,ENUM_KEY:()=>m,ERRORS_KEY:()=>h,ErrorSchemaBuilder:()=>Sr,ID_KEY:()=>y,IF_KEY:()=>v,ITEMS_KEY:()=>g,JUNK_OPTION_ID:()=>b,NAME_KEY:()=>A,ONE_OF_KEY:()=>x,PROPERTIES_KEY:()=>w,REF_KEY:()=>E,REQUIRED_KEY:()=>O,RJSF_ADDITONAL_PROPERTIES_FLAG:()=>_,ROOT_SCHEMA_PREFIX:()=>I,SUBMIT_BTN_OPTIONS_KEY:()=>S,TranslatableString:()=>nt,UI_FIELD_KEY:()=>j,UI_GLOBAL_OPTIONS_KEY:()=>$,UI_OPTIONS_KEY:()=>D,UI_WIDGET_KEY:()=>P,allowAdditionalItems:()=>i,ariaDescribedByIds:()=>qr,asNumber:()=>o,canExpand:()=>F,createErrorHandler:()=>U,createSchemaUtils:()=>lr,dataURItoBlob:()=>pr,deepEquals:()=>L,descriptionId:()=>Lr,englishStringTranslator:()=>mr,enumOptionsDeselectValue:()=>yr,enumOptionsIndexForValue:()=>gr,enumOptionsIsSelected:()=>vr,enumOptionsSelectValue:()=>xr,enumOptionsValueForIndex:()=>hr,errorId:()=>Cr,examplesId:()=>Rr,findSchemaDefinition:()=>z,getClosestMatchingOption:()=>Be,getDateElementProps:()=>Er,getDefaultFormState:()=>Ze,getDiscriminatorFieldFromSchema:()=>Se,getDisplayLabel:()=>tr,getFirstMatchingOption:()=>ce,getInputProps:()=>Ir,getMatchingOption:()=>ue,getOptionMatchingSimpleDiscriminator:()=>se,getSchemaType:()=>je,getSubmitButtonOptions:()=>Pr,getTemplate:()=>Dr,getUiOptions:()=>N,getWidget:()=>Tr,guessType:()=>Ee,hasWidget:()=>kr,hashForSchema:()=>Ur,helpId:()=>Br,isConstant:()=>Ke,isCustomWidget:()=>er,isFilesArray:()=>rr,isFixedItems:()=>Ve,isMultiSelect:()=>ze,isObject:()=>n,isSelect:()=>Je,labelValue:()=>Kr,localToUTC:()=>Jr,mergeDefaultsWithFormData:()=>qe,mergeObjects:()=>Ye,mergeSchemas:()=>Pe,mergeValidationData:()=>nr,optionId:()=>Yr,optionsList:()=>Hr,orderProperties:()=>Gr,pad:()=>Qr,parseDateString:()=>Xr,rangeSpec:()=>_r,replaceStringParameters:()=>dr,retrieveSchema:()=>De,sanitizeDataForNewSchema:()=>or,schemaParser:()=>ht,schemaRequiresTrueValue:()=>Zr,shouldRender:()=>et,titleId:()=>Vr,toConstant:()=>zr,toDateString:()=>rt,toErrorList:()=>tt,toErrorSchema:()=>at,toIdSchema:()=>sr,toPathSchema:()=>cr,unwrapErrorHandler:()=>st,utcToLocal:()=>ut,validationDataMerge:()=>ct,withIdRefPrefix:()=>ft});const a="__additional_property",s="additionalProperties",u="allOf",c="anyOf",f="const",l="default",p="definitions",d="dependencies",m="enum",h="__errors",y="$id",v="if",g="items",b="_$junk_option_schema_id$_",A="$name",x="oneOf",w="properties",O="required",S="submitButtonOptions",E="$ref",_="__rjsf_additionalProperties",I="__rjsf_rootSchema",j="ui:field",P="ui:widget",D="ui:options",$="ui:globalOptions";function N(e={},r={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((r,t)=>{const i=e[t];return t===P&&n(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===D&&n(i)?{...r,...i}:{...r,[t.substring(3)]:i}}),{...r})}function F(e,r={},t){if(!e.additionalProperties)return!1;const{expandable:n=!0}=N(r);return!1===n?n:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties}var M=t(40861),T=t.n(M);function U(e){const r={[h]:[],addError(e){this[h].push(e)}};if(Array.isArray(e))return e.reduce(((e,r,t)=>({...e,[t]:U(r)})),r);if(T()(e)){const t=e;return Object.keys(t).reduce(((e,r)=>({...e,[r]:U(t[r])})),r)}return r}var k=t(65191),W=t.n(k);function L(e,r){return W()(e,r,((e,r)=>{if("function"==typeof e&&"function"==typeof r)return!0}))}var C=t(99729),R=t.n(C),B=t(90104),V=t.n(B),q=t(88208),Y=t(48159),K=t.n(Y);function J(e,r){const t=r[e];return[K()(r,[e]),t]}function z(e,r={}){let t=e||"";if(!t.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);t=decodeURIComponent(t.substring(1));const n=q.get(r,t);if(void 0===n)throw new Error(`Could not find a definition for ${e}.`);if(n[E]){const[e,t]=J(E,n),i=z(t,r);return Object.keys(e).length>0?{...e,...i}:i}return n}var H=t(73915),G=t.n(H),Q=t(78581),X=t.n(Q),Z=t(11611),ee=t.n(Z),re=t(47206),te=t.n(re),ne=t(34172),ie=t.n(ne),oe=t(41571),ae=t.n(oe);function se(e,r,t){var n;if(e&&t){const i=R()(e,t);if(void 0===i)return;for(let e=0;e<r.length;e++){const o=r[e],a=R()(o,[w,t],{});if("object"!==a.type&&"array"!==a.type){if(a.const===i)return e;if(null===(n=a.enum)||void 0===n?void 0:n.includes(i))return e}}}}function ue(e,r,t,n,i){if(void 0===r)return 0;const o=se(r,t,i);if(X()(o))return o;for(let o=0;o<t.length;o++){const a=t[o];if(i&&G()(a,[w,i])){const t=R()(r,i),s=R()(a,[w,i],{});if(e.isValid(s,t,n))return o}else if(a[w]){const t={anyOf:Object.keys(a[w]).map((e=>({required:[e]})))};let i;if(a.anyOf){const{...e}=a;e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(t),i=e}else i=Object.assign({},a,t);if(delete i.required,e.isValid(i,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function ce(e,r,t,n,i){return ue(e,r,t,n,i)}var fe=t(56141),le=t.n(fe),pe=t(47215),de=t.n(pe),me=t(42673),he=t.n(me),ye=t(15409),ve=t.n(ye),ge=t(84812),be=t.n(ge),Ae=t(83766),xe=t.n(Ae),we=t(64717),Oe=t.n(we);function Se(e){let r;const t=R()(e,"discriminator.propertyName",void 0);return te()(t)?r=t:void 0!==t&&console.warn(`Expecting discriminator to be a string, got "${typeof t}" instead`),r}function Ee(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}var _e=t(68946),Ie=t.n(_e);function je(e){let{type:r}=e;return!r&&e.const?Ee(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&(r=2===r.length&&r.includes("null")?r.find((e=>"null"!==e)):r[0]),r):"object"}function Pe(e,r){const t=Object.assign({},e);return Object.keys(r).reduce(((t,i)=>{const o=e?e[i]:{},a=r[i];return e&&i in e&&n(a)?t[i]=Pe(o,a):e&&r&&("object"===je(e)||"object"===je(r))&&i===O&&Array.isArray(o)&&Array.isArray(a)?t[i]=Ie()(o,a):t[i]=a,t}),t)}function De(e,r,t={},n){return Me(e,r,t,n)[0]}function $e(e){return e.reduce(((e,r)=>r.length>1?r.flatMap((r=>ae()(e.length,(t=>[...e[t]].concat(r))))):(e.forEach((e=>e.push(r[0]))),e)),[[]])}function Ne(e,r,t,n,i,o){const a=Fe(r,t,i);return a!==r?Me(e,a,t,o,n,i):[r]}function Fe(e,r,t){if(!n(e))return e;let i=e;if(E in i){const{$ref:e,...n}=i;if(t.includes(e))return i;t.push(e),i={...z(e,r),...n}}if(w in i){const e=[],n=he()(i[w],((n,i,o)=>{const a=[...t];n[o]=Fe(i,r,a),e.push(a)}),{});ve()(t,xe()(be()(e))),i={...i,[w]:n}}return g in i&&!Array.isArray(i.items)&&"boolean"!=typeof i.items&&(i={...i,items:Fe(i.items,r,t)}),le()(e,i)?e:i}function Me(e,r,t,i,o=!1,f=[]){if(!n(r))return[{}];const l=function(e,r,t,n,i,o){const a=Ne(e,r,t,n,i,o);return a.length>1||a[0]!==r?a:d in r?Ue(e,r,t,n,i,o).flatMap((r=>Me(e,r,t,o,n,i))):u in r&&Array.isArray(r.allOf)?$e(r.allOf.map((r=>Me(e,r,t,o,n,i)))).map((e=>({...r,allOf:e}))):[r]}(e,r,t,o,f,i);return l.flatMap((r=>{let l=r;if(v in l)return function(e,r,t,n,i,o){const{if:a,then:s,else:u,...c}=r,f=e.isValid(a,o||{},t);let l=[c],p=[];if(n)s&&"boolean"!=typeof s&&(p=p.concat(Me(e,s,t,o,n,i))),u&&"boolean"!=typeof u&&(p=p.concat(Me(e,u,t,o,n,i)));else{const r=f?s:u;r&&"boolean"!=typeof r&&(p=p.concat(Me(e,r,t,o,n,i)))}return p.length&&(l=p.map((e=>Pe(c,e)))),l.flatMap((r=>Me(e,r,t,o,n,i)))}(e,l,t,o,f,i);if(u in l){if(o){const{allOf:e,...r}=l;return[...e,r]}try{l=Oe()(l,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:r,...t}=l;return t}}return s in l&&!1!==l.additionalProperties?function(e,r,t,i){const o={...r,properties:{...r.properties}},s=i&&n(i)?i:{};return Object.keys(s).forEach((r=>{if(r in o.properties)return;let n={};n="boolean"!=typeof o.additionalProperties?E in o.additionalProperties?De(e,{$ref:R()(o.additionalProperties,[E])},t,s):"type"in o.additionalProperties?{...o.additionalProperties}:c in o.additionalProperties||x in o.additionalProperties?{type:"object",...o.additionalProperties}:{type:Ee(R()(s,[r]))}:{type:Ee(R()(s,[r]))},o.properties[r]=n,de()(o.properties,[r,a],!0)})),o}(e,l,t,i):l}))}function Te(e,r,t,n,i){let o;const{oneOf:a,anyOf:s,...u}=r;if(Array.isArray(a)?o=a:Array.isArray(s)&&(o=s),o){const a=void 0===i&&n?{}:i,s=Se(r);o=o.map((e=>Fe(e,t,[])));const c=ce(e,a,o,t,s);if(n)return o.map((e=>Pe(u,e)));r=Pe(u,o[c])}return[r]}function Ue(e,r,t,n,i,o){const{dependencies:a,...s}=r;return Te(e,s,t,n,o).flatMap((r=>ke(e,a,r,t,n,i,o)))}function ke(e,r,t,i,o,a,s){let u=[t];for(const c in r){if(!o&&void 0===R()(s,[c]))continue;if(t.properties&&!(c in t.properties))continue;const[f,l]=J(c,r);return Array.isArray(l)?u[0]=We(t,l):n(l)&&(u=Le(e,t,i,c,l,o,a,s)),u.flatMap((r=>ke(e,f,r,i,o,a,s)))}return u}function We(e,r){if(!r)return e;const t=Array.isArray(e.required)?Array.from(new Set([...e.required,...r])):r;return{...e,required:t}}function Le(e,r,t,n,i,o,a,s){return Me(e,i,t,s,o,a).flatMap((i=>{const{oneOf:u,...c}=i;return r=Pe(r,c),void 0===u?r:$e(u.map((r=>"boolean"!=typeof r&&E in r?Ne(e,r,t,o,a,s):[r]))).flatMap((i=>function(e,r,t,n,i,o,a,s){const u=i.filter((r=>{if("boolean"==typeof r||!r||!r.properties)return!1;const{[n]:i}=r.properties;if(i){const r={type:"object",properties:{[n]:i}};return e.isValid(r,s,t)||o}return!1}));return o||1===u.length?u.flatMap((i=>{const u=i,[c]=J(n,u.properties),f={...u,properties:c};return Me(e,f,t,s,o,a).map((e=>Pe(r,e)))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[r])}(e,r,t,n,i,o,a,s)))}))}const Ce={type:"object",$id:b,properties:{__not_really_there__:{type:"number"}}};function Re(e,r,t,n={}){let i=0;return t&&(ee()(t.properties)?i+=ie()(t.properties,((t,i,o)=>{const a=R()(n,o);if("boolean"==typeof i)return t;if(G()(i,E)){const n=De(e,i,r,a);return t+Re(e,r,n,a||{})}if((G()(i,x)||G()(i,c))&&a){const n=G()(i,x)?x:c,o=Se(i);return t+Be(e,r,a,R()(i,n),-1,o)}if("object"===i.type)return t+Re(e,r,i,a||{});if(i.type===Ee(a)){let e=t+1;return i.default?e+=a===i.default?1:-1:i.const&&(e+=a===i.const?1:-1),e}return t}),0):te()(t.type)&&t.type===Ee(n)&&(i+=1)),i}function Be(e,r,t,n,i=-1,o){const a=n.map((e=>Fe(e,r,[]))),s=se(t,n,o);if(X()(s))return s;const u=a.reduce(((n,i,a)=>(1===ce(e,t,[Ce,i],r,o)&&n.push(a),n)),[]);if(1===u.length)return u[0];u.length||ae()(a.length,(e=>u.push(e)));const c=new Set,{bestIndex:f}=u.reduce(((n,i)=>{const{bestScore:o}=n,s=a[i],u=Re(e,r,s,t);return c.add(u),u>o?{bestIndex:i,bestScore:u}:n}),{bestIndex:i,bestScore:0});return 1===c.size&&i>=0?i:f}function Ve(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>n(e)))}function qe(e,r,t=!1){if(Array.isArray(r)){const n=Array.isArray(e)?e:[],i=r.map(((e,r)=>n[r]?qe(n[r],e,t):e));return t&&i.length<n.length&&i.push(...n.slice(i.length)),i}if(n(r)){const n=Object.assign({},e);return Object.keys(r).reduce(((n,i)=>(n[i]=qe(e?R()(e,i):{},R()(r,i),t),n)),n)}return r}function Ye(e,r,t=!1){return Object.keys(r).reduce(((i,o)=>{const a=e?e[o]:{},s=r[o];if(e&&o in e&&n(s))i[o]=Ye(a,s,t);else if(t&&Array.isArray(a)&&Array.isArray(s)){let e=s;"preventDuplicates"===t&&(e=s.reduce(((e,r)=>(a.includes(r)||e.push(r),e)),[])),i[o]=a.concat(e)}else i[o]=s;return i}),Object.assign({},e))}function Ke(e){return Array.isArray(e.enum)&&1===e.enum.length||f in e}function Je(e,r,t={}){const n=De(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((e=>"boolean"!=typeof e&&Ke(e)))}function ze(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&Je(e,r.items,t)}var He;function Ge(e,r=He.Ignore,t=-1){if(t>=0){if(Array.isArray(e.items)&&t<e.items.length){const r=e.items[t];if("boolean"!=typeof r)return r}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==He.Ignore&&n(e.additionalItems)?e.additionalItems:{}}function Qe(e,r,t,i,o,a=[],s={}){const{emptyObjectFields:u="populateAllDefaults"}=s;if(i)e[r]=t;else if("skipDefaults"!==u)if(n(t)){const n=void 0===o?a.includes(r):o;V()(t)&&!a.includes(r)||!n&&"populateRequiredDefaults"===u||(e[r]=t)}else void 0===t||"populateAllDefaults"!==u&&!a.includes(r)||(e[r]=t)}function Xe(e,r,{parentDefaults:t,rawFormData:i,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:f,required:p}={}){var m,h;const y=n(i)?i:{},v=n(r)?r:{};let g=t,b=null,A=s;if(n(g)&&n(v.default))g=Ye(g,v.default);else if(l in v)g=v.default;else if(E in v){const e=v[E];s.includes(e)||(A=s.concat(e),b=z(e,o))}else if(d in v)b=Ue(e,v,o,!1,[],y)[0];else if(Ve(v))g=v.items.map(((r,n)=>Xe(e,r,{rootSchema:o,includeUndefinedValues:a,_recurseList:s,experimental_defaultFormStateBehavior:f,parentDefaults:Array.isArray(t)?t[n]:void 0,rawFormData:y,required:p})));else if(x in v){const{oneOf:r,...t}=v;if(0===r.length)return;const n=Se(v);b=r[Be(e,o,V()(y)?void 0:y,r,0,n)],b=Pe(t,b)}else if(c in v){const{anyOf:r,...t}=v;if(0===r.length)return;const n=Se(v);b=r[Be(e,o,V()(y)?void 0:y,r,0,n)],b=Pe(t,b)}if(b)return Xe(e,b,{rootSchema:o,includeUndefinedValues:a,_recurseList:A,experimental_defaultFormStateBehavior:f,parentDefaults:g,rawFormData:y,required:p});switch(void 0===g&&(g=v.default),je(v)){case"object":{const r="populateDefaults"===(null==f?void 0:f.allOf)&&u in v?De(e,v,o,y):v,t=Object.keys(r.properties||{}).reduce(((t,n)=>{var i;return Qe(t,n,Xe(e,R()(r,[w,n]),{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,includeUndefinedValues:!0===a,parentDefaults:R()(g,[n]),rawFormData:R()(y,[n]),required:null===(i=r.required)||void 0===i?void 0:i.includes(n)}),a,p,r.required,f),t}),{});if(r.additionalProperties){const i=n(r.additionalProperties)?r.additionalProperties:{},u=new Set;n(g)&&Object.keys(g).filter((e=>!r.properties||!r.properties[e])).forEach((e=>u.add(e)));const c=[];Object.keys(y).filter((e=>!r.properties||!r.properties[e])).forEach((e=>{u.add(e),c.push(e)})),u.forEach((n=>{var u;const l=Xe(e,i,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,includeUndefinedValues:!0===a,parentDefaults:R()(g,[n]),rawFormData:R()(y,[n]),required:null===(u=r.required)||void 0===u?void 0:u.includes(n)});Qe(t,n,l,a,p,c)}))}return t}case"array":{const r="never"===(null===(m=null==f?void 0:f.arrayMinItems)||void 0===m?void 0:m.populate),t="requiredOnly"===(null===(h=null==f?void 0:f.arrayMinItems)||void 0===h?void 0:h.populate);if(Array.isArray(g)&&(g=g.map(((r,t)=>{const n=Ge(v,He.Fallback,t);return Xe(e,n,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,parentDefaults:r,required:p})}))),Array.isArray(i)){const t=Ge(v);g=r?i:i.map(((r,n)=>Xe(e,t,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,rawFormData:r,parentDefaults:R()(g,[n]),required:p})))}if(r)return null!=g?g:[];if(t&&!p)return g||void 0;const n=Array.isArray(g)?g.length:0;if(!v.minItems||ze(e,v,o)||v.minItems<=n)return g||[];const a=g||[],u=Ge(v,He.Invert),c=u.default,l=new Array(v.minItems-n).fill(Xe(e,u,{parentDefaults:c,rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:f,required:p}));return a.concat(l)}}return g}function Ze(e,r,t,i,o=!1,a){if(!n(r))throw new Error("Invalid schema: "+r);const s=Xe(e,De(e,r,i,t),{rootSchema:i,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:t});if(null==t||"number"==typeof t&&isNaN(t))return s;const{mergeExtraDefaults:u}=(null==a?void 0:a.arrayMinItems)||{};return n(t)||Array.isArray(t)?qe(s,t,u):t}function er(e={}){return"widget"in N(e)&&"hidden"!==N(e).widget}function rr(e,r,t={},n){if("files"===t[P])return!0;if(r.items){const t=De(e,r.items,n);return"string"===t.type&&"data-url"===t.format}return!1}function tr(e,r,t={},n,i){const o=N(t,i),{label:a=!0}=o;let s=!!a;const u=je(r);return"array"===u&&(s=ze(e,r,n)||rr(e,r,t,n)||er(t)),"object"===u&&(s=!1),"boolean"!==u||t[P]||(s=!1),t[j]&&(s=!1),s}function nr(e,r,t){if(!t)return r;const{errors:n,errorSchema:i}=r;let o=e.toErrorList(t),a=t;return V()(i)||(a=Ye(i,t,!0),o=[...n].concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(He||(He={}));const ir=Symbol("no Value");function or(e,r,t,n,i={}){let o;if(G()(t,w)){const a={};if(G()(n,w)){const e=R()(n,w,{});Object.keys(e).forEach((e=>{G()(i,e)&&(a[e]=void 0)}))}const s=Object.keys(R()(t,w,{})),u={};s.forEach((o=>{const s=R()(i,o);let c=R()(n,[w,o],{}),f=R()(t,[w,o],{});G()(c,E)&&(c=De(e,c,r,s)),G()(f,E)&&(f=De(e,f,r,s));const l=R()(c,"type"),p=R()(f,"type");if(!l||l===p)if(G()(a,o)&&delete a[o],"object"===p||"array"===p&&Array.isArray(s)){const t=or(e,r,f,c,s);void 0===t&&"array"!==p||(u[o]=t)}else{const e=R()(f,"default",ir),r=R()(c,"default",ir);e!==ir&&e!==s&&(r===s?a[o]=e:!0===R()(f,"readOnly")&&(a[o]=void 0));const t=R()(f,"const",ir),n=R()(c,"const",ir);t!==ir&&t!==s&&(a[o]=n===s?t:void 0)}})),o={..."string"==typeof i||Array.isArray(i)?void 0:i,...a,...u}}else if("array"===R()(n,"type")&&"array"===R()(t,"type")&&Array.isArray(i)){let a=R()(n,"items"),s=R()(t,"items");if("object"!=typeof a||"object"!=typeof s||Array.isArray(a)||Array.isArray(s))"boolean"==typeof a&&"boolean"==typeof s&&a===s&&(o=i);else{G()(a,E)&&(a=De(e,a,r,i)),G()(s,E)&&(s=De(e,s,r,i));const n=R()(a,"type"),u=R()(s,"type");if(!n||n===u){const n=R()(t,"maxItems",-1);o="object"===u?i.reduce(((t,i)=>{const o=or(e,r,s,a,i);return void 0!==o&&(n<0||t.length<n)&&t.push(o),t}),[]):n>0&&i.length>n?i.slice(0,n):i}}}return o}function ar(e,r,t,i,o,a,s,c=[]){if(E in r||d in r||u in r){const n=De(e,r,a,s);if(-1===c.findIndex((e=>le()(e,n))))return ar(e,n,t,i,o,a,s,c.concat(n))}if(g in r&&!R()(r,[g,E]))return ar(e,R()(r,g),t,i,o,a,s,c);const f={$id:o||t};if("object"===je(r)&&w in r)for(const o in r.properties){const u=R()(r,[w,o]),l=f[y]+i+o;f[o]=ar(e,n(u)?u:{},t,i,l,a,R()(s,[o]),c)}return f}function sr(e,r,t,n,i,o="root",a="_"){return ar(e,r,o,a,t,n,i)}function ur(e,r,t,n,i,o=[]){if(E in r||d in r||u in r){const a=De(e,r,n,i);if(-1===o.findIndex((e=>le()(e,a))))return ur(e,a,t,n,i,o.concat(a))}let a={[A]:t.replace(/^\./,"")};if(x in r||c in r){const s=x in r?r.oneOf:r.anyOf,u=Se(r),c=s[Be(e,n,i,s,0,u)];a={...a,...ur(e,c,t,n,i,o)}}if(s in r&&!1!==r[s]&&de()(a,_,!0),g in r&&Array.isArray(i)){const{items:s,additionalItems:u}=r;Array.isArray(s)?i.forEach(((r,i)=>{s[i]?a[i]=ur(e,s[i],`${t}.${i}`,n,r,o):u?a[i]=ur(e,u,`${t}.${i}`,n,r,o):console.warn(`Unable to generate path schema for "${t}.${i}". No schema defined for it`)})):i.forEach(((r,i)=>{a[i]=ur(e,s,`${t}.${i}`,n,r,o)}))}else if(w in r)for(const s in r.properties){const u=R()(r,[w,s]);a[s]=ur(e,u,`${t}.${s}`,n,R()(i,[s]),o)}return a}function cr(e,r,t="",n,i){return ur(e,r,t,n,i)}class fr{constructor(e,r,t){this.rootSchema=r,this.validator=e,this.experimental_defaultFormStateBehavior=t}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,r,t={}){return!(!e||!r||this.validator===e&&L(this.rootSchema,r)&&L(this.experimental_defaultFormStateBehavior,t))}getDefaultFormState(e,r,t=!1){return Ze(this.validator,e,r,this.rootSchema,t,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,r,t){return tr(this.validator,e,r,this.rootSchema,t)}getClosestMatchingOption(e,r,t,n){return Be(this.validator,this.rootSchema,e,r,t,n)}getFirstMatchingOption(e,r,t){return ce(this.validator,e,r,this.rootSchema,t)}getMatchingOption(e,r,t){return ue(this.validator,e,r,this.rootSchema,t)}isFilesArray(e,r){return rr(this.validator,e,r,this.rootSchema)}isMultiSelect(e){return ze(this.validator,e,this.rootSchema)}isSelect(e){return Je(this.validator,e,this.rootSchema)}mergeValidationData(e,r){return nr(this.validator,e,r)}retrieveSchema(e,r){return De(this.validator,e,this.rootSchema,r)}sanitizeDataForNewSchema(e,r,t){return or(this.validator,this.rootSchema,e,r,t)}toIdSchema(e,r,t,n="root",i="_"){return sr(this.validator,e,r,this.rootSchema,t,n,i)}toPathSchema(e,r,t){return cr(this.validator,e,r,this.rootSchema,t)}}function lr(e,r,t={}){return new fr(e,r,t)}function pr(e){const r=e.split(","),t=r[0].split(";"),n=t[0].replace("data:",""),i=t.filter((e=>"name"===e.split("=")[0]));let o;o=1!==i.length?"unknown":decodeURI(i[0].split("=")[1]);try{const e=atob(r[1]),t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return{blob:new window.Blob([new Uint8Array(t)],{type:n}),name:o}}catch(r){return{blob:{size:0,type:r.message},name:e}}}function dr(e,r){let t=e;if(Array.isArray(r)){const e=t.split(/(%\d)/);r.forEach(((r,t)=>{const n=e.findIndex((e=>e===`%${t+1}`));n>=0&&(e[n]=r)})),t=e.join("")}return t}function mr(e,r){return dr(e,r)}function hr(e,r=[],t){if(Array.isArray(e))return e.map((e=>hr(e,r))).filter((e=>e));const n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function yr(e,r,t=[]){const n=hr(e,t);return Array.isArray(r)?r.filter((e=>!le()(e,n))):le()(n,r)?void 0:r}function vr(e,r){return Array.isArray(r)?r.some((r=>le()(r,e))):le()(r,e)}function gr(e,r=[],t=!1){const n=r.map(((r,t)=>vr(r.value,e)?String(t):void 0)).filter((e=>void 0!==e));return t?n:n[0]}var br=t(30644),Ar=t.n(br);function xr(e,r,t=[]){const n=hr(e,t);if(!Ar()(n)){const e=t.findIndex((e=>n===e.value)),i=t.map((({value:e})=>e));return r.slice(0,e).concat(n,r.slice(e)).sort(((e,r)=>Number(i.indexOf(e)>i.indexOf(r))))}return r}var wr=t(30454),Or=t.n(wr);class Sr{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let r=Array.isArray(e)&&e.length>0||"string"==typeof e?R()(this.errorSchema,e):this.errorSchema;return!r&&e&&(r={},de()(this.errorSchema,e,r)),r}resetAllErrors(e){return this.errorSchema=e?Or()(e):{},this}addErrors(e,r){const t=this.getOrCreateErrorBlock(r);let n=R()(t,h);return Array.isArray(n)||(n=[],t[h]=n),Array.isArray(e)?n.push(...e):n.push(e),this}setErrors(e,r){const t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[...e]:[e];return de()(t,h,n),this}clearErrors(e){const r=this.getOrCreateErrorBlock(e);return de()(r,h,[]),this}}function Er(e,r,t=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:i,month:o,year:a,hour:s,minute:u,second:c}=e,f={type:"day",range:[1,31],value:i},l={type:"month",range:[1,12],value:o},p={type:"year",range:t,value:a},d=[];switch(n){case"MDY":d.push(l,f,p);break;case"DMY":d.push(f,l,p);break;default:d.push(p,l,f)}return r&&d.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:c}),d}function _r(e){const r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}function Ir(e,r,t={},n=!0){const i={type:r||"text",..._r(e)};return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i}const jr={props:{disabled:!1},submitText:"Submit",norender:!1};function Pr(e={}){const r=N(e);if(r&&r[S]){const e=r[S];return{...jr,...e}}return jr}function Dr(e,r,t={}){const{templates:n}=r;return"ButtonTemplates"===e?n[e]:t[e]||n[e]}var $r=t(24246),Nr=t(78156),Fr=t(19185);const Mr={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Tr(e,r,t={}){const n=je(e);if("function"==typeof r||r&&Fr.isForwardRef((0,Nr.createElement)(r))||Fr.isMemo(r))return function(e){let r=R()(e,"MergedWidget");if(!r){const t=e.defaultProps&&e.defaultProps.options||{};r=({options:r,...n})=>(0,$r.jsx)(e,{options:{...t,...r},...n}),de()(e,"MergedWidget",r)}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return Tr(e,t[r],t);if("string"==typeof n){if(!(n in Mr))throw new Error(`No widget for type '${n}'`);if(r in Mr[n])return Tr(e,t[Mr[n][r]],t)}throw new Error(`No widget '${r}' for type '${n}'`)}function Ur(e){const r=new Set;return JSON.stringify(e,((e,t)=>(r.add(e),t))),function(e){let r=0;for(let t=0;t<e.length;t+=1)r=(r<<5)-r+e.charCodeAt(t),r&=r;return r.toString(16)}(JSON.stringify(e,Array.from(r).sort()))}function kr(e,r,t={}){try{return Tr(e,r,t),!0}catch(e){const r=e;if(r.message&&(r.message.startsWith("No widget")||r.message.startsWith("Unsupported widget")))return!1;throw e}}function Wr(e,r){return`${te()(e)?e:e[y]}__${r}`}function Lr(e){return Wr(e,"description")}function Cr(e){return Wr(e,"error")}function Rr(e){return Wr(e,"examples")}function Br(e){return Wr(e,"help")}function Vr(e){return Wr(e,"title")}function qr(e,r=!1){const t=r?` ${Rr(e)}`:"";return`${Cr(e)} ${Lr(e)} ${Br(e)}${t}`}function Yr(e,r){return`${e}-${r}`}function Kr(e,r,t){return r?t:e}function Jr(e){return e?new Date(e).toJSON():void 0}function zr(e){if(m in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(f in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function Hr(e){const r=e;if(r.enumNames,e.enum)return e.enum.map(((e,t)=>({label:r.enumNames&&r.enumNames[t]||String(e),value:e})));const t=e.oneOf||e.anyOf;return t&&t.map((e=>{const r=e,t=zr(r);return{schema:r,label:r.title||String(t),value:t}}))}function Gr(e,r){if(!Array.isArray(r))return e;const t=e=>e.reduce(((e,r)=>(e[r]=!0,e)),{}),n=t(e),i=r.filter((e=>"*"===e||n[e])),o=t(i),a=e.filter((e=>!o[e])),s=i.indexOf("*");if(-1===s){if(a.length)throw new Error("uiSchema order list does not contain "+((u=a).length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`));return i}var u;if(s!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...i];return c.splice(s,1,...a),c}function Qr(e,r){let t=String(e);for(;t.length<r;)t="0"+t;return t}function Xr(e,r=!0){if(!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};const t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}}function Zr(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return Zr(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return Zr(e.oneOf[0]);if(e.allOf){const r=e=>Zr(e);return e.allOf.some(r)}return!1}function et(e,r,t){const{props:n,state:i}=e;return!L(n,r)||!L(i,t)}function rt(e,r=!0){const{year:t,month:n,day:i,hour:o=0,minute:a=0,second:s=0}=e,u=Date.UTC(t,n-1,i,o,a,s),c=new Date(u).toJSON();return r?c:c.slice(0,10)}function tt(e,r=[]){if(!e)return[];let t=[];return h in e&&(t=t.concat(e[h].map((e=>{const t=`.${r.join(".")}`;return{property:t,message:e,stack:`${t} ${e}`}})))),Object.keys(e).reduce(((t,n)=>{if(n!==h){const i=e[n];T()(i)&&(t=t.concat(tt(i,[...r,n])))}return t}),t)}var nt,it=t(40110),ot=t.n(it);function at(e){const r=new Sr;return e.length&&e.forEach((e=>{const{property:t,message:n}=e,i="."===t?[]:ot()(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema}function st(e){return Object.keys(e).reduce(((r,t)=>{if("addError"===t)return r;{const n=e[t];return T()(n)?{...r,[t]:st(n)}:{...r,[t]:n}}}),{})}function ut(e){if(!e)return"";const r=new Date(e);return`${Qr(r.getFullYear(),4)}-${Qr(r.getMonth()+1,2)}-${Qr(r.getDate(),2)}T${Qr(r.getHours(),2)}:${Qr(r.getMinutes(),2)}:${Qr(r.getSeconds(),2)}.${Qr(r.getMilliseconds(),3)}`}function ct(e,r){if(!r)return e;const{errors:t,errorSchema:n}=e;let i=tt(r),o=r;return V()(n)||(o=Ye(n,r,!0),i=[...t].concat(i)),{errorSchema:o,errors:i}}function ft(e){return Array.isArray(e)?function(e){for(let r=0;r<e.length;r++)e[r]=ft(e[r]);return e}([...e]):ee()(e)?function(e){for(const r in e){const t=e,n=t[r];r===E&&"string"==typeof n&&n.startsWith("#")?t[r]=I+n:t[r]=ft(n)}return e}({...e}):e}!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",e.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",e.FilesInfo="<strong>%1</strong> (%2, %3 bytes)"}(nt||(nt={}));var lt=t(47003),pt=t.n(lt);class dt{constructor(e){this.schemaMap={},this.rootSchema=e,this.addSchema(e,Ur(e))}addSchema(e,r){const t=R()(e,y,r),n={...e,[y]:t},i=this.schemaMap[t];if(i){if(!le()(i,n))throw console.error("existing schema:",JSON.stringify(i,null,2)),console.error("new schema:",JSON.stringify(n,null,2)),new Error(`Two different schemas exist with the same key ${t}! What a bad coincidence. If possible, try adding an $id to one of the schemas`)}else this.schemaMap[t]=n}getSchemaMap(){return this.schemaMap}isValid(e,r,t){if(!le()(t,this.rootSchema))throw new Error("Unexpectedly calling isValid() with a rootSchema that differs from the construction rootSchema");return this.addSchema(e,Ur(e)),!1}rawValidation(e,r){throw new Error("Unexpectedly calling the `rawValidation()` method during schema parsing")}toErrorList(e,r){throw new Error("Unexpectedly calling the `toErrorList()` method during schema parsing")}validateFormData(e,r,t,n,i){throw new Error("Unexpectedly calling the `validateFormData()` method during schema parsing")}}function mt(e,r,t,n){Me(e,n,t,void 0,!0).forEach((n=>{-1===r.findIndex((e=>le()(e,n)))&&(r.push(n),Te(e,n,t,!0).forEach((i=>{w in i&&i[w]&&pt()(n[w],(n=>{mt(e,r,t,n)}))})),g in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&mt(e,r,t,n.items))}))}function ht(e){const r=new dt(e);return mt(r,[],e,e),r.getSchemaMap()}},15422:(e,r,t)=>{"use strict";var n=t(17604),i=t(9333),o=t(86401),a=Math.pow(2,31)-1;function s(e,r){var t,n=1;if(0===e)return r;if(0===r)return e;for(;e%2==0&&r%2==0;)e/=2,r/=2,n*=2;for(;e%2==0;)e/=2;for(;r;){for(;r%2==0;)r/=2;e>r&&(t=r,r=e,e=t),r-=e}return n*e}function u(e,r){var t,n=0;if(0===e)return r;if(0===r)return e;for(;0==(1&e)&&0==(1&r);)e>>>=1,r>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;r;){for(;0==(1&r);)r>>>=1;e>r&&(t=r,r=e,e=t),r-=e}return e<<n}e.exports=function(){var e,r,t,c,f,l,p,d=arguments.length;for(e=new Array(d),p=0;p<d;p++)e[p]=arguments[p];if(i(e)){if(2===d)return(f=e[0])<0&&(f=-f),(l=e[1])<0&&(l=-l),f<=a&&l<=a?u(f,l):s(f,l);t=e}else{if(!n(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(d>1){if(t=e[0],r=e[1],!o(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else t=e[0]}if((c=t.length)<2)return null;if(r){for(f=new Array(c),p=0;p<c;p++)f[p]=r(t[p],p);t=f}if(d<3&&!i(t))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(p=0;p<c;p++)(f=t[p])<0&&(t[p]=-f);for(f=t[0],p=1;p<c;p++)f=(l=t[p])<=a&&f<=a?u(f,l):s(f,l);return f}},72982:(e,r,t)=>{"use strict";var n=t(15422),i=t(17604),o=t(9333),a=t(86401);e.exports=function(){var e,r,t,s,u,c,f,l=arguments.length;for(e=new Array(l),f=0;f<l;f++)e[f]=arguments[f];if(o(e)){if(2===l)return(u=e[0])<0&&(u=-u),(c=e[1])<0&&(c=-c),0===u||0===c?0:u/n(u,c)*c;t=e}else{if(!i(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(l>1){if(t=e[0],r=e[1],!a(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else t=e[0]}if((s=t.length)<2)return null;if(r){for(u=new Array(s),f=0;f<s;f++)u[f]=r(t[f],f);t=u}if(l<3&&!o(t))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(f=0;f<s;f++)(u=t[f])<0&&(t[f]=-u);for(u=t[0],f=1;f<s;f++){if(c=t[f],0===u||0===c)return 0;u=u/n(u,c)*c}return u}},64316:(e,r,t)=>{var n=t(56141),i=t(95099),o=t(83766),a=t(52929),s=t(70236),u=t(28054),c=t(40861),f=t(3819),l=e=>Array.isArray(e)?e:[e],p=e=>void 0===e,d=e=>c(e)||Array.isArray(e)?Object.keys(e):[],m=(e,r)=>e.hasOwnProperty(r),h=e=>i(o(e)),y=e=>p(e)||Array.isArray(e)&&0===e.length,v=(e,r)=>p(e)&&0===r||p(r)&&0===e||n(e,r),g=e=>p(e)||n(e,{})||!0===e,b=e=>p(e)||n(e,{}),A=e=>p(e)||c(e)||!0===e||!1===e;function x(e,r){return!(!y(e)||!y(r))||n(h(e),h(r))}function w(e,r,t,i){var a=o(d(e).concat(d(r)));return!(!b(e)||!b(r))||(!b(e)||!d(r).length)&&(!b(r)||!d(e).length)&&a.every((function(t){var o=e[t],a=r[t];return Array.isArray(o)&&Array.isArray(a)?n(h(e),h(r)):!(Array.isArray(o)&&!Array.isArray(a))&&!(Array.isArray(a)&&!Array.isArray(o))&&((e,r,t,n)=>r&&m(r,t)&&e&&m(e,t)&&n(e[t],r[t]))(e,r,t,i)}))}function O(e,r,t,n){var i=a(e,n),o=a(r,n);return u(i,o,n).length===Math.max(i.length,o.length)}var S={title:n,uniqueItems:(e,r)=>p(e)&&!1===r||p(r)&&!1===e||n(e,r),minLength:v,minItems:v,minProperties:v,required:x,enum:x,type:function(e,r){return e=l(e),r=l(r),n(h(e),h(r))},items:function(e,r,t,i){return c(e)&&c(r)?i(e,r):Array.isArray(e)&&Array.isArray(r)?w(e,r,0,i):n(e,r)},anyOf:O,allOf:O,oneOf:O,properties:w,patternProperties:w,dependencies:w},E=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],_=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(r,t,i){if(i=s(i,{ignore:[]}),g(r)&&g(t))return!0;if(!A(r)||!A(t))throw new Error("Either of the values are not a JSON schema.");if(r===t)return!0;if(f(r)&&f(t))return r===t;if(void 0===r&&!1===t||void 0===t&&!1===r)return!1;if(p(r)&&!p(t)||!p(r)&&p(t))return!1;var a=o(Object.keys(r).concat(Object.keys(t)));if(i.ignore.length&&(a=a.filter((e=>-1===i.ignore.indexOf(e)))),!a.length)return!0;function u(r,t){return e(r,t,i)}return a.every((function(o){var a=r[o],s=t[o];if(-1!==_.indexOf(o))return e(a,s,i);var c=S[o];if(c||(c=n),n(a,s))return!0;if(-1===E.indexOf(o)&&(!m(r,o)&&m(t,o)||m(r,o)&&!m(t,o)))return a===s;var l=c(a,s,o,u);if(!f(l))throw new Error("Comparer must return true or false");return l}))}},2143:(e,r,t)=>{const n=t(89754),i=t(84812),o=t(40861),a=t(83766),s=t(52929),u=t(81889),c=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),f=e=>o(e)||Array.isArray(e)?Object.keys(e):[],l=e=>!f(e).length&&!1!==e&&!0!==e;e.exports={allUniqueKeys:e=>a(i(e.map(f))),deleteUndefinedProps:function(e){for(const r in e)c(e,r)&&l(e[r])&&delete e[r];return e},getValues:(e,r)=>e.map((e=>e&&e[r])),has:c,isEmptySchema:l,isSchema:e=>o(e)||!0===e||!1===e,keys:f,notUndefined:e=>void 0!==e,uniqWith:s,withoutArr:(e,...r)=>u.apply(null,[e].concat(n(r)))}},71020:(e,r,t)=>{const n=t(64316),i=t(47003),{allUniqueKeys:o,deleteUndefinedProps:a,has:s,isSchema:u,notUndefined:c,uniqWith:f}=t(2143);e.exports={keywords:["items","additionalItems"],resolver(e,r,t){const l=e.map((e=>e.items)),p=l.filter(c),d={};let m;var h;return p.every(u)?d.items=t.items(l):d.items=function(e,r,t){return o(t).reduce((function(t,i){const o=function(e,r){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const t=e.items[r];if(u(t))return t;if(s(e,"additionalItems"))return e.additionalItems}}}))}(e,i),a=f(o.filter(c),n);return t[i]=r(a,i),t}),[])}(e,t.items,l),p.every(Array.isArray)?m=e.map((e=>e.additionalItems)):p.some(Array.isArray)&&(m=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),m&&(d.additionalItems=t.additionalItems(m)),!1===d.additionalItems&&Array.isArray(d.items)&&(h=d.items,i(h,(function(e,r){!1===e&&h.splice(r,1)}))),a(d)}}},88807:(e,r,t)=>{const n=t(64316),i=t(47003),{allUniqueKeys:o,deleteUndefinedProps:a,getValues:s,keys:u,notUndefined:c,uniqWith:f,withoutArr:l}=t(2143);function p(e,r){return o(e).reduce((function(t,i){const o=s(e,i),a=f(o.filter(c),n);return t[i]=r(a,i),t}),{})}e.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(e,r,t,n){n.ignoreAdditionalProperties||(e.forEach((function(r){const n=e.filter((e=>e!==r)),i=u(r.properties),o=u(r.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=u(e.properties),a=n.filter((e=>o.some((r=>r.test(e)))));l(n,i,a).forEach((function(n){e.properties[n]=t.properties([e.properties[n],r.additionalProperties],n)}))}))})),e.forEach((function(r){const t=e.filter((e=>e!==r)),n=u(r.patternProperties);!1===r.additionalProperties&&t.forEach((function(e){const r=u(e.patternProperties);l(r,n).forEach((r=>delete e.patternProperties[r]))}))})));const o={additionalProperties:t.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:p(e.map((e=>e.patternProperties)),t.patternProperties),properties:p(e.map((e=>e.properties)),t.properties)};var s;return!1===o.additionalProperties&&i(s=o.properties,(function(e,r){!1===e&&delete s[r]})),a(o)}}},64717:(e,r,t)=>{const n=t(30454),i=t(64316),o=t(72982),a=t(53533),s=t(89754),u=t(84812),c=t(27921),f=t(28054),l=t(56141),p=t(40861),d=t(90254),m=t(95099),h=t(83766),y=t(52929),v=t(88807),g=t(71020),b=(e,r)=>-1!==e.indexOf(r),A=e=>p(e)||!0===e||!1===e,x=e=>!1===e,w=e=>!0===e,O=(e,r,t)=>t(e),S=e=>m(h(u(e))),E=e=>void 0!==e,_=e=>h(u(e.map(N))),I=e=>e[0],j=e=>Math.max.apply(Math,e),P=e=>Math.min.apply(Math,e);function D(e){let{allOf:r=[],...t}=e;return t=p(e)?t:e,[t,...r.map(D)]}function $(e,r){return e.map((e=>e&&e[r]))}function N(e){return p(e)||Array.isArray(e)?Object.keys(e):[]}function F(e,r){if(r=r||[],!e.length)return r;const t=e.slice(0).shift(),n=e.slice(1);return r.length?F(n,s(r.map((e=>t.map((r=>[r].concat(e))))))):F(n,t.map((e=>e)))}function M(e,r){let t;try{t=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(r){t=e.join(", ")}throw new Error('Could not resolve values for path:"'+r.join(".")+'". They are probably incompatible. Values: \n'+t)}function T(e,r,t,n,o,a){if(e.length){const s=o.complexResolvers[r];if(!s||!s.resolver)throw new Error("No resolver found for "+r);const u=t.map((r=>e.reduce(((e,t)=>(void 0!==r[t]&&(e[t]=r[t]),e)),{}))),c=y(u,i),f=s.keywords.reduce(((e,r)=>({...e,[r]:(e,t=[])=>n(e,null,a.concat(r,t))})),{}),l=s.resolver(c,a.concat(r),f,o);return p(l)||M(c,a.concat(r)),l}}function U(e){return{required:e}}const k=["properties","patternProperties","definitions","dependencies"],W=["anyOf","oneOf"],L=["additionalProperties","additionalItems","contains","propertyNames","not","items"],C={type(e){if(e.some(Array.isArray)){const r=e.map((function(e){return Array.isArray(e)?e:[e]})),t=c.apply(null,r);if(1===t.length)return t[0];if(t.length>1)return h(t)}},dependencies:(e,r,t)=>_(e).reduce((function(r,n){const o=$(e,n);let a=y(o.filter(E),l);const s=a.filter(Array.isArray);if(s.length){if(s.length===a.length)r[n]=S(a);else{const e=a.filter(A),i=s.map(U);r[n]=t(e.concat(i),n)}return r}return a=y(a,i),r[n]=t(a,n),r}),{}),oneOf(e,r,t){const o=function(e,r){return e.map((function(e,t){try{return r(e,t)}catch(e){return}})).filter(E)}(F(n(e)),t),a=y(o,i);if(a.length)return a},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let r=e.slice(0),t=1;for(;r.some((e=>!Number.isInteger(e)));)r=r.map((e=>10*e)),t*=10;return o(r)/t},enum(e){const r=f.apply(null,e.concat(l));if(r.length)return m(r)}};C.$id=I,C.$ref=I,C.$schema=I,C.additionalItems=O,C.additionalProperties=O,C.anyOf=C.oneOf,C.contains=O,C.default=I,C.definitions=C.dependencies,C.description=I,C.examples=e=>y(s(e),l),C.exclusiveMaximum=P,C.exclusiveMinimum=j,C.items=g,C.maximum=P,C.maxItems=P,C.maxLength=P,C.maxProperties=P,C.minimum=j,C.minItems=j,C.minLength=j,C.minProperties=j,C.properties=v,C.propertyNames=O,C.required=e=>S(e),C.title=I,C.uniqueItems=e=>e.some(w);const R={properties:v,items:g};function B(e,r,t){t=t||[],r=a(r,{ignoreAdditionalProperties:!1,resolvers:C,complexResolvers:R,deep:!0});const o=Object.entries(r.complexResolvers),s=function e(a,s,u){a=n(a.filter(E)),u=u||[];const c=p(s)?s:{};if(!a.length)return;if(a.some(x))return!1;if(a.every(w))return!0;a=a.filter(p);const f=_(a);if(r.deep&&b(f,"allOf"))return B({allOf:a},r,t);const l=o.map((([e,r])=>f.filter((e=>r.keywords.includes(e)))));return l.forEach((e=>d(f,e))),f.forEach((function(t){const n=$(a,t),o=y(n.filter(E),function(e){return function(r,t){return i({[e]:r},{[e]:t})}}(t));if(1===o.length&&b(W,t))c[t]=o[0].map((r=>e([r],r)));else if(1!==o.length||b(k,t)||b(L,t)){const n=r.resolvers[t]||r.resolvers.defaultResolver;if(!n)throw new Error("No resolver found for key "+t+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const i=(r,n=[])=>e(r,null,u.concat(t,n));c[t]=n(o,u.concat(t),i,r),void 0===c[t]?M(o,u.concat(t)):void 0===c[t]&&delete c[t]}else c[t]=o[0]})),o.reduce(((t,[n,i],o)=>({...t,...T(l[o],n,a,e,r,u)})),c)}(u(D(e)));return s}B.options={resolvers:C},e.exports=B},88208:(e,r)=>{var t=/~/,n=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function o(e){return t.test(e)?e.replace(n,i):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const r of e)if("string"!=typeof r&&"number"!=typeof r)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function s(e,r){if("object"!=typeof e)throw new Error("Invalid input object.");var t=(r=a(r)).length;if(1===t)return e;for(var n=1;n<t;){if(e=e[o(r[n++])],t===n)return e;if("object"!=typeof e||null===e)return}}function u(e,r,t){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(r=a(r)).length)throw new Error("Invalid JSON pointer for set.");return function(e,r,t){for(var n,i,a=1,s=r.length;a<s;){if("constructor"===r[a]||"prototype"===r[a]||"__proto__"===r[a])return e;if(n=o(r[a++]),i=s>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),i&&(""!==r[a]&&r[a]<1/0||"-"===r[a]?e[n]=[]:e[n]={})),!i)break;e=e[n]}var u=e[n];return void 0===t?delete e[n]:e[n]=t,u}(e,r,t)}r.get=s,r.set=u,r.compile=function(e){var r=a(e);return{get:function(e){return s(e,r)},set:function(e,t){return u(e,r,t)}}}},52485:(e,r,t)=>{var n=t(74554),i=t(38639),o=t(88379);function a(e){var r=-1,t=null==e?0:e.length;for(this.__data__=new n;++r<t;)this.add(e[r])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},58095:(e,r,t)=>{var n=t(8817);e.exports=function(e,r){return!(null==e||!e.length)&&n(e,r,0)>-1}},21796:e=>{e.exports=function(e,r,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(r,e[n]))return!0;return!1}},6446:e=>{e.exports=function(e,r,t,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(t=e[++i]);++i<o;)t=r(t,e[i],i,e);return t}},90756:e=>{e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}},73140:(e,r,t)=>{var n=t(88799),i=t(85638);e.exports=function(e,r,t){(void 0!==t&&!i(e[r],t)||void 0===t&&!(r in e))&&n(e,r,t)}},11005:(e,r,t)=>{var n=t(52485),i=t(58095),o=t(21796),a=t(66070),s=t(39334),u=t(65581);e.exports=function(e,r,t,c){var f=-1,l=i,p=!0,d=e.length,m=[],h=r.length;if(!d)return m;t&&(r=a(r,s(t))),c?(l=o,p=!1):r.length>=200&&(l=u,p=!1,r=new n(r));e:for(;++f<d;){var y=e[f],v=null==t?y:t(y);if(y=c||0!==y?y:0,p&&v==v){for(var g=h;g--;)if(r[g]===v)continue e;m.push(y)}else l(r,v,c)||m.push(y)}return m}},52033:(e,r,t)=>{var n=t(26194),i=t(26789)(n);e.exports=i},95372:e=>{e.exports=function(e,r,t,n){for(var i=e.length,o=t+(n?1:-1);n?o--:++o<i;)if(r(e[o],o,e))return o;return-1}},49819:(e,r,t)=>{var n=t(18911)();e.exports=n},26194:(e,r,t)=>{var n=t(49819),i=t(50098);e.exports=function(e,r){return e&&n(e,r,i)}},8817:(e,r,t)=>{var n=t(95372),i=t(1129),o=t(58263);e.exports=function(e,r,t){return r==r?o(e,r,t):n(e,i,t)}},56006:e=>{e.exports=function(e,r,t,n){for(var i=t-1,o=e.length;++i<o;)if(n(e[i],r))return i;return-1}},96638:(e,r,t)=>{var n=t(52485),i=t(58095),o=t(21796),a=t(66070),s=t(39334),u=t(65581),c=Math.min;e.exports=function(e,r,t){for(var f=t?o:i,l=e[0].length,p=e.length,d=p,m=Array(p),h=1/0,y=[];d--;){var v=e[d];d&&r&&(v=a(v,s(r))),h=c(v.length,h),m[d]=!t&&(r||l>=120&&v.length>=120)?new n(d&&v):void 0}v=e[0];var g=-1,b=m[0];e:for(;++g<l&&y.length<h;){var A=v[g],x=r?r(A):A;if(A=t||0!==A?A:0,!(b?u(b,x):f(y,x,t))){for(d=p;--d;){var w=m[d];if(!(w?u(w,x):f(e[d],x,t)))continue e}b&&b.push(x),y.push(A)}}return y}},32866:(e,r,t)=>{var n=t(12772),i=t(92360);e.exports=function e(r,t,o,a,s){return r===t||(null==r||null==t||!i(r)&&!i(t)?r!=r&&t!=t:n(r,t,o,a,e,s))}},12772:(e,r,t)=>{var n=t(23694),i=t(27042),o=t(370),a=t(39584),s=t(3533),u=t(19785),c=t(43854),f=t(48519),l="[object Arguments]",p="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,r,t,h,y,v){var g=u(e),b=u(r),A=g?p:s(e),x=b?p:s(r),w=(A=A==l?d:A)==d,O=(x=x==l?d:x)==d,S=A==x;if(S&&c(e)){if(!c(r))return!1;g=!0,w=!1}if(S&&!w)return v||(v=new n),g||f(e)?i(e,r,t,h,y,v):o(e,r,A,t,h,y,v);if(!(1&t)){var E=w&&m.call(e,"__wrapped__"),_=O&&m.call(r,"__wrapped__");if(E||_){var I=E?e.value():e,j=_?r.value():r;return v||(v=new n),y(I,j,t,h,v)}}return!!S&&(v||(v=new n),a(e,r,t,h,y,v))}},19850:(e,r,t)=>{var n=t(23694),i=t(32866);e.exports=function(e,r,t,o){var a=t.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=t[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var f=(c=t[a])[0],l=e[f],p=c[1];if(u&&c[2]){if(void 0===l&&!(f in e))return!1}else{var d=new n;if(o)var m=o(l,p,f,e,r,d);if(!(void 0===m?i(p,l,3,o,d):m))return!1}}return!0}},1129:e=>{e.exports=function(e){return e!=e}},89278:(e,r,t)=>{var n=t(71410),i=t(57518),o=t(31137),a=t(19785),s=t(96001);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},67375:(e,r,t)=>{var n=t(52033),i=t(80068);e.exports=function(e,r){var t=-1,o=i(e)?Array(e.length):[];return n(e,(function(e,n,i){o[++t]=r(e,n,i)})),o}},71410:(e,r,t)=>{var n=t(19850),i=t(68125),o=t(65042);e.exports=function(e){var r=i(e);return 1==r.length&&r[0][2]?o(r[0][0],r[0][1]):function(t){return t===e||n(t,e,r)}}},57518:(e,r,t)=>{var n=t(32866),i=t(99729),o=t(79749),a=t(40318),s=t(68302),u=t(65042),c=t(37948);e.exports=function(e,r){return a(e)&&s(r)?u(c(e),r):function(t){var a=i(t,e);return void 0===a&&a===r?o(t,e):n(r,a,3)}}},40015:(e,r,t)=>{var n=t(23694),i=t(73140),o=t(49819),a=t(68867),s=t(11611),u=t(53893),c=t(97494);e.exports=function e(r,t,f,l,p){r!==t&&o(t,(function(o,u){if(p||(p=new n),s(o))a(r,t,u,f,e,l,p);else{var d=l?l(c(r,u),o,u+"",r,t,p):void 0;void 0===d&&(d=o),i(r,u,d)}}),u)}},68867:(e,r,t)=>{var n=t(73140),i=t(2734),o=t(63428),a=t(37561),s=t(9560),u=t(2900),c=t(19785),f=t(36468),l=t(43854),p=t(28338),d=t(11611),m=t(40861),h=t(48519),y=t(97494),v=t(89328);e.exports=function(e,r,t,g,b,A,x){var w=y(e,t),O=y(r,t),S=x.get(O);if(S)n(e,t,S);else{var E=A?A(w,O,t+"",e,r,x):void 0,_=void 0===E;if(_){var I=c(O),j=!I&&l(O),P=!I&&!j&&h(O);E=O,I||j||P?c(w)?E=w:f(w)?E=a(w):j?(_=!1,E=i(O,!0)):P?(_=!1,E=o(O,!0)):E=[]:m(O)||u(O)?(E=w,u(w)?E=v(w):d(w)&&!p(w)||(E=s(O))):_=!1}_&&(x.set(O,E),b(E,O,g,A,x),x.delete(O)),n(e,t,E)}}},98497:(e,r,t)=>{var n=t(66070),i=t(79867),o=t(89278),a=t(67375),s=t(73303),u=t(39334),c=t(96348),f=t(31137),l=t(19785);e.exports=function(e,r,t){r=r.length?n(r,(function(e){return l(e)?function(r){return i(r,1===e.length?e[0]:e)}:e})):[f];var p=-1;r=n(r,u(o));var d=a(e,(function(e,t,i){return{criteria:n(r,(function(r){return r(e)})),index:++p,value:e}}));return s(d,(function(e,r){return c(e,r,t)}))}},50517:e=>{e.exports=function(e){return function(r){return null==r?void 0:r[e]}}},10301:(e,r,t)=>{var n=t(79867);e.exports=function(e){return function(r){return n(r,e)}}},61933:(e,r,t)=>{var n=t(66070),i=t(8817),o=t(56006),a=t(39334),s=t(37561),u=Array.prototype.splice;e.exports=function(e,r,t,c){var f=c?o:i,l=-1,p=r.length,d=e;for(e===r&&(r=s(r)),t&&(d=n(e,a(t)));++l<p;)for(var m=0,h=r[l],y=t?t(h):h;(m=f(d,y,m,c))>-1;)d!==e&&u.call(d,m,1),u.call(e,m,1);return e}},19356:e=>{e.exports=function(e,r,t,n,i){return i(e,(function(e,i,o){t=n?(n=!1,e):r(t,e,i,o)})),t}},1197:(e,r,t)=>{var n=t(31137),i=t(11871),o=t(63132);e.exports=function(e,r){return o(i(e,r,n),e+"")}},73303:e=>{e.exports=function(e,r){var t=e.length;for(e.sort(r);t--;)e[t]=e[t].value;return e}},74833:(e,r,t)=>{var n=t(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},92198:(e,r,t)=>{var n=t(52485),i=t(58095),o=t(21796),a=t(65581),s=t(47111),u=t(43735);e.exports=function(e,r,t){var c=-1,f=i,l=e.length,p=!0,d=[],m=d;if(t)p=!1,f=o;else if(l>=200){var h=r?null:s(e);if(h)return u(h);p=!1,f=a,m=new n}else m=r?[]:d;e:for(;++c<l;){var y=e[c],v=r?r(y):y;if(y=t||0!==y?y:0,p&&v==v){for(var g=m.length;g--;)if(m[g]===v)continue e;r&&m.push(v),d.push(y)}else f(m,v,t)||(m!==d&&m.push(v),d.push(y))}return d}},65581:e=>{e.exports=function(e,r){return e.has(r)}},60923:(e,r,t)=>{var n=t(36468);e.exports=function(e){return n(e)?e:[]}},62079:(e,r,t)=>{var n=t(31137);e.exports=function(e){return"function"==typeof e?e:n}},17845:(e,r,t)=>{var n=t(55193);e.exports=function(e,r){if(e!==r){var t=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==r,u=null===r,c=r==r,f=n(r);if(!u&&!f&&!a&&e>r||a&&s&&c&&!u&&!f||i&&s&&c||!t&&c||!o)return 1;if(!i&&!a&&!f&&e<r||f&&t&&o&&!i&&!a||u&&t&&o||!s&&o||!c)return-1}return 0}},96348:(e,r,t)=>{var n=t(17845);e.exports=function(e,r,t){for(var i=-1,o=e.criteria,a=r.criteria,s=o.length,u=t.length;++i<s;){var c=n(o[i],a[i]);if(c)return i>=u?c:c*("desc"==t[i]?-1:1)}return e.index-r.index}},7270:(e,r,t)=>{var n=t(1197),i=t(57535);e.exports=function(e){return n((function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,s=o>2?t[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(t[0],t[1],s)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var u=t[n];u&&e(r,u,n,a)}return r}))}},26789:(e,r,t)=>{var n=t(80068);e.exports=function(e,r){return function(t,i){if(null==t)return t;if(!n(t))return e(t,i);for(var o=t.length,a=r?o:-1,s=Object(t);(r?a--:++a<o)&&!1!==i(s[a],a,s););return t}}},18911:e=>{e.exports=function(e){return function(r,t,n){for(var i=-1,o=Object(r),a=n(r),s=a.length;s--;){var u=a[e?s:++i];if(!1===t(o[u],u,o))break}return r}}},47111:(e,r,t)=>{var n=t(46151),i=t(50344),o=t(43735),a=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=a},19491:(e,r,t)=>{var n=t(40015),i=t(11611);e.exports=function e(r,t,o,a,s,u){return i(r)&&i(t)&&(u.set(t,r),n(r,t,void 0,e,u),u.delete(t)),r}},27042:(e,r,t)=>{var n=t(52485),i=t(90756),o=t(65581);e.exports=function(e,r,t,a,s,u){var c=1&t,f=e.length,l=r.length;if(f!=l&&!(c&&l>f))return!1;var p=u.get(e),d=u.get(r);if(p&&d)return p==r&&d==e;var m=-1,h=!0,y=2&t?new n:void 0;for(u.set(e,r),u.set(r,e);++m<f;){var v=e[m],g=r[m];if(a)var b=c?a(g,v,m,r,e,u):a(v,g,m,e,r,u);if(void 0!==b){if(b)continue;h=!1;break}if(y){if(!i(r,(function(e,r){if(!o(y,r)&&(v===e||s(v,e,t,a,u)))return y.push(r)}))){h=!1;break}}else if(v!==g&&!s(v,g,t,a,u)){h=!1;break}}return u.delete(e),u.delete(r),h}},370:(e,r,t)=>{var n=t(96539),i=t(59942),o=t(85638),a=t(27042),s=t(19383),u=t(43735),c=n?n.prototype:void 0,f=c?c.valueOf:void 0;e.exports=function(e,r,t,n,c,l,p){switch(t){case"[object DataView]":if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=r.byteLength||!l(new i(e),new i(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+r);case"[object Error]":return e.name==r.name&&e.message==r.message;case"[object RegExp]":case"[object String]":return e==r+"";case"[object Map]":var d=s;case"[object Set]":var m=1&n;if(d||(d=u),e.size!=r.size&&!m)return!1;var h=p.get(e);if(h)return h==r;n|=2,p.set(e,r);var y=a(d(e),d(r),n,c,l,p);return p.delete(e),y;case"[object Symbol]":if(f)return f.call(e)==f.call(r)}return!1}},39584:(e,r,t)=>{var n=t(51385),i=Object.prototype.hasOwnProperty;e.exports=function(e,r,t,o,a,s){var u=1&t,c=n(e),f=c.length;if(f!=n(r).length&&!u)return!1;for(var l=f;l--;){var p=c[l];if(!(u?p in r:i.call(r,p)))return!1}var d=s.get(e),m=s.get(r);if(d&&m)return d==r&&m==e;var h=!0;s.set(e,r),s.set(r,e);for(var y=u;++l<f;){var v=e[p=c[l]],g=r[p];if(o)var b=u?o(g,v,p,r,e,s):o(v,g,p,e,r,s);if(!(void 0===b?v===g||a(v,g,t,o,s):b)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){var A=e.constructor,x=r.constructor;A==x||!("constructor"in e)||!("constructor"in r)||"function"==typeof A&&A instanceof A&&"function"==typeof x&&x instanceof x||(h=!1)}return s.delete(e),s.delete(r),h}},68125:(e,r,t)=>{var n=t(68302),i=t(50098);e.exports=function(e){for(var r=i(e),t=r.length;t--;){var o=r[t],a=e[o];r[t]=[o,a,n(a)]}return r}},57535:(e,r,t)=>{var n=t(85638),i=t(80068),o=t(42383),a=t(11611);e.exports=function(e,r,t){if(!a(t))return!1;var s=typeof r;return!!("number"==s?i(t)&&o(r,t.length):"string"==s&&r in t)&&n(t[r],e)}},68302:(e,r,t)=>{var n=t(11611);e.exports=function(e){return e==e&&!n(e)}},19383:e=>{e.exports=function(e){var r=-1,t=Array(e.size);return e.forEach((function(e,n){t[++r]=[n,e]})),t}},65042:e=>{e.exports=function(e,r){return function(t){return null!=t&&t[e]===r&&(void 0!==r||e in Object(t))}}},97494:e=>{e.exports=function(e,r){if(("constructor"!==r||"function"!=typeof e[r])&&"__proto__"!=r)return e[r]}},38639:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},88379:e=>{e.exports=function(e){return this.__data__.has(e)}},43735:e=>{e.exports=function(e){var r=-1,t=Array(e.size);return e.forEach((function(e){t[++r]=e})),t}},58263:e=>{e.exports=function(e,r,t){for(var n=t-1,i=e.length;++n<i;)if(e[n]===r)return n;return-1}},56127:e=>{var r=/\s/;e.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},70236:(e,r,t)=>{var n=t(1197),i=t(85638),o=t(57535),a=t(53893),s=Object.prototype,u=s.hasOwnProperty,c=n((function(e,r){e=Object(e);var t=-1,n=r.length,c=n>2?r[2]:void 0;for(c&&o(r[0],r[1],c)&&(n=1);++t<n;)for(var f=r[t],l=a(f),p=-1,d=l.length;++p<d;){var m=l[p],h=e[m];(void 0===h||i(h,s[m])&&!u.call(e,m))&&(e[m]=f[m])}return e}));e.exports=c},53533:(e,r,t)=>{var n=t(79349),i=t(1197),o=t(19491),a=t(73952),s=i((function(e){return e.push(void 0,o),n(a,void 0,e)}));e.exports=s},84812:(e,r,t)=>{var n=t(23545);e.exports=function(e){return null!=e&&e.length?n(e,1/0):[]}},47003:(e,r,t)=>{var n=t(80594),i=t(52033),o=t(62079),a=t(19785);e.exports=function(e,r){return(a(e)?n:i)(e,o(r))}},27921:(e,r,t)=>{var n=t(66070),i=t(96638),o=t(1197),a=t(60923),s=o((function(e){var r=n(e,a);return r.length&&r[0]===e[0]?i(r):[]}));e.exports=s},28054:(e,r,t)=>{var n=t(66070),i=t(96638),o=t(1197),a=t(60923),s=t(31159),u=o((function(e){var r=s(e),t=n(e,a);return(r="function"==typeof r?r:void 0)&&t.pop(),t.length&&t[0]===e[0]?i(t,void 0,r):[]}));e.exports=u},36468:(e,r,t)=>{var n=t(80068),i=t(92360);e.exports=function(e){return i(e)&&n(e)}},3819:(e,r,t)=>{var n=t(99736),i=t(92360);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==n(e)}},56141:(e,r,t)=>{var n=t(32866);e.exports=function(e,r){return n(e,r)}},65191:(e,r,t)=>{var n=t(32866);e.exports=function(e,r,t){var i=(t="function"==typeof t?t:void 0)?t(e,r):void 0;return void 0===i?n(e,r,void 0,t):!!i}},30644:e=>{e.exports=function(e){return null==e}},78581:(e,r,t)=>{var n=t(99736),i=t(92360);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==n(e)}},47206:(e,r,t)=>{var n=t(99736),i=t(19785),o=t(92360);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==n(e)}},15409:(e,r,t)=>{var n=t(40015),i=t(7270)((function(e,r,t){n(e,r,t)}));e.exports=i},73952:(e,r,t)=>{var n=t(40015),i=t(7270)((function(e,r,t,i){n(e,r,t,i)}));e.exports=i},50344:e=>{e.exports=function(){}},96001:(e,r,t)=>{var n=t(50517),i=t(10301),o=t(40318),a=t(37948);e.exports=function(e){return o(e)?n(a(e)):i(e)}},90254:(e,r,t)=>{var n=t(61933);e.exports=function(e,r){return e&&e.length&&r&&r.length?n(e,r):e}},34172:(e,r,t)=>{var n=t(6446),i=t(52033),o=t(89278),a=t(19356),s=t(19785);e.exports=function(e,r,t){var u=s(e)?n:a,c=arguments.length<3;return u(e,o(r,4),t,c,i)}},95099:(e,r,t)=>{var n=t(23545),i=t(98497),o=t(1197),a=t(57535),s=o((function(e,r){if(null==e)return[];var t=r.length;return t>1&&a(e,r[0],r[1])?r=[]:t>2&&a(r[0],r[1],r[2])&&(r=[r[0]]),i(e,n(r,1),[])}));e.exports=s},41571:(e,r,t)=>{var n=t(24701),i=t(62079),o=t(47991),a=4294967295,s=Math.min;e.exports=function(e,r){if((e=o(e))<1||e>9007199254740991)return[];var t=a,u=s(e,a);r=i(r),e-=a;for(var c=n(u,r);++t<e;)r(t);return c}},94919:(e,r,t)=>{var n=t(91936);e.exports=function(e){return e?Infinity===(e=n(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},47991:(e,r,t)=>{var n=t(94919);e.exports=function(e){var r=n(e),t=r%1;return r==r?t?r-t:r:0}},91936:(e,r,t)=>{var n=t(74833),i=t(11611),o=t(55193),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=i(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var t=s.test(e);return t||u.test(e)?c(e.slice(2),t?2:8):a.test(e)?NaN:+e}},89328:(e,r,t)=>{var n=t(35159),i=t(53893);e.exports=function(e){return n(e,i(e))}},42673:(e,r,t)=>{var n=t(80594),i=t(80158),o=t(26194),a=t(89278),s=t(2173),u=t(19785),c=t(43854),f=t(28338),l=t(11611),p=t(48519);e.exports=function(e,r,t){var d=u(e),m=d||c(e)||p(e);if(r=a(r,4),null==t){var h=e&&e.constructor;t=m?d?new h:[]:l(e)&&f(h)?i(s(e)):{}}return(m?n:o)(e,(function(e,n,i){return r(t,e,n,i)})),t}},68946:(e,r,t)=>{var n=t(23545),i=t(1197),o=t(92198),a=t(36468),s=i((function(e){return o(n(e,1,a,!0))}));e.exports=s},83766:(e,r,t)=>{var n=t(92198);e.exports=function(e){return e&&e.length?n(e):[]}},52929:(e,r,t)=>{var n=t(92198);e.exports=function(e,r){return r="function"==typeof r?r:void 0,e&&e.length?n(e,void 0,r):[]}},81889:(e,r,t)=>{var n=t(11005),i=t(1197),o=t(36468),a=i((function(e,r){return o(e)?n(e,r):[]}));e.exports=a},58702:(e,r)=>{"use strict";var t,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case o:case s:case a:case p:case d:return e;default:switch(e=e&&e.$$typeof){case f:case c:case l:case h:case m:case u:return e;default:return r}}case i:return r}}}t=Symbol.for("react.module.reference"),r.ContextConsumer=c,r.ContextProvider=u,r.Element=n,r.ForwardRef=l,r.Fragment=o,r.Lazy=h,r.Memo=m,r.Portal=i,r.Profiler=s,r.StrictMode=a,r.Suspense=p,r.SuspenseList=d,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return v(e)===c},r.isContextProvider=function(e){return v(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return v(e)===l},r.isFragment=function(e){return v(e)===o},r.isLazy=function(e){return v(e)===h},r.isMemo=function(e){return v(e)===m},r.isPortal=function(e){return v(e)===i},r.isProfiler=function(e){return v(e)===s},r.isStrictMode=function(e){return v(e)===a},r.isSuspense=function(e){return v(e)===p},r.isSuspenseList=function(e){return v(e)===d},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===p||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},r.typeOf=v},19185:(e,r,t)=>{"use strict";e.exports=t(58702)},17604:e=>{"use strict";e.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},86401:e=>{"use strict";e.exports=function(e){return"function"==typeof e}},9333:(e,r,t)=>{"use strict";var n=t(17604),i=t(50459);e.exports=function(e){var r;if(!n(e))return!1;if(!(r=e.length))return!1;for(var t=0;t<r;t++)if(!i(e[t]))return!1;return!0}},50459:(e,r,t)=>{"use strict";var n=t(7365);e.exports=function(e){return n(e)&&e%1==0}},7365:e=>{"use strict";e.exports=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()}}}]);
|
notebook/static/7997.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7997],{97997:(e,t,r)=>{r.r(t),r.d(t,{DefaultBufferLength:()=>n,IterMode:()=>d,MountedTree:()=>h,NodeProp:()=>o,NodeSet:()=>u,NodeType:()=>f,NodeWeakMap:()=>P,Parser:()=>z,Tree:()=>c,TreeBuffer:()=>m,TreeCursor:()=>N,TreeFragment:()=>E,parseMixed:()=>F});const n=1024;let i=0;class s{constructor(e,t){this.from=e,this.to=t}}class o{constructor(e={}){this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=f.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}o.closedBy=new o({deserialize:e=>e.split(" ")}),o.openedBy=new o({deserialize:e=>e.split(" ")}),o.group=new o({deserialize:e=>e.split(" ")}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class h{constructor(e,t,r){this.tree=e,this.overlay=t,this.parser=r}static get(e){return e&&e.props&&e.props[o.mounted.id]}}const l=Object.create(null);class f{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):l,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new f(e.name||"",t,e.id,r);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(o.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(o.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}f.none=new f("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);e&&(n||(n=Object.assign({},r.props)),n[e[0].id]=e[1])}t.push(n?new f(r.name,n,r.id,r.flags):r)}return new u(t)}}const a=new WeakMap,p=new WeakMap;var d;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(d||(d={}));class c{constructor(e,t,r,n,i){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=h.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let r=e.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new N(this.topNode,e)}cursorAt(e,t=0,r=0){let n=a.get(this)||this.topNode,i=new N(n);return i.moveTo(e,t),a.set(this,i._tree),i}get topNode(){return new w(this,0,0,null)}resolve(e,t=0){let r=b(a.get(this)||this.topNode,e,t,!1);return a.set(this,r),r}resolveInner(e,t=0){let r=b(p.get(this)||this.topNode,e,t,!0);return p.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),i=null;for(let e=n instanceof w?n:n.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(i||(i=[n])).push(s.resolve(t,r)),e=s}else{let s=h.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new w(s.tree,s.overlay[0].from+e.from,0,null);(i||(i=[n])).push(b(o,t,r,!1))}}return i?C(i):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:i=this.length}=e,s=e.mode||0,o=(s&d.IncludeAnonymous)>0;for(let e=this.cursor(s|d.IncludeAnonymous);;){let s=!1;if(e.from<=i&&e.to>=n&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&r&&(o||!e.type.isAnonymous)&&r(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:M(f.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,r)=>new c(this.type,e,t,r,this.propValues)),e.makeTree||((e,t,r)=>new c(f.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:r,nodeSet:i,maxBufferLength:s=n,reused:h=[],minRepeatType:l=i.types.length}=e,f=Array.isArray(r)?new g(r,r.length):r,u=i.types,a=0,p=0;function d(e,t,r,n,g){let{id:w,start:v,end:_,size:A}=f,k=p;for(;A<0;){if(f.next(),-1==A){let t=h[w];return r.push(t),void n.push(v-e)}if(-3==A)return void(a=w);if(-4==A)return void(p=w);throw new RangeError(`Unrecognized record size: ${A}`)}let C,S,N=u[w],I=v-e;if(_-v<=s&&(S=function(e,t){let r=f.fork(),n=0,i=0,o=0,h=r.end-s,u={size:0,start:0,skip:0};e:for(let s=r.pos-e;r.pos>s;){let e=r.size;if(r.id==t&&e>=0){u.size=n,u.start=i,u.skip=o,o+=4,n+=4,r.next();continue}let f=r.pos-e;if(e<0||f<s||r.start<h)break;let a=r.id>=l?4:0,p=r.start;for(r.next();r.pos>f;){if(r.size<0){if(-3!=r.size)break e;a+=4}else r.id>=l&&(a+=4);r.next()}i=p,n+=e,o+=a}return(t<0||n==e)&&(u.size=n,u.start=i,u.skip=o),u.size>4?u:void 0}(f.pos-t,g))){let t=new Uint16Array(S.size-S.skip),r=f.pos-S.size,n=t.length;for(;f.pos>r;)n=y(S.start,t,n);C=new m(t,_-S.start,i),I=S.start-e}else{let e=f.pos-A;f.next();let t=[],r=[],n=w>=l?w:-1,i=0,h=_;for(;f.pos>e;)n>=0&&f.id==n&&f.size>=0?(f.end<=h-s&&(x(t,r,v,i,f.end,h,n,k),i=t.length,h=f.end),f.next()):d(v,e,t,r,n);if(n>=0&&i>0&&i<t.length&&x(t,r,v,i,v,h,n,k),t.reverse(),r.reverse(),n>-1&&i>0){let e=function(e){return(t,r,n)=>{let i,s,h=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof c){if(!l&&i.type==e&&i.length==n)return i;(s=i.prop(o.lookAhead))&&(h=r[l]+i.length+s)}return b(e,t,r,n,h)}}(N);C=M(N,t,r,0,t.length,0,_-v,e,e)}else C=b(N,t,r,_-v,k-_)}r.push(C),n.push(I)}function x(e,t,r,n,s,o,h,l){let f=[],u=[];for(;e.length>n;)f.push(e.pop()),u.push(t.pop()+r-s);e.push(b(i.types[h],f,u,o-s,l-o)),t.push(s-r)}function b(e,t,r,n,i=0,s){if(a){let e=[o.contextHash,a];s=s?[e].concat(s):[e]}if(i>25){let e=[o.lookAhead,i];s=s?[e].concat(s):[e]}return new c(e,t,r,n,s)}function y(e,t,r){let{id:n,start:i,end:s,size:o}=f;if(f.next(),o>=0&&n<l){let h=r;if(o>4){let n=f.pos-(o-4);for(;f.pos>n;)r=y(e,t,r)}t[--r]=h,t[--r]=s-e,t[--r]=i-e,t[--r]=n}else-3==o?a=n:-4==o&&(p=n);return r}let w=[],v=[];for(;f.pos>0;)d(e.start||0,e.bufferStart||0,w,v,-1);let _=null!==(t=e.length)&&void 0!==t?t:w.length?v[0]+w[0].length:0;return new c(u[e.topID],w.reverse(),v.reverse(),_)}(e)}}c.empty=new c(f.none,[],[],0);class g{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class m{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return f.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],i=n.name;if(/\W/.test(i)&&!n.isError&&(i=JSON.stringify(i)),r==(e+=4))return i;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,r,n,i){let{buffer:s}=this,o=-1;for(let h=e;h!=t&&!(x(i,n,s[h+1],s[h+2])&&(o=h,r>0));h=s[h+3]);return o}slice(e,t,r){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let o=e,h=0;o<t;){i[h++]=n[o++],i[h++]=n[o++]-r;let t=i[h++]=n[o++]-r;i[h++]=n[o++]-e,s=Math.max(s,t)}return new m(i,s,this.set)}}function x(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function b(e,t,r,n){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof w&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:d.IgnoreOverlays;if(n)for(let n=e,o=n.parent;o;n=o,o=n.parent)n instanceof w&&n.index<0&&(null===(i=o.enter(t,r,s))||void 0===i?void 0:i.from)!=n.from&&(e=o);for(;;){let n=e.enter(t,r,s);if(!n)return e;e=n}}class y{cursor(e=0){return new N(this,e)}getChild(e,t=null,r=null){let n=v(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return v(this,e,t,r)}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}matchContext(e){return _(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class w extends y{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,n,i=0){for(let s=this;;){for(let{children:o,positions:l}=s._tree,f=t>0?o.length:-1;e!=f;e+=t){let f=o[e],u=l[e]+s.from;if(x(n,r,u,u+f.length))if(f instanceof m){if(i&d.ExcludeBuffers)continue;let o=f.findChild(0,f.buffer.length,t,r-u,n);if(o>-1)return new k(new A(s,f,e,u),null,o)}else if(i&d.IncludeAnonymous||!f.type.isAnonymous||I(f)){let o;if(!(i&d.IgnoreMounts)&&(o=h.get(f))&&!o.overlay)return new w(o.tree,u,e,s);let l=new w(f,u,e,s);return i&d.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?f.children.length-1:0,t,r,n)}}if(i&d.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,r=0){let n;if(!(r&d.IgnoreOverlays)&&(n=h.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:e,to:i}of n.overlay)if((t>0?e<=r:e<r)&&(t<0?i>=r:i>r))return new w(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function v(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=r)for(;!i.type.is(r);)if(!i.nextSibling())return s;for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function _(e,t,r=t.length-1){for(let n=e.parent;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class A{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class k extends y{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new k(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,r=0){if(r&d.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new k(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new k(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new k(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s)),t.push(0)}return new c(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function C(e){if(!e.length)return null;if(1==e.length)return e[0];let t=0,r=e[0];for(let n=1;n<e.length;n++){let i=e[n];(i.from>r.from||i.to<r.to)&&(r=i,t=n)}let n=r instanceof w&&r.index<0?null:r.parent,i=e.slice();return n?i[t]=n:i.splice(t,1),new S(i,r)}class S{constructor(e,t){this.heads=e,this.node=t}get next(){return C(this.heads)}}class N{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof w)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof w?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){return this.buffer?!(r&d.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&d.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&d.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:r}=n)}else({index:t,_parent:r}=this._tree);for(;r;({index:t,_parent:r}=r))if(t>-1)for(let n=t+e,i=e<0?-1:r._tree.children.length;n!=i;n+=e){let e=r._tree.children[n];if(this.mode&d.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||I(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)e:for(let n=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,r=i+1;break e}n=this.stack[--i]}for(let e=r;e<this.stack.length;e++)t=new k(this.buffer,t,this.stack[e]);return this.bufferNode=new k(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;n&&t&&t(this),n=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return _(this.node,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return _(this.node,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function I(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||I(e)))}const T=new WeakMap;function B(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let r=T.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof c)){r=1;break}r+=B(e,n)}T.set(t,r)}return r}function M(e,t,r,n,i,s,o,h,l){let f=0;for(let r=n;r<i;r++)f+=B(e,t[r]);let u=Math.ceil(1.5*f/8),a=[],p=[];return function t(r,n,i,o,h){for(let f=i;f<o;){let i=f,d=n[f],c=B(e,r[f]);for(f++;f<o;f++){let t=B(e,r[f]);if(c+t>=u)break;c+=t}if(f==i+1){if(c>u){let e=r[i];t(e.children,e.positions,0,e.children.length,n[i]+h);continue}a.push(r[i])}else{let t=n[f-1]+r[f-1].length-d;a.push(M(e,r,n,i,f,d,t,null,l))}p.push(d+h-s)}}(t,r,n,i,0),(h||l)(a,p,o)}class P{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof k?this.setBuffer(e.context.buffer,e.index,t):e instanceof w&&this.map.set(e.tree,t)}get(e){return e instanceof k?this.getBuffer(e.context.buffer,e.index):e instanceof w?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class E{constructor(e,t,r,n,i=!1,s=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new E(0,e.length,e,0,!1,r)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],i=1,s=e.length?e[0]:null;for(let o=0,h=0,l=0;;o++){let f=o<t.length?t[o]:null,u=f?f.fromA:1e9;if(u-h>=r)for(;s&&s.from<u;){let t=s;if(h>=t.from||u<=t.to||l){let e=Math.max(t.from,h)-l,r=Math.min(t.to,u)-l;t=e>=r?null:new E(e,r,t.tree,t.offset+l,o>0,!!f)}if(t&&n.push(t),s.to>u)break;s=i<e.length?e[i++]:null}if(!f)break;h=f.toA,l=f.toA-f.toB}return n}}class z{startParse(e,t,r){return"string"==typeof e&&(e=new O(e)),r=r?r.length?r.map((e=>new s(e.from,e.to))):[new s(0,0)]:[new s(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class O{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function F(e){return(t,r,n,i)=>new D(t,e,r,n,i)}class j{constructor(e,t,r,n,i){if(this.parser=e,this.parse=t,this.overlay=r,this.target=n,this.ranges=i,!i.length||i.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(i))}}class R{constructor(e,t,r,n,i,s,o){this.parser=e,this.predicate=t,this.mounts=r,this.index=n,this.start=i,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const U=new o({perNode:!0});class D{constructor(e,t,r,n,i){this.nest=t,this.input=r,this.fragments=n,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new c(e.type,e.children,e.positions,e.length,e.propValues.concat([[U,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[o.mounted.id]=new h(t,e.overlay,e.parser),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].ranges[0].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new H(this.fragments),t=null,r=null,n=new N(new w(this.baseTree,this.ranges[0].from,0,null),d.IncludeAnonymous|d.IgnoreMounts);e:for(let i,o;null==this.stoppedAt||n.from<this.stoppedAt;){let h,l=!0;if(e.hasNode(n)){if(t){let e=t.mounts.find((e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay));if(e)for(let r of e.mount.overlay){let i=r.from+e.pos,s=r.to+e.pos;i>=n.from&&s<=n.to&&!t.ranges.some((e=>e.from<s&&e.to>i))&&t.ranges.push({from:i,to:s})}}l=!1}else if(r&&(o=W(r.ranges,n.from,n.to)))l=2!=o;else if(!n.type.isAnonymous&&n.from<n.to&&(i=this.nest(n,this.input))){n.tree||J(n);let o=e.findMounts(n.from,i.parser);if("function"==typeof i.overlay)t=new R(i.parser,i.overlay,o,this.inner.length,n.from,n.tree,t);else{let e=Y(this.ranges,i.overlay||[new s(n.from,n.to)]);e.length&&this.inner.push(new j(i.parser,i.parser.startParse(this.input,$(o,e),e),i.overlay?i.overlay.map((e=>new s(e.from-n.from,e.to-n.from))):null,n.tree,e)),i.overlay?e.length&&(r={ranges:e,depth:0,prev:r}):l=!1}}else t&&(h=t.predicate(n))&&(!0===h&&(h=new s(n.from,n.to)),h.from<h.to&&t.ranges.push(h));if(l&&n.firstChild())t&&t.depth++,r&&r.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(t&&! --t.depth){let e=Y(this.ranges,t.ranges);e.length&&this.inner.splice(t.index,0,new j(t.parser,t.parser.startParse(this.input,$(t.mounts,e),e),t.ranges.map((e=>new s(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}r&&! --r.depth&&(r=r.prev)}}}}function W(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function L(e,t,r,n,i,s){if(t<r){let o=e.buffer[t+1];n.push(e.slice(t,r,o)),i.push(o-s)}}function J(e){let{node:t}=e,r=0;do{e.parent(),r++}while(!e.tree);let n=0,i=e.tree,s=0;for(;s=i.positions[n]+e.from,!(s<=t.from&&s+i.children[n].length>=t.to);n++);let o=i.children[n],h=o.buffer;i.children[n]=function e(r,n,i,l,f){let u=r;for(;h[u+2]+s<=t.from;)u=h[u+3];let a=[],p=[];L(o,r,u,a,p,l);let d=h[u+1],g=h[u+2],m=d+s==t.from&&g+s==t.to&&h[u]==t.type.id;return a.push(m?t.toTree():e(u+4,h[u+3],o.set.types[h[u]],d,g-d)),p.push(d-l),L(o,h[u+3],n,a,p,l),new c(i,a,p,f)}(0,h.length,f.none,0,o.length);for(let n=0;n<=r;n++)e.childAfter(t.from)}class V{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(d.IncludeAnonymous|d.IgnoreMounts)}moveTo(e){let{cursor:t}=this,r=e-this.offset;for(;!this.done&&t.from<r;)t.to>=e&&t.enter(r,1,d.IgnoreOverlays|d.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof c))break;t=t.children[0]}return!1}}class H{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=null!==(t=r.tree.prop(U))&&void 0!==t?t:r.to,this.inner=new V(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(U))&&void 0!==e?e:t.to,this.inner=new V(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(r=e.tree)||void 0===r?void 0:r.prop(o.mounted);if(i&&i.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let r=this.fragments[t];if(r.from>=e.to)break;r.tree==this.curFrag.tree&&n.push({frag:r,pos:e.from-r.offset,mount:i})}}}return n}}function Y(e,t){let r=null,n=t;for(let i=1,o=0;i<e.length;i++){let h=e[i-1].to,l=e[i].from;for(;o<n.length;o++){let e=n[o];if(e.from>=l)break;e.to<=h||(r||(n=r=t.slice()),e.from<h?(r[o]=new s(e.from,h),e.to>l&&r.splice(o+1,0,new s(l,e.to))):e.to>l?r[o--]=new s(l,e.to):r.splice(o--,1))}}return n}function G(e,t,r,n){let i=0,o=0,h=!1,l=!1,f=-1e9,u=[];for(;;){let a=i==e.length?1e9:h?e[i].to:e[i].from,p=o==t.length?1e9:l?t[o].to:t[o].from;if(h!=l){let e=Math.max(f,r),t=Math.min(a,p,n);e<t&&u.push(new s(e,t))}if(f=Math.min(a,p),1e9==f)break;a==f&&(h?(h=!1,i++):h=!0),p==f&&(l?(l=!1,o++):l=!0)}return u}function $(e,t){let r=[];for(let{pos:n,mount:i,frag:o}of e){let e=n+(i.overlay?i.overlay[0].from:0),h=e+i.tree.length,l=Math.max(o.from,e),f=Math.min(o.to,h);if(i.overlay){let h=G(t,i.overlay.map((e=>new s(e.from+n,e.to+n))),l,f);for(let t=0,n=l;;t++){let s=t==h.length,l=s?f:h[t].from;if(l>n&&r.push(new E(n,l,i.tree,-e,o.from>=n||o.openStart,o.to<=l||o.openEnd)),s)break;n=h[t].to}}else r.push(new E(l,f,i.tree,-e,o.from>=e||o.openStart,o.to<=h||o.openEnd))}return r}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7997],{97997:(e,t,r)=>{r.r(t),r.d(t,{DefaultBufferLength:()=>n,IterMode:()=>d,MountedTree:()=>h,NodeProp:()=>o,NodeSet:()=>u,NodeType:()=>f,NodeWeakMap:()=>P,Parser:()=>z,Tree:()=>c,TreeBuffer:()=>m,TreeCursor:()=>N,TreeFragment:()=>E,parseMixed:()=>F});const n=1024;let i=0;class s{constructor(e,t){this.from=e,this.to=t}}class o{constructor(e={}){this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=f.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}o.closedBy=new o({deserialize:e=>e.split(" ")}),o.openedBy=new o({deserialize:e=>e.split(" ")}),o.group=new o({deserialize:e=>e.split(" ")}),o.isolate=new o({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class h{constructor(e,t,r){this.tree=e,this.overlay=t,this.parser=r}static get(e){return e&&e.props&&e.props[o.mounted.id]}}const l=Object.create(null);class f{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):l,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new f(e.name||"",t,e.id,r);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(o.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(o.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}f.none=new f("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);e&&(n||(n=Object.assign({},r.props)),n[e[0].id]=e[1])}t.push(n?new f(r.name,n,r.id,r.flags):r)}return new u(t)}}const a=new WeakMap,p=new WeakMap;var d;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(d||(d={}));class c{constructor(e,t,r,n,i){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=h.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let r=e.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new N(this.topNode,e)}cursorAt(e,t=0,r=0){let n=a.get(this)||this.topNode,i=new N(n);return i.moveTo(e,t),a.set(this,i._tree),i}get topNode(){return new w(this,0,0,null)}resolve(e,t=0){let r=b(a.get(this)||this.topNode,e,t,!1);return a.set(this,r),r}resolveInner(e,t=0){let r=b(p.get(this)||this.topNode,e,t,!0);return p.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),i=null;for(let e=n instanceof w?n:n.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(i||(i=[n])).push(s.resolve(t,r)),e=s}else{let s=h.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new w(s.tree,s.overlay[0].from+e.from,-1,e);(i||(i=[n])).push(b(o,t,r,!1))}}return i?C(i):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:i=this.length}=e,s=e.mode||0,o=(s&d.IncludeAnonymous)>0;for(let e=this.cursor(s|d.IncludeAnonymous);;){let s=!1;if(e.from<=i&&e.to>=n&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&r&&(o||!e.type.isAnonymous)&&r(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:M(f.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,r)=>new c(this.type,e,t,r,this.propValues)),e.makeTree||((e,t,r)=>new c(f.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:r,nodeSet:i,maxBufferLength:s=n,reused:h=[],minRepeatType:l=i.types.length}=e,f=Array.isArray(r)?new g(r,r.length):r,u=i.types,a=0,p=0;function d(e,t,r,n,g,v){let{id:_,start:A,end:k,size:C}=f,S=p;for(;C<0;){if(f.next(),-1==C){let t=h[_];return r.push(t),void n.push(A-e)}if(-3==C)return void(a=_);if(-4==C)return void(p=_);throw new RangeError(`Unrecognized record size: ${C}`)}let N,I,T=u[_],B=A-e;if(k-A<=s&&(I=function(e,t){let r=f.fork(),n=0,i=0,o=0,h=r.end-s,u={size:0,start:0,skip:0};e:for(let s=r.pos-e;r.pos>s;){let e=r.size;if(r.id==t&&e>=0){u.size=n,u.start=i,u.skip=o,o+=4,n+=4,r.next();continue}let f=r.pos-e;if(e<0||f<s||r.start<h)break;let a=r.id>=l?4:0,p=r.start;for(r.next();r.pos>f;){if(r.size<0){if(-3!=r.size)break e;a+=4}else r.id>=l&&(a+=4);r.next()}i=p,n+=e,o+=a}return(t<0||n==e)&&(u.size=n,u.start=i,u.skip=o),u.size>4?u:void 0}(f.pos-t,g))){let t=new Uint16Array(I.size-I.skip),r=f.pos-I.size,n=t.length;for(;f.pos>r;)n=w(I.start,t,n);N=new m(t,k-I.start,i),B=I.start-e}else{let e=f.pos-C;f.next();let t=[],r=[],n=_>=l?_:-1,i=0,h=k;for(;f.pos>e;)n>=0&&f.id==n&&f.size>=0?(f.end<=h-s&&(b(t,r,A,i,f.end,h,n,S),i=t.length,h=f.end),f.next()):v>2500?x(A,e,t,r):d(A,e,t,r,n,v+1);if(n>=0&&i>0&&i<t.length&&b(t,r,A,i,A,h,n,S),t.reverse(),r.reverse(),n>-1&&i>0){let e=function(e){return(t,r,n)=>{let i,s,h=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof c){if(!l&&i.type==e&&i.length==n)return i;(s=i.prop(o.lookAhead))&&(h=r[l]+i.length+s)}return y(e,t,r,n,h)}}(T);N=M(T,t,r,0,t.length,0,k-A,e,e)}else N=y(T,t,r,k-A,S-k)}r.push(N),n.push(B)}function x(e,t,r,n){let o=[],h=0,l=-1;for(;f.pos>t;){let{id:e,start:t,end:r,size:n}=f;if(n>4)f.next();else{if(l>-1&&t<l)break;l<0&&(l=r-s),o.push(e,t,r),h++,f.next()}}if(h){let t=new Uint16Array(4*h),s=o[o.length-2];for(let e=o.length-3,r=0;e>=0;e-=3)t[r++]=o[e],t[r++]=o[e+1]-s,t[r++]=o[e+2]-s,t[r++]=r;r.push(new m(t,o[2]-s,i)),n.push(s-e)}}function b(e,t,r,n,s,o,h,l){let f=[],u=[];for(;e.length>n;)f.push(e.pop()),u.push(t.pop()+r-s);e.push(y(i.types[h],f,u,o-s,l-o)),t.push(s-r)}function y(e,t,r,n,i=0,s){if(a){let e=[o.contextHash,a];s=s?[e].concat(s):[e]}if(i>25){let e=[o.lookAhead,i];s=s?[e].concat(s):[e]}return new c(e,t,r,n,s)}function w(e,t,r){let{id:n,start:i,end:s,size:o}=f;if(f.next(),o>=0&&n<l){let h=r;if(o>4){let n=f.pos-(o-4);for(;f.pos>n;)r=w(e,t,r)}t[--r]=h,t[--r]=s-e,t[--r]=i-e,t[--r]=n}else-3==o?a=n:-4==o&&(p=n);return r}let v=[],_=[];for(;f.pos>0;)d(e.start||0,e.bufferStart||0,v,_,-1,0);let A=null!==(t=e.length)&&void 0!==t?t:v.length?_[0]+v[0].length:0;return new c(u[e.topID],v.reverse(),_.reverse(),A)}(e)}}c.empty=new c(f.none,[],[],0);class g{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class m{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return f.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],i=n.name;if(/\W/.test(i)&&!n.isError&&(i=JSON.stringify(i)),r==(e+=4))return i;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,r,n,i){let{buffer:s}=this,o=-1;for(let h=e;h!=t&&!(x(i,n,s[h+1],s[h+2])&&(o=h,r>0));h=s[h+3]);return o}slice(e,t,r){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let o=e,h=0;o<t;){i[h++]=n[o++],i[h++]=n[o++]-r;let t=i[h++]=n[o++]-r;i[h++]=n[o++]-e,s=Math.max(s,t)}return new m(i,s,this.set)}}function x(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function b(e,t,r,n){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof w&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:d.IgnoreOverlays;if(n)for(let n=e,o=n.parent;o;n=o,o=n.parent)n instanceof w&&n.index<0&&(null===(i=o.enter(t,r,s))||void 0===i?void 0:i.from)!=n.from&&(e=o);for(;;){let n=e.enter(t,r,s);if(!n)return e;e=n}}class y{cursor(e=0){return new N(this,e)}getChild(e,t=null,r=null){let n=v(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return v(this,e,t,r)}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}matchContext(e){return _(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class w extends y{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,n,i=0){for(let s=this;;){for(let{children:o,positions:l}=s._tree,f=t>0?o.length:-1;e!=f;e+=t){let f=o[e],u=l[e]+s.from;if(x(n,r,u,u+f.length))if(f instanceof m){if(i&d.ExcludeBuffers)continue;let o=f.findChild(0,f.buffer.length,t,r-u,n);if(o>-1)return new k(new A(s,f,e,u),null,o)}else if(i&d.IncludeAnonymous||!f.type.isAnonymous||I(f)){let o;if(!(i&d.IgnoreMounts)&&(o=h.get(f))&&!o.overlay)return new w(o.tree,u,e,s);let l=new w(f,u,e,s);return i&d.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?f.children.length-1:0,t,r,n)}}if(i&d.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,r=0){let n;if(!(r&d.IgnoreOverlays)&&(n=h.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:e,to:i}of n.overlay)if((t>0?e<=r:e<r)&&(t<0?i>=r:i>r))return new w(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function v(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=r)for(let e=!1;!e;)if(e=i.type.is(r),!i.nextSibling())return s;for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function _(e,t,r=t.length-1){for(let n=e.parent;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class A{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class k extends y{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new k(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,r=0){if(r&d.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new k(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new k(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new k(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s)),t.push(0)}return new c(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function C(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;n<e.length;n++){let i=e[n];(i.from>r.from||i.to<r.to)&&(r=i,t=n)}let n=r instanceof w&&r.index<0?null:r.parent,i=e.slice();return n?i[t]=n:i.splice(t,1),new S(i,r)}class S{constructor(e,t){this.heads=e,this.node=t}get next(){return C(this.heads)}}class N{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof w)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof w?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){return this.buffer?!(r&d.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&d.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&d.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:r}=n)}else({index:t,_parent:r}=this._tree);for(;r;({index:t,_parent:r}=r))if(t>-1)for(let n=t+e,i=e<0?-1:r._tree.children.length;n!=i;n+=e){let e=r._tree.children[n];if(this.mode&d.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||I(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)e:for(let n=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,r=i+1;break e}n=this.stack[--i]}for(let e=r;e<this.stack.length;e++)t=new k(this.buffer,t,this.stack[e]);return this.bufferNode=new k(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;n&&t&&t(this),n=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return _(this.node,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return _(this.node,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function I(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||I(e)))}const T=new WeakMap;function B(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let r=T.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof c)){r=1;break}r+=B(e,n)}T.set(t,r)}return r}function M(e,t,r,n,i,s,o,h,l){let f=0;for(let r=n;r<i;r++)f+=B(e,t[r]);let u=Math.ceil(1.5*f/8),a=[],p=[];return function t(r,n,i,o,h){for(let f=i;f<o;){let i=f,d=n[f],c=B(e,r[f]);for(f++;f<o;f++){let t=B(e,r[f]);if(c+t>=u)break;c+=t}if(f==i+1){if(c>u){let e=r[i];t(e.children,e.positions,0,e.children.length,n[i]+h);continue}a.push(r[i])}else{let t=n[f-1]+r[f-1].length-d;a.push(M(e,r,n,i,f,d,t,null,l))}p.push(d+h-s)}}(t,r,n,i,0),(h||l)(a,p,o)}class P{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof k?this.setBuffer(e.context.buffer,e.index,t):e instanceof w&&this.map.set(e.tree,t)}get(e){return e instanceof k?this.getBuffer(e.context.buffer,e.index):e instanceof w?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class E{constructor(e,t,r,n,i=!1,s=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new E(0,e.length,e,0,!1,r)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],i=1,s=e.length?e[0]:null;for(let o=0,h=0,l=0;;o++){let f=o<t.length?t[o]:null,u=f?f.fromA:1e9;if(u-h>=r)for(;s&&s.from<u;){let t=s;if(h>=t.from||u<=t.to||l){let e=Math.max(t.from,h)-l,r=Math.min(t.to,u)-l;t=e>=r?null:new E(e,r,t.tree,t.offset+l,o>0,!!f)}if(t&&n.push(t),s.to>u)break;s=i<e.length?e[i++]:null}if(!f)break;h=f.toA,l=f.toA-f.toB}return n}}class z{startParse(e,t,r){return"string"==typeof e&&(e=new O(e)),r=r?r.length?r.map((e=>new s(e.from,e.to))):[new s(0,0)]:[new s(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class O{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function F(e){return(t,r,n,i)=>new W(t,e,r,n,i)}class R{constructor(e,t,r,n,i){this.parser=e,this.parse=t,this.overlay=r,this.target=n,this.from=i}}function U(e){if(!e.length||e.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class j{constructor(e,t,r,n,i,s,o){this.parser=e,this.predicate=t,this.mounts=r,this.index=n,this.start=i,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const D=new o({perNode:!0});class W{constructor(e,t,r,n,i){this.nest=t,this.input=r,this.fragments=n,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new c(e.type,e.children,e.positions,e.length,e.propValues.concat([[D,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[o.mounted.id]=new h(t,e.overlay,e.parser),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new Y(this.fragments),t=null,r=null,n=new N(new w(this.baseTree,this.ranges[0].from,0,null),d.IncludeAnonymous|d.IgnoreMounts);e:for(let i,o;;){let h,l=!0;if(null!=this.stoppedAt&&n.from>=this.stoppedAt)l=!1;else if(e.hasNode(n)){if(t){let e=t.mounts.find((e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay));if(e)for(let r of e.mount.overlay){let i=r.from+e.pos,s=r.to+e.pos;i>=n.from&&s<=n.to&&!t.ranges.some((e=>e.from<s&&e.to>i))&&t.ranges.push({from:i,to:s})}}l=!1}else if(r&&(o=L(r.ranges,n.from,n.to)))l=2!=o;else if(!n.type.isAnonymous&&(i=this.nest(n,this.input))&&(n.from<n.to||!i.overlay)){n.tree||V(n);let o=e.findMounts(n.from,i.parser);if("function"==typeof i.overlay)t=new j(i.parser,i.overlay,o,this.inner.length,n.from,n.tree,t);else{let e=G(this.ranges,i.overlay||(n.from<n.to?[new s(n.from,n.to)]:[]));e.length&&U(e),!e.length&&i.overlay||this.inner.push(new R(i.parser,e.length?i.parser.startParse(this.input,q(o,e),e):i.parser.startParse(""),i.overlay?i.overlay.map((e=>new s(e.from-n.from,e.to-n.from))):null,n.tree,e.length?e[0].from:n.from)),i.overlay?e.length&&(r={ranges:e,depth:0,prev:r}):l=!1}}else t&&(h=t.predicate(n))&&(!0===h&&(h=new s(n.from,n.to)),h.from<h.to&&t.ranges.push(h));if(l&&n.firstChild())t&&t.depth++,r&&r.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(t&&! --t.depth){let e=G(this.ranges,t.ranges);e.length&&(U(e),this.inner.splice(t.index,0,new R(t.parser,t.parser.startParse(this.input,q(t.mounts,e),e),t.ranges.map((e=>new s(e.from-t.start,e.to-t.start))),t.target,e[0].from))),t=t.prev}r&&! --r.depth&&(r=r.prev)}}}}function L(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function J(e,t,r,n,i,s){if(t<r){let o=e.buffer[t+1];n.push(e.slice(t,r,o)),i.push(o-s)}}function V(e){let{node:t}=e,r=[],n=t.context.buffer;do{r.push(e.index),e.parent()}while(!e.tree);let i=e.tree,s=i.children.indexOf(n),o=i.children[s],h=o.buffer,l=[s];i.children[s]=function e(n,i,s,f,u,a){let p=r[a],d=[],g=[];J(o,n,p,d,g,f);let m=h[p+1],x=h[p+2];l.push(d.length);let b=a?e(p+4,h[p+3],o.set.types[h[p]],m,x-m,a-1):t.toTree();return d.push(b),g.push(m-f),J(o,h[p+3],i,d,g,f),new c(s,d,g,u)}(0,h.length,f.none,0,o.length,r.length-1);for(let t of l){let r=e.tree.children[t],n=e.tree.positions[t];e.yield(new w(r,n+e.from,t,e._tree))}}class H{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(d.IncludeAnonymous|d.IgnoreMounts)}moveTo(e){let{cursor:t}=this,r=e-this.offset;for(;!this.done&&t.from<r;)t.to>=e&&t.enter(r,1,d.IgnoreOverlays|d.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof c))break;t=t.children[0]}return!1}}class Y{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=null!==(t=r.tree.prop(D))&&void 0!==t?t:r.to,this.inner=new H(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(D))&&void 0!==e?e:t.to,this.inner=new H(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(r=e.tree)||void 0===r?void 0:r.prop(o.mounted);if(i&&i.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let r=this.fragments[t];if(r.from>=e.to)break;r.tree==this.curFrag.tree&&n.push({frag:r,pos:e.from-r.offset,mount:i})}}}return n}}function G(e,t){let r=null,n=t;for(let i=1,o=0;i<e.length;i++){let h=e[i-1].to,l=e[i].from;for(;o<n.length;o++){let e=n[o];if(e.from>=l)break;e.to<=h||(r||(n=r=t.slice()),e.from<h?(r[o]=new s(e.from,h),e.to>l&&r.splice(o+1,0,new s(l,e.to))):e.to>l?r[o--]=new s(l,e.to):r.splice(o--,1))}}return n}function $(e,t,r,n){let i=0,o=0,h=!1,l=!1,f=-1e9,u=[];for(;;){let a=i==e.length?1e9:h?e[i].to:e[i].from,p=o==t.length?1e9:l?t[o].to:t[o].from;if(h!=l){let e=Math.max(f,r),t=Math.min(a,p,n);e<t&&u.push(new s(e,t))}if(f=Math.min(a,p),1e9==f)break;a==f&&(h?(h=!1,i++):h=!0),p==f&&(l?(l=!1,o++):l=!0)}return u}function q(e,t){let r=[];for(let{pos:n,mount:i,frag:o}of e){let e=n+(i.overlay?i.overlay[0].from:0),h=e+i.tree.length,l=Math.max(o.from,e),f=Math.min(o.to,h);if(i.overlay){let h=$(t,i.overlay.map((e=>new s(e.from+n,e.to+n))),l,f);for(let t=0,n=l;;t++){let s=t==h.length,l=s?f:h[t].from;if(l>n&&r.push(new E(n,l,i.tree,-e,o.from>=n||o.openStart,o.to<=l||o.openEnd)),s)break;n=h[t].to}}else r.push(new E(l,f,i.tree,-e,o.from>=e||o.openStart,o.to<=h||o.openEnd))}return r}}}]);
|