mirror of
https://github.com/maputnik/editor.git
synced 2026-11-28 04:44:20 +00:00
deploy: f175749fb7
This commit is contained in:
1 parent
4b705df0f0
commit
087d35d0e0
3 files changed
+33
-33
No files matched your search
@@ -5,10 +5,10 @@ function qle(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"
|
||||
`);for(q=D=0;D<gt.length&&!gt[D].includes("DetermineComponentFrameRoot");)D++;for(;q<Gt.length&&!Gt[q].includes("DetermineComponentFrameRoot");)q++;if(D===gt.length||q===Gt.length)for(D=gt.length-1,q=Gt.length-1;1<=D&&0<=q&>[D]!==Gt[q];)q--;for(;1<=D&&0<=q;D--,q--)if(gt[D]!==Gt[q]){if(D!==1||q!==1)do if(D--,q--,0>q||gt[D]!==Gt[q]){var sn=`
|
||||
`+gt[D].replace(" at new "," at ");return f.displayName&&sn.includes("<anonymous>")&&(sn=sn.replace("<anonymous>",f.displayName)),sn}while(1<=D&&0<=q);break}}}finally{Bt=!1,Error.prepareStackTrace=x}return(x=f?f.displayName||f.name:"")?St(x):""}function Jt(f,y){switch(f.tag){case 26:case 27:case 5:return St(f.type);case 16:return St("Lazy");case 13:return f.child!==y&&y!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return _t(f.type,!1);case 11:return _t(f.type.render,!1);case 1:return _t(f.type,!0);case 31:return St("Activity");default:return""}}function un(f){try{var y="",x=null;do y+=Jt(f,x),x=f,f=f.return;while(f);return y}catch(D){return`
|
||||
Error generating stack: `+D.message+`
|
||||
`+D.stack}}var Pn=Object.prototype.hasOwnProperty,Jn=n.unstable_scheduleCallback,Un=n.unstable_cancelCallback,Sn=n.unstable_shouldYield,Qn=n.unstable_requestPaint,On=n.unstable_now,vn=n.unstable_getCurrentPriorityLevel,vt=n.unstable_ImmediatePriority,Se=n.unstable_UserBlockingPriority,Ae=n.unstable_NormalPriority,fe=n.unstable_LowPriority,ze=n.unstable_IdlePriority,At=n.log,Ot=n.unstable_setDisableYieldValue,Dt=null,Tn=null;function Gn(f){if(typeof At=="function"&&Ot(f),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(Dt,f)}catch{}}var yt=Math.clz32?Math.clz32:bn,Ft=Math.log,C=Math.LN2;function bn(f){return f>>>=0,f===0?32:31-(Ft(f)/C|0)|0}var pi=256,Yn=262144,Vn=4194304;function wi(f){var y=f&42;if(y!==0)return y;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function or(f,y,x){var D=f.pendingLanes;if(D===0)return 0;var q=0,ne=f.suspendedLanes,we=f.pingedLanes;f=f.warmLanes;var We=D&134217727;return We!==0?(D=We&~ne,D!==0?q=wi(D):(we&=We,we!==0?q=wi(we):x||(x=We&~f,x!==0&&(q=wi(x))))):(We=D&~ne,We!==0?q=wi(We):we!==0?q=wi(we):x||(x=D&~f,x!==0&&(q=wi(x)))),q===0?0:y!==0&&y!==q&&(y&ne)===0&&(ne=q&-q,x=y&-y,ne>=x||ne===32&&(x&4194048)!==0)?y:q}function Ut(f,y){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&y)===0}function fo(f,y){switch(f){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var f=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),f}function Ei(f){for(var y=[],x=0;31>x;x++)y.push(f);return y}function Qr(f,y){f.pendingLanes|=y,y!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Fi(f,y,x,D,q,ne){var we=f.pendingLanes;f.pendingLanes=x,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=x,f.entangledLanes&=x,f.errorRecoveryDisabledLanes&=x,f.shellSuspendCounter=0;var We=f.entanglements,gt=f.expirationTimes,Gt=f.hiddenUpdates;for(x=we&~x;0<x;){var sn=31-yt(x),hn=1<<sn;We[sn]=0,gt[sn]=-1;var qt=Gt[sn];if(qt!==null)for(Gt[sn]=null,sn=0;sn<qt.length;sn++){var nn=qt[sn];nn!==null&&(nn.lane&=-536870913)}x&=~hn}D!==0&&ls(f,D,0),ne!==0&&q===0&&f.tag!==0&&(f.suspendedLanes|=ne&~(we&~y))}function ls(f,y,x){f.pendingLanes|=y,f.suspendedLanes&=~y;var D=31-yt(y);f.entangledLanes|=y,f.entanglements[D]=f.entanglements[D]|1073741824|x&261930}function so(f,y){var x=f.entangledLanes|=y;for(f=f.entanglements;x;){var D=31-yt(x),q=1<<D;q&y|f[D]&y&&(f[D]|=y),x&=~q}}function zo(f,y){var x=y&-y;return x=(x&42)!==0?1:ao(x),(x&(f.suspendedLanes|y))!==0?0:x}function ao(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function xo(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function sr(){var f=Qe.p;return f!==0?f:(f=window.event,f===void 0?32:Wd(f.type))}function ln(f,y){var x=Qe.p;try{return Qe.p=f,y()}finally{Qe.p=x}}var Ur=Math.random().toString(36).slice(2),nr="__reactFiber$"+Ur,hs="__reactProps$"+Ur,Pa="__reactContainer$"+Ur,mn="__reactEvents$"+Ur,$i="__reactListeners$"+Ur,ar="__reactHandles$"+Ur,wa="__reactResources$"+Ur,Su="__reactMarker$"+Ur;function dl(f){delete f[nr],delete f[hs],delete f[mn],delete f[$i],delete f[ar]}function li(f){var y=f[nr];if(y)return y;for(var x=f.parentNode;x;){if(y=x[Pa]||x[nr]){if(x=y.alternate,y.child!==null||x!==null&&x.child!==null)for(f=P_(f);f!==null;){if(x=f[nr])return x;f=P_(f)}return y}f=x,x=f.parentNode}return null}function Il(f){if(f=f[nr]||f[Pa]){var y=f.tag;if(y===5||y===6||y===13||y===31||y===26||y===27||y===3)return f}return null}function $a(f){var y=f.tag;if(y===5||y===26||y===27||y===6)return f.stateNode;throw Error(i(33))}function Zl(f){var y=f[wa];return y||(y=f[wa]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function yo(f){f[Su]=!0}var Dc=new Set,La={};function Ha(f,y){vo(f,y),vo(f+"Capture",y)}function vo(f,y){for(La[f]=y,f=0;f<y.length;f++)Dc.add(y[f])}var Zi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u
Line truncated
|
||||
`).replace(ma,"")}function Lb(f,y){return y=Pb(y),Pb(f)===y}function ns(f,y,x,D,q,ne){switch(x){case"children":typeof D=="string"?y==="body"||y==="textarea"&&D===""||ds(f,D):(typeof D=="number"||typeof D=="bigint")&&y!=="body"&&ds(f,""+D);break;case"className":Ma(f,"class",D);break;case"tabIndex":Ma(f,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Ma(f,x,D);break;case"style":Is(f,D,ne);break;case"data":if(y!=="object"){Ma(f,"data",D);break}case"src":case"href":if(D===""&&(y!=="a"||x!=="href")){f.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Za(""+D),f.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){f.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof ne=="function"&&(x==="formAction"?(y!=="input"&&ns(f,y,"name",q.name,q,null),ns(f,y,"formEncType",q.formEncType,q,null),ns(f,y,"formMethod",q.formMethod,q,null),ns(f,y,"formTarget",q.formTarget,q,null)):(ns(f,y,"encType",q.encType,q,null),ns(f,y,"method",q.method,q,null),ns(f,y,"target",q.target,q,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Za(""+D),f.setAttribute(x,D);break;case"onClick":D!=null&&(f.onclick=Zs);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(q.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"multiple":f.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":f.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){f.removeAttribute("xlink:href");break}x=Za(""+D),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""+D):f.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""):f.removeAttribute(x);break;case"capture":case"download":D===!0?f.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,D):f.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?f.setAttribute(x,D):f.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?f.removeAttribute(x):f.setAttribute(x,D);break;case"popover":uo("beforetoggle",f),uo("toggle",f),Tl(f,"popover",D);break;case"xlinkActuate":fl(f,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":fl(f,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":fl(f,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":fl(f,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":fl(f,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":fl(f,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":fl(f,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":fl(f,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":fl(f,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Tl(f,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=jA.get(x)||x,Tl(f,x,D))}}function Mp(f,y,x,D,q,ne){switch(x){case"style":Is(f,D,ne);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(q.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"children":typeof D=="string"?ds(f,D):(typeof D=="number"||typeof D=="bigint")&&ds(f,""+D);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"onClick":D!=null&&(f.onclick=Zs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case
Line truncated
|
||||
`+D.stack}}var Pn=Object.prototype.hasOwnProperty,Jn=n.unstable_scheduleCallback,Un=n.unstable_cancelCallback,Sn=n.unstable_shouldYield,Qn=n.unstable_requestPaint,On=n.unstable_now,vn=n.unstable_getCurrentPriorityLevel,vt=n.unstable_ImmediatePriority,Se=n.unstable_UserBlockingPriority,Ae=n.unstable_NormalPriority,fe=n.unstable_LowPriority,ze=n.unstable_IdlePriority,At=n.log,Ot=n.unstable_setDisableYieldValue,Dt=null,Tn=null;function Gn(f){if(typeof At=="function"&&Ot(f),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(Dt,f)}catch{}}var yt=Math.clz32?Math.clz32:bn,Ft=Math.log,C=Math.LN2;function bn(f){return f>>>=0,f===0?32:31-(Ft(f)/C|0)|0}var pi=256,Yn=262144,Vn=4194304;function Mi(f){var y=f&42;if(y!==0)return y;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function or(f,y,x){var D=f.pendingLanes;if(D===0)return 0;var q=0,ne=f.suspendedLanes,we=f.pingedLanes;f=f.warmLanes;var We=D&134217727;return We!==0?(D=We&~ne,D!==0?q=Mi(D):(we&=We,we!==0?q=Mi(we):x||(x=We&~f,x!==0&&(q=Mi(x))))):(We=D&~ne,We!==0?q=Mi(We):we!==0?q=Mi(we):x||(x=D&~f,x!==0&&(q=Mi(x)))),q===0?0:y!==0&&y!==q&&(y&ne)===0&&(ne=q&-q,x=y&-y,ne>=x||ne===32&&(x&4194048)!==0)?y:q}function Ut(f,y){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&y)===0}function fo(f,y){switch(f){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var f=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),f}function Bi(f){for(var y=[],x=0;31>x;x++)y.push(f);return y}function Qr(f,y){f.pendingLanes|=y,y!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Fi(f,y,x,D,q,ne){var we=f.pendingLanes;f.pendingLanes=x,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=x,f.entangledLanes&=x,f.errorRecoveryDisabledLanes&=x,f.shellSuspendCounter=0;var We=f.entanglements,gt=f.expirationTimes,Gt=f.hiddenUpdates;for(x=we&~x;0<x;){var sn=31-yt(x),hn=1<<sn;We[sn]=0,gt[sn]=-1;var qt=Gt[sn];if(qt!==null)for(Gt[sn]=null,sn=0;sn<qt.length;sn++){var nn=qt[sn];nn!==null&&(nn.lane&=-536870913)}x&=~hn}D!==0&&ls(f,D,0),ne!==0&&q===0&&f.tag!==0&&(f.suspendedLanes|=ne&~(we&~y))}function ls(f,y,x){f.pendingLanes|=y,f.suspendedLanes&=~y;var D=31-yt(y);f.entangledLanes|=y,f.entanglements[D]=f.entanglements[D]|1073741824|x&261930}function so(f,y){var x=f.entangledLanes|=y;for(f=f.entanglements;x;){var D=31-yt(x),q=1<<D;q&y|f[D]&y&&(f[D]|=y),x&=~q}}function zo(f,y){var x=y&-y;return x=(x&42)!==0?1:ao(x),(x&(f.suspendedLanes|y))!==0?0:x}function ao(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function xo(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function sr(){var f=Qe.p;return f!==0?f:(f=window.event,f===void 0?32:Qd(f.type))}function ln(f,y){var x=Qe.p;try{return Qe.p=f,y()}finally{Qe.p=x}}var Ur=Math.random().toString(36).slice(2),nr="__reactFiber$"+Ur,hs="__reactProps$"+Ur,Pa="__reactContainer$"+Ur,mn="__reactEvents$"+Ur,$i="__reactListeners$"+Ur,ar="__reactHandles$"+Ur,wa="__reactResources$"+Ur,Su="__reactMarker$"+Ur;function dl(f){delete f[nr],delete f[hs],delete f[mn],delete f[$i],delete f[ar]}function li(f){var y=f[nr];if(y)return y;for(var x=f.parentNode;x;){if(y=x[Pa]||x[nr]){if(x=y.alternate,y.child!==null||x!==null&&x.child!==null)for(f=P_(f);f!==null;){if(x=f[nr])return x;f=P_(f)}return y}f=x,x=f.parentNode}return null}function Il(f){if(f=f[nr]||f[Pa]){var y=f.tag;if(y===5||y===6||y===13||y===31||y===26||y===27||y===3)return f}return null}function $a(f){var y=f.tag;if(y===5||y===26||y===27||y===6)return f.stateNode;throw Error(i(33))}function Zl(f){var y=f[wa];return y||(y=f[wa]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function yo(f){f[Su]=!0}var Dc=new Set,La={};function Ha(f,y){vo(f,y),vo(f+"Capture",y)}function vo(f,y){for(La[f]=y,f=0;f<y.length;f++)Dc.add(y[f])}var Zi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u
Line truncated
|
||||
`).replace(ma,"")}function Lb(f,y){return y=Pb(y),Pb(f)===y}function ns(f,y,x,D,q,ne){switch(x){case"children":typeof D=="string"?y==="body"||y==="textarea"&&D===""||ds(f,D):(typeof D=="number"||typeof D=="bigint")&&y!=="body"&&ds(f,""+D);break;case"className":Ma(f,"class",D);break;case"tabIndex":Ma(f,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Ma(f,x,D);break;case"style":Is(f,D,ne);break;case"data":if(y!=="object"){Ma(f,"data",D);break}case"src":case"href":if(D===""&&(y!=="a"||x!=="href")){f.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Za(""+D),f.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){f.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof ne=="function"&&(x==="formAction"?(y!=="input"&&ns(f,y,"name",q.name,q,null),ns(f,y,"formEncType",q.formEncType,q,null),ns(f,y,"formMethod",q.formMethod,q,null),ns(f,y,"formTarget",q.formTarget,q,null)):(ns(f,y,"encType",q.encType,q,null),ns(f,y,"method",q.method,q,null),ns(f,y,"target",q.target,q,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Za(""+D),f.setAttribute(x,D);break;case"onClick":D!=null&&(f.onclick=Zs);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(q.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"multiple":f.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":f.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){f.removeAttribute("xlink:href");break}x=Za(""+D),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""+D):f.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""):f.removeAttribute(x);break;case"capture":case"download":D===!0?f.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,D):f.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?f.setAttribute(x,D):f.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?f.removeAttribute(x):f.setAttribute(x,D);break;case"popover":uo("beforetoggle",f),uo("toggle",f),Tl(f,"popover",D);break;case"xlinkActuate":fl(f,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":fl(f,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":fl(f,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":fl(f,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":fl(f,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":fl(f,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":fl(f,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":fl(f,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":fl(f,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Tl(f,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=jA.get(x)||x,Tl(f,x,D))}}function Mp(f,y,x,D,q,ne){switch(x){case"style":Is(f,D,ne);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(q.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"children":typeof D=="string"?ds(f,D):(typeof D=="number"||typeof D=="bigint")&&ds(f,""+D);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"onClick":D!=null&&(f.onclick=Zs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case
Line truncated
|
||||
/* [wrapped with `+R+`] */
|
||||
`)}function hb(S){return Cr(S)||Nd(S)||!!(Qi&&S&&S[Qi])}function Pd(S,R){var Z=typeof S;return R=R??je,!!R&&(Z=="number"||Z!="symbol"&&li.test(S))&&S>-1&&S%1==0&&S<R}function zl(S,R,Z){if(!ra(Z))return!1;var ge=typeof R;return(ge=="number"?pu(Z)&&Pd(R,Z.length):ge=="string"&&R in Z)?IA(Z[R],S):!1}function gp(S,R){if(Cr(S))return!1;var Z=typeof S;return Z=="number"||Z=="symbol"||Z=="boolean"||S==null||_c(S)?!0:Fi.test(S)||!Qr.test(S)||R!=null&&S in No(R)}function Ty(S){var R=typeof S;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?S!=="__proto__":S===null}function e1(S){var R=Qs(S),Z=qe[R];if(typeof Z!="function"||!(R in er.prototype))return!1;if(S===Z)return!0;var ge=Cs(Z);return!!ge&&S===ge[0]}function db(S){return!!uc&&uc in S}var c_=GA?Nu:nn;function Yc(S){var R=S&&S.constructor,Z=typeof R=="function"&&R.prototype||_d;return S===Z}function t1(S){return S===S&&!ra(S)}function A_(S,R){return function(Z){return Z==null?!1:Z[S]===R&&(R!==t||S in No(Z))}}function ky(S){var R=F0(S,function(ge){return Z.size===g&&Z.clear(),ge}),Z=R.cache;return R}function Ld(S,R){var Z=S[1],ge=R[1],De=Z|ge,He=De<(V|Y|ce),mt=ge==ce&&Z==oe||ge==ce&&Z==$&&S[7].length<=R[8]||ge==(ce|$)&&R[7].length<=R[8]&&Z==oe;if(!(He||mt))return S;ge&V&&(S[2]=R[2],De|=Z&V?0:ee);var Mt=R[3];if(Mt){var Pt=S[3];S[3]=Pt?qn(Pt,Mt,R[4]):Mt,S[4]=Pt?pA(S[3],v):R[4]}return Mt=R[5],Mt&&(Pt=S[5],S[5]=Pt?Mi(Pt,Mt,R[6]):Mt,S[6]=Pt?pA(S[5],v):R[6]),Mt=R[7],Mt&&(S[7]=Mt),ge&ce&&(S[8]=S[8]==null?R[8]:Ro(S[8],R[8])),S[9]==null&&(S[9]=R[9]),S[0]=R[0],S[1]=De,S}function n1(S){var R=[];if(S!=null)for(var Z in No(S))R.push(Z);return R}function I0(S){return xd.call(S)}function Cl(S,R,Z){return R=Ts(R===t?S.length-1:R,0),function(){for(var ge=arguments,De=-1,He=Ts(ge.length-R,0),mt=Xt(He);++De<He;)mt[De]=ge[R+De];De=-1;for(var Mt=Xt(R+1);++De<R;)Mt[De]=ge[De];return Mt[R]=Z(mt),Dl(S,this,Mt)}}function vm(S,R){return R.length<2?S:sh(S,M(R,0,-1))}function Ds(S,R){for(var Z=S.length,ge=Ro(R.length,Z),De=fr(S);ge--;){var He=R[ge];S[ge]=Pd(He,Z)?De[He]:t}return S}function i1(S,R){if(!(R==="constructor"&&typeof S[R]=="function")&&R!="__proto__")return S[R]}var h_=Dy(u),bm=Yg||function(S,R){return ei.setTimeout(S,R)},Cm=Dy(p);function Tf(S,R,Z){var ge=R+"";return Cm(S,Ab(ge,Ry(mp(ge),Z)))}function Dy(S){var R=0,Z=0;return function(){var ge=tl(),De=xe-(ge-Z);if(Z=ge,De>0){if(++R>=me)return arguments[0]}else R=0;return S.apply(t,arguments)}}function r1(S,R){var Z=-1,ge=S.length,De=ge-1;for(R=R===t?ge:R;++Z<R;){var He=Gh(Z,De),mt=S[He];S[He]=S[Z],S[Z]=mt}return S.length=R,S}var _m=ky(function(S){var R=[];return S.charCodeAt(0)===46&&R.push(""),S.replace(ls,function(Z,ge,De,He){R.push(De?He.replace(Pa,"$1"):ge||Z)}),R});function Ba(S){if(typeof S=="string"||_c(S))return S;var R=S+"";return R=="0"&&1/S==-nt?"-0":R}function kf(S){if(S!=null){try{return Dh.call(S)}catch{}try{return S+""}catch{}}return""}function Ry(S,R){return Du(st,function(Z){var ge="_."+Z[0];R&Z[1]&&!Ja(S,ge)&&S.push(ge)}),S.sort()}function fb(S){if(S instanceof er)return S.clone();var R=new Js(S.__wrapped__,S.__chain__);return R.__actions__=fr(S.__actions__),R.__index__=S.__index__,R.__values__=S.__values__,R}function pb(S,R,Z){(Z?zl(S,R,Z):R===t)?R=1:R=Ts(Or(R),0);var ge=S==null?0:S.length;if(!ge||R<1)return[];for(var De=0,He=0,mt=Xt(sp(ge/R));De<ge;)mt[He++]=M(S,De,De+=R);return mt}function mb(S){for(var R=-1,Z=S==null?0:S.length,ge=0,De=[];++R<Z;){var He=S[R];He&&(De[ge++]=He)}return De}function xm(){var S=arguments.length;if(!S)return[];for(var R=Xt(S-1),Z=arguments[0],ge=S;ge--;)R[ge-1]=arguments[ge];return us(Cr(Z)?fr(Z):[Z],ur(R,1))}var Py=br(function(S,R){return Ys(S)?nh(S,ur(R,1,Ys,!0)):[]}),Ud=br(function(S,R){var Z=hu(R);return Ys(Z)&&(Z=t),Ys(S)?nh(S,ur(R,1,Ys,!0),Ji(Z,2)):[]}),Rs=br(function(S,R){var Z=hu(R);return Ys(Z)&&(Z=t),Ys(S)?nh(S,ur(R,1,Ys,!0),t,Z):[]});function wm(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),M(S,R<0?0:R,ge)):[]}function d_(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),R=ge-R,M(S,0,R<0?0:R)):[]}function jl(S,R){return S&&S.length?Ge(S,Ji(R,3),!0,!0):[]}function p3(S,R){return S&&S.length?Ge(S,Ji(R,3),!0):[]}function f_(S,R,Z,ge){var De=S==null?0:S.length;return De?(Z&&typeof Z!="number"&&zl(S,R,Z)&&(Z=0,ge=De),cm(S,R,Z,ge)):[]}function gb(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);return De<0&&(De=Ts(ge+De,0)),df(S,Ji(R,3),De)}function qs(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=ge-1;return Z!==t&&(De=Or(Z),De=Z<0?Ts(ge+De,0):Ro(De,ge-1)),df(S,Ji(R,3),De,!0)}function bc(S){var R=S==null?0:S.length;return R?ur(S,1):[]}function Yh(S){var R=S==null?0:S.length;return R?ur(S,nt):[]}function p_(S,R){var Z=S==null?0:S.length;return Z?(R=R===t?1:Or(R),ur(S,R)):[]}function yb(S){for(var R=-1,Z=S==null?0:S.length,ge={};++R<Z;){var De=S[R];pc(ge,De[0],De[1])}return ge}function Mm(S){return S&&S.length?S[0]:t}function m3(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);retu
Line truncated
|
||||
`)}function hb(S){return Cr(S)||Gd(S)||!!(Qi&&S&&S[Qi])}function Ld(S,R){var Z=typeof S;return R=R??je,!!R&&(Z=="number"||Z!="symbol"&&li.test(S))&&S>-1&&S%1==0&&S<R}function zl(S,R,Z){if(!ra(Z))return!1;var ge=typeof R;return(ge=="number"?pu(Z)&&Ld(R,Z.length):ge=="string"&&R in Z)?IA(Z[R],S):!1}function gp(S,R){if(Cr(S))return!1;var Z=typeof S;return Z=="number"||Z=="symbol"||Z=="boolean"||S==null||_c(S)?!0:Fi.test(S)||!Qr.test(S)||R!=null&&S in No(R)}function Ty(S){var R=typeof S;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?S!=="__proto__":S===null}function e1(S){var R=Qs(S),Z=qe[R];if(typeof Z!="function"||!(R in er.prototype))return!1;if(S===Z)return!0;var ge=Cs(Z);return!!ge&&S===ge[0]}function db(S){return!!uc&&uc in S}var c_=GA?Nu:nn;function Yc(S){var R=S&&S.constructor,Z=typeof R=="function"&&R.prototype||xd;return S===Z}function t1(S){return S===S&&!ra(S)}function A_(S,R){return function(Z){return Z==null?!1:Z[S]===R&&(R!==t||S in No(Z))}}function ky(S){var R=F0(S,function(ge){return Z.size===g&&Z.clear(),ge}),Z=R.cache;return R}function Ud(S,R){var Z=S[1],ge=R[1],De=Z|ge,He=De<(V|Y|ce),mt=ge==ce&&Z==oe||ge==ce&&Z==$&&S[7].length<=R[8]||ge==(ce|$)&&R[7].length<=R[8]&&Z==oe;if(!(He||mt))return S;ge&V&&(S[2]=R[2],De|=Z&V?0:ee);var Mt=R[3];if(Mt){var Pt=S[3];S[3]=Pt?qn(Pt,Mt,R[4]):Mt,S[4]=Pt?pA(S[3],v):R[4]}return Mt=R[5],Mt&&(Pt=S[5],S[5]=Pt?Si(Pt,Mt,R[6]):Mt,S[6]=Pt?pA(S[5],v):R[6]),Mt=R[7],Mt&&(S[7]=Mt),ge&ce&&(S[8]=S[8]==null?R[8]:Ro(S[8],R[8])),S[9]==null&&(S[9]=R[9]),S[0]=R[0],S[1]=De,S}function n1(S){var R=[];if(S!=null)for(var Z in No(S))R.push(Z);return R}function I0(S){return wd.call(S)}function Cl(S,R,Z){return R=Ts(R===t?S.length-1:R,0),function(){for(var ge=arguments,De=-1,He=Ts(ge.length-R,0),mt=Xt(He);++De<He;)mt[De]=ge[R+De];De=-1;for(var Mt=Xt(R+1);++De<R;)Mt[De]=ge[De];return Mt[R]=Z(mt),Dl(S,this,Mt)}}function vm(S,R){return R.length<2?S:sh(S,M(R,0,-1))}function Ds(S,R){for(var Z=S.length,ge=Ro(R.length,Z),De=fr(S);ge--;){var He=R[ge];S[ge]=Ld(He,Z)?De[He]:t}return S}function i1(S,R){if(!(R==="constructor"&&typeof S[R]=="function")&&R!="__proto__")return S[R]}var h_=Dy(u),bm=Yg||function(S,R){return ei.setTimeout(S,R)},Cm=Dy(p);function Tf(S,R,Z){var ge=R+"";return Cm(S,Ab(ge,Ry(mp(ge),Z)))}function Dy(S){var R=0,Z=0;return function(){var ge=tl(),De=xe-(ge-Z);if(Z=ge,De>0){if(++R>=me)return arguments[0]}else R=0;return S.apply(t,arguments)}}function r1(S,R){var Z=-1,ge=S.length,De=ge-1;for(R=R===t?ge:R;++Z<R;){var He=Gh(Z,De),mt=S[He];S[He]=S[Z],S[Z]=mt}return S.length=R,S}var _m=ky(function(S){var R=[];return S.charCodeAt(0)===46&&R.push(""),S.replace(ls,function(Z,ge,De,He){R.push(De?He.replace(Pa,"$1"):ge||Z)}),R});function Ba(S){if(typeof S=="string"||_c(S))return S;var R=S+"";return R=="0"&&1/S==-nt?"-0":R}function kf(S){if(S!=null){try{return Dh.call(S)}catch{}try{return S+""}catch{}}return""}function Ry(S,R){return Du(st,function(Z){var ge="_."+Z[0];R&Z[1]&&!Ja(S,ge)&&S.push(ge)}),S.sort()}function fb(S){if(S instanceof er)return S.clone();var R=new Js(S.__wrapped__,S.__chain__);return R.__actions__=fr(S.__actions__),R.__index__=S.__index__,R.__values__=S.__values__,R}function pb(S,R,Z){(Z?zl(S,R,Z):R===t)?R=1:R=Ts(Or(R),0);var ge=S==null?0:S.length;if(!ge||R<1)return[];for(var De=0,He=0,mt=Xt(sp(ge/R));De<ge;)mt[He++]=M(S,De,De+=R);return mt}function mb(S){for(var R=-1,Z=S==null?0:S.length,ge=0,De=[];++R<Z;){var He=S[R];He&&(De[ge++]=He)}return De}function xm(){var S=arguments.length;if(!S)return[];for(var R=Xt(S-1),Z=arguments[0],ge=S;ge--;)R[ge-1]=arguments[ge];return us(Cr(Z)?fr(Z):[Z],ur(R,1))}var Py=br(function(S,R){return Ys(S)?nh(S,ur(R,1,Ys,!0)):[]}),Kd=br(function(S,R){var Z=hu(R);return Ys(Z)&&(Z=t),Ys(S)?nh(S,ur(R,1,Ys,!0),Ji(Z,2)):[]}),Rs=br(function(S,R){var Z=hu(R);return Ys(Z)&&(Z=t),Ys(S)?nh(S,ur(R,1,Ys,!0),t,Z):[]});function wm(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),M(S,R<0?0:R,ge)):[]}function d_(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),R=ge-R,M(S,0,R<0?0:R)):[]}function jl(S,R){return S&&S.length?Ge(S,Ji(R,3),!0,!0):[]}function p3(S,R){return S&&S.length?Ge(S,Ji(R,3),!0):[]}function f_(S,R,Z,ge){var De=S==null?0:S.length;return De?(Z&&typeof Z!="number"&&zl(S,R,Z)&&(Z=0,ge=De),cm(S,R,Z,ge)):[]}function gb(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);return De<0&&(De=Ts(ge+De,0)),df(S,Ji(R,3),De)}function qs(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=ge-1;return Z!==t&&(De=Or(Z),De=Z<0?Ts(ge+De,0):Ro(De,ge-1)),df(S,Ji(R,3),De,!0)}function bc(S){var R=S==null?0:S.length;return R?ur(S,1):[]}function Yh(S){var R=S==null?0:S.length;return R?ur(S,nt):[]}function p_(S,R){var Z=S==null?0:S.length;return Z?(R=R===t?1:Or(R),ur(S,R)):[]}function yb(S){for(var R=-1,Z=S==null?0:S.length,ge={};++R<Z;){var De=S[R];pc(ge,De[0],De[1])}return ge}function Mm(S){return S&&S.length?S[0]:t}function m3(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);retu
Line truncated
|
||||
`;S.replace(si,function(cr,mo,Io,TA,Jc,nd){return Io||(Io=TA),Rn+=S.slice(gn,nd).replace(Zl,Gg),mo&&(Mt=!0,Rn+=`' +
|
||||
__e(`+mo+`) +
|
||||
'`),Jc&&(Pt=!0,Rn+=`';
|
||||
@@ -25,7 +25,7 @@ __p += '`),Io&&(Rn+=`' +
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+Rn+`return __p
|
||||
}`;var qr=U1(function(){return Xr(He,ji+"return "+Rn).apply(t,mt)});if(qr.source=Rn,g1(qr))throw qr;return qr}function Qd(S){return Eo(S).toLowerCase()}function Op(S){return Eo(S).toUpperCase()}function Z0(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return _y(S);if(!S||!(R=ae(R)))return S;var ge=gl(S),De=gl(R),He=y0(ge,De),mt=mf(ge,De)+1;return dt(ge,He,mt).join("")}function P1(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.slice(0,C0(S)+1);if(!S||!(R=ae(R)))return S;var ge=gl(S),De=mf(ge,gl(R))+1;return dt(ge,0,De).join("")}function Ip(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.replace(ao,"");if(!S||!(R=ae(R)))return S;var ge=gl(S),De=y0(ge,gl(R));return dt(ge,De).join("")}function T3(S,R){var Z=de,ge=be;if(ra(R)){var De="separator"in R?R.separator:De;Z="length"in R?Or(R.length):Z,ge="omission"in R?ae(R.omission):ge}S=Eo(S);var He=S.length;if(Ru(S)){var mt=gl(S);He=mt.length}if(Z>=He)return S;var Mt=Z-Ka(ge);if(Mt<1)return ge;var Pt=mt?dt(mt,0,Mt).join(""):S.slice(0,Mt);if(De===t)return Pt+ge;if(mt&&(Mt+=Pt.length-Mt),N0(De)){if(S.slice(Mt).search(De)){var gn,Mn=Pt;for(De.global||(De=Kr(De.source,Eo($i.exec(De))+"g")),De.lastIndex=0;gn=De.exec(Mn);)var Rn=gn.index;Pt=Pt.slice(0,Rn===t?Mt:Rn)}}else if(S.indexOf(ae(De),Mt)!=Mt){var si=Pt.lastIndexOf(De);si>-1&&(Pt=Pt.slice(0,si))}return Pt+ge}function N_(S){return S=Eo(S),S&&or.test(S)?S.replace(Vn,gf):S}var L1=fa(function(S,R,Z){return S+(Z?" ":"")+R.toUpperCase()}),wl=Ea("toUpperCase");function Tp(S,R,Z){return S=Eo(S),R=Z?t:R,R===t?om(S)?am(S):p0(S):S.match(R)||[]}var U1=br(function(S,R){try{return Dl(S,t,R)}catch(Z){return g1(Z)?Z:new Xi(Z)}}),G_=bl(function(S,R){return Du(R,function(Z){Z=Ba(Z),pc(S,Z,Gy(S[Z],S))}),S});function Yo(S){var R=S==null?0:S.length,Z=Ji();return S=R?Zo(S,function(ge){if(typeof ge[1]!="function")throw new Rl(s);return[Z(ge[0]),ge[1]]}):[],br(function(ge){for(var De=-1;++De<R;){var He=S[De];if(Dl(He[0],this,ge))return Dl(He[1],this,ge)}})}function Ml(S){return th(su(S,E))}function td(S){return function(){return S}}function nv(S,R){return S==null||S!==S?R:S}var kp=ja(),Vb=ja(!0);function gu(S){return S}function Rm(S){return Od(typeof S=="function"?S:su(S,E))}function iv(S){return dm(su(S,E))}function Gl(S,R){return Ef(S,su(R,E))}var Xc=br(function(S,R){return function(Z){return ea(Z,S,R)}}),f=br(function(S,R){return function(Z){return ea(S,Z,R)}});function y(S,R,Z){var ge=sl(R),De=zh(R,ge);Z==null&&!(ra(R)&&(De.length||!ge.length))&&(Z=R,R=S,S=this,De=zh(R,sl(R)));var He=!(ra(Z)&&"chain"in Z)||!!Z.chain,mt=Nu(S);return Du(De,function(Mt){var Pt=R[Mt];S[Mt]=Pt,mt&&(S.prototype[Mt]=function(){var gn=this.__chain__;if(He||gn){var Mn=S(this.__wrapped__),Rn=Mn.__actions__=fr(this.__actions__);return Rn.push({func:Pt,args:arguments,thisArg:S}),Mn.__chain__=gn,Mn}return Pt.apply(S,us([this.value()],arguments))})}),S}function x(){return ei._===this&&(ei._=Kc),this}function D(){}function q(S){return S=Or(S),br(function(R){return Td(R,S)})}var ne=Fl(Zo),we=Fl(Xs),We=Fl(f0);function gt(S){return gp(S)?ac(Ba(S)):Nh(S)}function Gt(S){return function(R){return S==null?t:sh(S,R)}}var sn=zu(),hn=zu(!0);function qt(){return[]}function nn(){return!1}function ki(){return{}}function tr(){return""}function is(){return!0}function Rt(S,R){if(S=Or(S),S<1||S>je)return[];var Z=lt,ge=Ro(S,lt);R=Ji(R),S-=lt;for(var De=g0(ge,R);++Z<S;)R(Z);return De}function Et(S){return Cr(S)?Zo(S,Ba):_c(S)?[S]:fr(_m(Eo(S)))}function Wt(S){var R=++Pu;return Eo(S)+R}var fn=Dd(function(S,R){return S+R},0),qi=Ws("ceil"),Bo=Dd(function(S,R){return S/R},1),Di=Ws("floor");function _r(S){return S&&S.length?Fh(S,gu,ms):t}function co(S,R){return S&&S.length?Fh(S,Ji(R,2),ms):t}function Oo(S){return el(S,gu)}function Ff(S,R){return el(S,Ji(R,2))}function W_(S){return S&&S.length?Fh(S,gu,Id):t}function dM(S,R){return S&&S.length?Fh(S,Ji(R,2),Id):t}var QO=Dd(function(S,R){return S*R},1),fM=Ws("round"),qO=Dd(function(S,R){return S-R},0);function YO(S){return S&&S.length?yd(S,gu):0}function k3(S,R){return S&&S.length?yd(S,Ji(R,2)):0}return qe.after=v_,qe.ary=h1,qe.assign=Fb,qe.assignIn=_1,qe.assignInWith=D_,qe.assignWith=Zc,qe.at=zb,qe.before=Ny,qe.bind=Gy,qe.bindAll=G_,qe.bindKey=Tm,qe.castArray=C_,qe.chain=Bm,qe.chunk=pb,qe.compact=mb,qe.concat=xm,qe.cond=Yo,qe.conforms=Ml,qe.constant=td,qe.countBy=pa,qe.create=R_,qe.curry=Bb,qe.curryRight=Wy,qe.debounce=Uo,qe.defaults=P_,qe.defaultsDeep=jb,qe.defer=Ob,qe.delay=_3,qe.difference=Py,qe.differenceBy=Ud,qe.differenceWith=Rs,qe.drop=wm,qe.dropRight=d_,qe.dropRightWhile=jl,qe.dropWhile=p3,qe.fill=f_,qe.filter=du,qe.flatMap=zy,qe.flatMapDeep=jy,qe.flatMapDepth=L0,qe.flatten=bc,qe.flattenDeep=Yh,qe.flattenDepth=p_,qe.flip=b_,qe.flow=kp,qe.flowRight=Vb,qe.fromPairs=yb,qe.functions=$y,qe.functionsIn=Ep,qe.groupBy=xb,qe.initial=Ps,qe.intersection=_l,qe.intersectionBy=uh,qe.intersectionWith=o1,qe.invert=W0,qe.invertBy=L_,qe.invokeMap=wb,qe.iteratee=Rm,qe.keyBy=Mb,qe.keys=sl,qe.keysIn=wc,qe.map=U0,qe.mapKeys=M1,qe.mapValues=km,qe.matches=iv,qe.matchesProperty=Gl,qe.mem
Line truncated
|
||||
}`;var qr=U1(function(){return Xr(He,ji+"return "+Rn).apply(t,mt)});if(qr.source=Rn,g1(qr))throw qr;return qr}function qd(S){return Eo(S).toLowerCase()}function Op(S){return Eo(S).toUpperCase()}function Z0(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return _y(S);if(!S||!(R=ae(R)))return S;var ge=gl(S),De=gl(R),He=y0(ge,De),mt=mf(ge,De)+1;return dt(ge,He,mt).join("")}function P1(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.slice(0,C0(S)+1);if(!S||!(R=ae(R)))return S;var ge=gl(S),De=mf(ge,gl(R))+1;return dt(ge,0,De).join("")}function Ip(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.replace(ao,"");if(!S||!(R=ae(R)))return S;var ge=gl(S),De=y0(ge,gl(R));return dt(ge,De).join("")}function T3(S,R){var Z=de,ge=be;if(ra(R)){var De="separator"in R?R.separator:De;Z="length"in R?Or(R.length):Z,ge="omission"in R?ae(R.omission):ge}S=Eo(S);var He=S.length;if(Ru(S)){var mt=gl(S);He=mt.length}if(Z>=He)return S;var Mt=Z-Ka(ge);if(Mt<1)return ge;var Pt=mt?dt(mt,0,Mt).join(""):S.slice(0,Mt);if(De===t)return Pt+ge;if(mt&&(Mt+=Pt.length-Mt),N0(De)){if(S.slice(Mt).search(De)){var gn,Mn=Pt;for(De.global||(De=Kr(De.source,Eo($i.exec(De))+"g")),De.lastIndex=0;gn=De.exec(Mn);)var Rn=gn.index;Pt=Pt.slice(0,Rn===t?Mt:Rn)}}else if(S.indexOf(ae(De),Mt)!=Mt){var si=Pt.lastIndexOf(De);si>-1&&(Pt=Pt.slice(0,si))}return Pt+ge}function N_(S){return S=Eo(S),S&&or.test(S)?S.replace(Vn,gf):S}var L1=fa(function(S,R,Z){return S+(Z?" ":"")+R.toUpperCase()}),wl=Ea("toUpperCase");function Tp(S,R,Z){return S=Eo(S),R=Z?t:R,R===t?om(S)?am(S):p0(S):S.match(R)||[]}var U1=br(function(S,R){try{return Dl(S,t,R)}catch(Z){return g1(Z)?Z:new Xi(Z)}}),G_=bl(function(S,R){return Du(R,function(Z){Z=Ba(Z),pc(S,Z,Gy(S[Z],S))}),S});function Yo(S){var R=S==null?0:S.length,Z=Ji();return S=R?Zo(S,function(ge){if(typeof ge[1]!="function")throw new Rl(s);return[Z(ge[0]),ge[1]]}):[],br(function(ge){for(var De=-1;++De<R;){var He=S[De];if(Dl(He[0],this,ge))return Dl(He[1],this,ge)}})}function Ml(S){return th(su(S,E))}function td(S){return function(){return S}}function nv(S,R){return S==null||S!==S?R:S}var kp=ja(),Vb=ja(!0);function gu(S){return S}function Rm(S){return Id(typeof S=="function"?S:su(S,E))}function iv(S){return dm(su(S,E))}function Gl(S,R){return Ef(S,su(R,E))}var Xc=br(function(S,R){return function(Z){return ea(Z,S,R)}}),f=br(function(S,R){return function(Z){return ea(S,Z,R)}});function y(S,R,Z){var ge=sl(R),De=zh(R,ge);Z==null&&!(ra(R)&&(De.length||!ge.length))&&(Z=R,R=S,S=this,De=zh(R,sl(R)));var He=!(ra(Z)&&"chain"in Z)||!!Z.chain,mt=Nu(S);return Du(De,function(Mt){var Pt=R[Mt];S[Mt]=Pt,mt&&(S.prototype[Mt]=function(){var gn=this.__chain__;if(He||gn){var Mn=S(this.__wrapped__),Rn=Mn.__actions__=fr(this.__actions__);return Rn.push({func:Pt,args:arguments,thisArg:S}),Mn.__chain__=gn,Mn}return Pt.apply(S,us([this.value()],arguments))})}),S}function x(){return ei._===this&&(ei._=Kc),this}function D(){}function q(S){return S=Or(S),br(function(R){return kd(R,S)})}var ne=Fl(Zo),we=Fl(Xs),We=Fl(f0);function gt(S){return gp(S)?ac(Ba(S)):Nh(S)}function Gt(S){return function(R){return S==null?t:sh(S,R)}}var sn=zu(),hn=zu(!0);function qt(){return[]}function nn(){return!1}function ki(){return{}}function tr(){return""}function is(){return!0}function Rt(S,R){if(S=Or(S),S<1||S>je)return[];var Z=lt,ge=Ro(S,lt);R=Ji(R),S-=lt;for(var De=g0(ge,R);++Z<S;)R(Z);return De}function Et(S){return Cr(S)?Zo(S,Ba):_c(S)?[S]:fr(_m(Eo(S)))}function Wt(S){var R=++Pu;return Eo(S)+R}var fn=Rd(function(S,R){return S+R},0),qi=Ws("ceil"),Bo=Rd(function(S,R){return S/R},1),Di=Ws("floor");function _r(S){return S&&S.length?Fh(S,gu,ms):t}function co(S,R){return S&&S.length?Fh(S,Ji(R,2),ms):t}function Oo(S){return el(S,gu)}function Ff(S,R){return el(S,Ji(R,2))}function W_(S){return S&&S.length?Fh(S,gu,Td):t}function dM(S,R){return S&&S.length?Fh(S,Ji(R,2),Td):t}var QO=Rd(function(S,R){return S*R},1),fM=Ws("round"),qO=Rd(function(S,R){return S-R},0);function YO(S){return S&&S.length?vd(S,gu):0}function k3(S,R){return S&&S.length?vd(S,Ji(R,2)):0}return qe.after=v_,qe.ary=h1,qe.assign=Fb,qe.assignIn=_1,qe.assignInWith=D_,qe.assignWith=Zc,qe.at=zb,qe.before=Ny,qe.bind=Gy,qe.bindAll=G_,qe.bindKey=Tm,qe.castArray=C_,qe.chain=Bm,qe.chunk=pb,qe.compact=mb,qe.concat=xm,qe.cond=Yo,qe.conforms=Ml,qe.constant=td,qe.countBy=pa,qe.create=R_,qe.curry=Bb,qe.curryRight=Wy,qe.debounce=Uo,qe.defaults=P_,qe.defaultsDeep=jb,qe.defer=Ob,qe.delay=_3,qe.difference=Py,qe.differenceBy=Kd,qe.differenceWith=Rs,qe.drop=wm,qe.dropRight=d_,qe.dropRightWhile=jl,qe.dropWhile=p3,qe.fill=f_,qe.filter=du,qe.flatMap=zy,qe.flatMapDeep=jy,qe.flatMapDepth=L0,qe.flatten=bc,qe.flattenDeep=Yh,qe.flattenDepth=p_,qe.flip=b_,qe.flow=kp,qe.flowRight=Vb,qe.fromPairs=yb,qe.functions=$y,qe.functionsIn=Ep,qe.groupBy=xb,qe.initial=Ps,qe.intersection=_l,qe.intersectionBy=uh,qe.intersectionWith=o1,qe.invert=W0,qe.invertBy=L_,qe.invokeMap=wb,qe.iteratee=Rm,qe.keyBy=Mb,qe.keys=sl,qe.keysIn=wc,qe.map=U0,qe.mapKeys=M1,qe.mapValues=km,qe.matches=iv,qe.matchesProperty=Gl,qe.mem
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(v[1])} }\`.`)];const E=[];return n.layerType==="symbol"&&a==="text-font"&&Mw(FC(s))&&Yl(s.type)==="identity"&&E.push(new Nn(t,s,'"text-font" does not support identity functions')),E.concat(i({key:n.key,value:s,valueSpec:g,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function sJ(n){return oJ(n,"paint")}function aJ(n){return oJ(n,"layout")}function lJ(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(ro(t)!=="object")return[new Nn(i,t,`object expected, ${ro(t)} found`)];!t.type&&!t.ref&&e.push(new Nn(i,t,'either "type" or "ref" is required'));let s=Yl(t.type);const a=Yl(t.ref);if(t.id){const c=Yl(t.id);for(let d=0;d<n.arrayIndex;d++){const g=r.layers[d];Yl(g.id)===c&&e.push(new Nn(i,t.id,`duplicate layer id "${t.id}", previously used at line ${g.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(d=>{d in t&&e.push(new Nn(i,t[d],`"${d}" is prohibited for ref layers`))});let c;r.layers.forEach(d=>{Yl(d.id)===a&&(c=d)}),c?c.ref?e.push(new Nn(i,t.ref,"ref cannot reference another ref layer")):s=Yl(c.type):e.push(new Nn(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new Nn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],d=c&&Yl(c.type);c?d==="vector"&&s==="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster source`)):d!=="raster-dem"&&s==="hillshade"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d!=="raster-dem"&&s==="color-relief"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d==="raster"&&s!=="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a vector source`)):d==="vector"&&!t["source-layer"]?e.push(new Nn(i,t,`layer "${t.id}" must specify a "source-layer"`)):d==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new Nn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(d!=="geojson"||!c.lineMetrics)&&e.push(new Nn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Nn(i,t.source,`source "${t.source}" not found`))}return s==="raster"&&t.paint?.resampling&&t.paint?.["raster-resampling"]&&e.push(new Nn(i,t.paint,`layer "${t.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(Zf({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:_L,layout(c){return Zf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return aJ(xx({layerType:s},d))}}})},paint(c){return Zf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return sJ(xx({layerType:s},d))}}})}}})),e}function Wv(n){const e=n.value,t=n.key,i=ro(e);return i!=="string"?[new Nn(t,e,`string expected, ${i} found`)]:[]}function mde(n){const e=n.sourceName??"",t=n.value,i=n.styleSpec,r=i.source_raster_dem,o=n.style;let s=[];const a=ro(t);if(t===void 0)return s;if(a!=="object")return s.push(new Nn("source_raster_dem",t,`object expected, ${a} found`)),s;const c=Yl(t.encoding)==="custom",d=["redFactor","greenFactor","blueFactor","baseShift"],g=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const v in t)!c&&d.includes(v)?s.push(new Nn(v,t[v],`In "${e}": "${v}" is only valid when "encoding" is set to "custom". ${g} encoding found`)):r[v]?s=s.concat(n.validateSpec({key:v,value:t[v],valueSpec:r[v],validateSpec:n.validateSpec,style:o,styleSpec:i})):s.push(new Nn(v,t[v],`unknown property "${v}"`));return s}const mj={promoteId:gde};function uJ(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new Nn(t,e,'"type" is required')];const s=Yl(e.type);let a;switch(s){case"vector":case"raster":return a=Zf({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:mj,validateSpec:o}),a;case"raster-dem":return a=mde({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=Zf({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:mj}),e.cluster)for(const c in e.clusterProperties){const[d,g]=e.clusterProperties[c],v=typeof d=="string"?[d,["accumulated"],["get",c]]:d;a.push(...Ex({key:`${t}.${c}.map`,value:g,expressionContext:"cluster-map"})),a.push(...Ex({key:`${t}.${c}.reduce`,value:v,expressionContext:"clusLine truncated
|
||||
${v}`),F].join(`
|
||||
${a}`)}return d})(n,"",0)}function yj(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function Tde(n,e=2){return n=yj(n,ty.$root),n.layers&&(n.layers=n.layers.map(t=>yj(t,ty.layer))),Ide(n,{indent:e})}function M8(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function vj(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function _D(n,e){return typeof e=="string"&&e[0]==="@"?_D(n,n.constants[e]):e}function kde(n){return Array.isArray(n.stops)}function F3(n,e,t){n[t]=n[e],delete n[e]}function Dde(n){n.version=8,dde(n,r=>{r.type==="video"&&r.url!==void 0&&F3(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),j4(n,r=>{M8(r,o=>{o["symbol-min-distance"]!==void 0&&F3(o,"symbol-min-distance","symbol-spacing")}),vj(r,o=>{o["background-image"]!==void 0&&F3(o,"background-image","background-pattern"),o["line-image"]!==void 0&&F3(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&F3(o,"fill-image","fill-pattern")})}),bL(n,{paint:!0,layout:!0},r=>{const o=_D(n,r.value);kde(o)&&o.stops.forEach(s=>{s[1]=_D(n,s[1])}),r.set(o)}),delete n.constants,j4(n,r=>{M8(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),vj(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}j4(n,r=>{M8(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function Rde(n){const e=[];return j4(n,t=>{t.filter&&(t.filter=z4(t.filter))}),bL(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:o,set:s})=>{Ew(r)||i.endsWith("-transition")||o===null||(typeof r=="object"&&!Array.isArray(r)?(s(eJ(r,o)),e.push(t.join("."))):o.tokens&&typeof r=="string"&&s(tJ(r)))}),n}function Pde(n){return JSON.parse(Lde(JSON.stringify(n)))}function Lde(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function Ude(n){let e=!1;if(n.version===7&&(n=Dde(n),e=!0),n.version===8&&(e=!!Rde(n),e=!0),bL(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(Pde(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Gp=ty,Kde={StyleExpression:HX,StylePropertyFunction:ZX,ZoomConstantExpression:yD,ZoomDependentExpression:vD,createExpression:fL,createPropertyExpression:pL,isExpression:Ew,isExpressionFilter:Sx,isZoomExpression:ede,normalizePropertyExpression:tde},Fde={convertFunction:eJ,createFunction:dL,isFunction:Mw},zde=8,jde=JSON.parse('{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'maplibre:\'.","example":{"styleeditor:slimmode":true,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{"String":"one","Number":2,"Boolean":false}}},"center":{"type":"array","value":"number","length":2,"doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"centerAltitude":{"type":"number","doc":"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":123.4,"sdk-support":{"basic functionality":{"js":"5.0.0","android":"https://github.com/maplibre/maplibre-native/issues/2980","ios":"https://github.com/maplibre/maplibre-native/issues/2980"}}},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been posi
Line truncated
|
||||
@@ -41,8 +41,8 @@ ${a}`)}return d})(n,"",0)}function yj(n,e){const t={};for(const i in e)n[i]!==vo
|
||||
* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.
|
||||
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:ufe,expression:cfe,expression_name:Afe,light:hfe,sky:dfe,terrain:ffe,projection:pfe,paint:mfe,paint_fill:gfe,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are `[x, y]` where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:yfe,paint_circle:vfe,paint_heatmap:bfe,paint_symbol:Cfe,paint_raster:_fe,paint_hillshade:xfe,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"5.6.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"5.6.0",android:"13.0.0",ios:"6.24.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",doc:`The resampling/interpolation method to use for overscaling, also known as texture magnification filter.
|
||||
`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:wfe,transition:Mfe,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:Sfe,interpolation:Efe,interpolation_name:Bfe};var VS={exports:{}};var Ofe=VS.exports,bj;function Ife(){return bj||(bj=1,(function(n,e){(function(t,i){n.exports=i()})(Ofe,(function(){var t={},i={};function r(s,a,c){if(i[s]=c,s==="index"){var d="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",g={};return i.shared(g),i.index(t,g),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([d],{type:"text/javascript"}))),t}}r("shared",["exports"],(function(s){function a(h,l,A,m){return new(A||(A=Promise))((function(b,w){function B(P){try{K(m.next(P))}catch(N){w(N)}}function T(P){try{K(m.throw(P))}catch(N){w(N)}}function K(P){var N;P.done?b(P.value):(N=P.value,N instanceof A?N:new A((function(z){z(N)}))).then(B,T)}K((m=m.apply(h,l||[])).next())}))}function c(h,l){this.x=h,this.y=l}function d(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var g,v;typeof SuppressedError=="function"&&SuppressedError,c.prototype={clone(){return new c(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,l){return this.clone()._rotateAround(h,l)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const l=h.x-this.x,A=h.y-this.y;return l*l+A*A},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,l){return Math.atan2(this.x*l-this.y*h,this.x*h+this.y*l)},_matMult(h){const l=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=l,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const l=Math.cos(h),A=Math.sin(h),m=A*this.x+l*this.y;return this.x=l*this.x-A*this.y,this.y=m,this},_rotateAround(h,l){const A=Math.cos(h),m=Math.sin(h),b=l.y+m*(this.x-l.x)+A*(this.y-l.y);return this.x=l.x+A*(this.x-l.x)-m*(this.y-l.y),this.y=b,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:c},c.convert=function(h){if(h instanceof c)return h;if(Array.isArray(h))return new c(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new c(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var E=(function(){if(v)return g;function h(l,A,m,b){this.cx=3*l,this.bx=3*(m-l)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(b-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=l,this.p1y=A,this.p2x=m,this.p2y=b}return v=1,g=h,h.prototype={sampleCurveX:function(l){return((this.ax*l+this.bx)*l+this.cx)*l},sam
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(z[1])} }\`.`)];const te=[];return h.layerType==="symbol"&&T==="text-font"&&YA(vA(B))&&Ns(B.type)==="identity"&&te.push(new ln(A,B,'"text-font" does not support identity functions')),te.concat(m({key:h.key,value:B,valueSpec:N,style:b,styleSpec:w,expressionContext:"property",propertyType:l,propertyKey:T}))}function XA(h){return M0(h,"paint")}function bf(h){return M0(h,"layout")}function um(h){var l,A;let m=[];const b=h.value,w=h.key,B=h.style,T=h.styleSpec;if(Qi(b)!=="object")return[new ln(w,b,`object expected, ${Qi(b)} found`)];b.type||b.ref||m.push(new ln(w,b,'either "type" or "ref" is required'));let K=Ns(b.type);const P=Ns(b.ref);if(b.id){const N=Ns(b.id);for(let z=0;z<h.arrayIndex;z++){const te=B.layers[z];Ns(te.id)===N&&m.push(new ln(w,b.id,`duplicate layer id "${b.id}", previously used at line ${te.id.__line__}`))}}if("ref"in b){let N;["type","source","source-layer","filter","layout"].forEach((z=>{z in b&&m.push(new ln(w,b[z],`"${z}" is prohibited for ref layers`))})),B.layers.forEach((z=>{Ns(z.id)===P&&(N=z)})),N?N.ref?m.push(new ln(w,b.ref,"ref cannot reference another ref layer")):K=Ns(N.type):m.push(new ln(w,b.ref,`ref layer "${P}" not found`))}else if(K!=="background")if(b.source){const N=B.sources&&B.sources[b.source],z=N&&Ns(N.type);N?z==="vector"&&K==="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster source`)):z!=="raster-dem"&&K==="hillshade"||z!=="raster-dem"&&K==="color-relief"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster-dem source`)):z==="raster"&&K!=="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a vector source`)):z!=="vector"||b["source-layer"]?z==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?m.push(new ln(w,b.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!b.paint||!b.paint["line-gradient"]||z==="geojson"&&N.lineMetrics||m.push(new ln(w,b,`layer "${b.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):m.push(new ln(w,b,`layer "${b.id}" must specify a "source-layer"`)):m.push(new ln(w,b.source,`source "${b.source}" not found`))}else m.push(new ln(w,b,'missing required property "source"'));return K==="raster"&&(!((l=b.paint)===null||l===void 0)&&l.resampling)&&(!((A=b.paint)===null||A===void 0)&&A["raster-resampling"])&&m.push(new ln(w,b.paint,`layer "${b.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),m=m.concat(Gs({key:w,value:b,valueSpec:T.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${w}.type`,value:b.type,valueSpec:T.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:b,objectKey:"type"}),filter:dc,layout:N=>Gs({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>bf(Ur({layerType:K},z))}}),paint:N=>Gs({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>XA(Ur({layerType:K},z))}})}})),m}function Uu(h){const l=h.value,A=h.key,m=Qi(l);return m!=="string"?[new ln(A,l,`string expected, ${m} found`)]:[]}const Fa={promoteId:function({key:h,value:l}){if(Qi(l)==="string")return Uu({key:h,value:l});{const A=[];for(const m in l)A.push(...Uu({key:`${h}.${m}`,value:l[m]}));return A}}};function lp(h){const l=h.value,A=h.key,m=h.styleSpec,b=h.style,w=h.validateSpec;if(!l.type)return[new ln(A,l,'"type" is required')];const B=Ns(l.type);let T;switch(B){case"vector":case"raster":return T=Gs({key:A,value:l,valueSpec:m[`source_${B.replace("-","_")}`],style:h.style,styleSpec:m,objectElementValidators:Fa,validateSpec:w}),T;case"raster-dem":return T=(function(K){var P;const N=(P=K.sourceName)!==null&&P!==void 0?P:"",z=K.value,te=K.styleSpec,Q=te.source_raster_dem,he=K.style;let pe=[];const Ee=Qi(z);if(z===void 0)return pe;if(Ee!=="object")return pe.push(new ln("source_raster_dem",z,`object expected, ${Ee} found`)),pe;const Be=Ns(z.encoding)==="custom",Ue=["redFactor","greenFactor","blueFactor","baseShift"],Te=K.value.encoding?`"${K.value.encoding}"`:"Default";for(const Fe in z)!Be&&Ue.includes(Fe)?pe.push(new ln(Fe,z[Fe],`In "${N}": "${Fe}" is only valid when "encoding" is set to "custom". ${Te} encoding found`)):Q[Fe]?pe=pe.concat(K.validateSpec({key:Fe,value:z[Fe],valueSpec:Q[Fe],validateSpec:K.validateSpec,style:he,styleSpec:te})):pe.push(new ln(Fe,z[Fe],`unknown property "${Fe}"`));return pe})({sourceName:A,value:l,style:h.style,styleSpec:m,validateSpec:w}),T;case"geojson":if(T=Gs({key:A,value:l,valueSpec:m.source_geojson,style:b,styleSpec:m,validateSpec:w,objectElementValidators:Fa}),l.cluster)for(const K in l.clusterProperties){const[P,N]=l.clusterProperties[K],z=typeof P=="string"?[P,["acLine truncated
|
||||
`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:wfe,transition:Mfe,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:Sfe,interpolation:Efe,interpolation_name:Bfe};var VS={exports:{}};var Ofe=VS.exports,bj;function Ife(){return bj||(bj=1,(function(n,e){(function(t,i){n.exports=i()})(Ofe,(function(){var t={},i={};function r(s,a,c){if(i[s]=c,s==="index"){var d="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",g={};return i.shared(g),i.index(t,g),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([d],{type:"text/javascript"}))),t}}r("shared",["exports"],(function(s){function a(h,l,A,m){return new(A||(A=Promise))((function(b,w){function B(P){try{K(m.next(P))}catch(N){w(N)}}function T(P){try{K(m.throw(P))}catch(N){w(N)}}function K(P){var N;P.done?b(P.value):(N=P.value,N instanceof A?N:new A((function(z){z(N)}))).then(B,T)}K((m=m.apply(h,l||[])).next())}))}function c(h,l){this.x=h,this.y=l}function d(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var g,v;typeof SuppressedError=="function"&&SuppressedError,c.prototype={clone(){return new c(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,l){return this.clone()._rotateAround(h,l)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const l=h.x-this.x,A=h.y-this.y;return l*l+A*A},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,l){return Math.atan2(this.x*l-this.y*h,this.x*h+this.y*l)},_matMult(h){const l=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=l,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const l=Math.cos(h),A=Math.sin(h),m=A*this.x+l*this.y;return this.x=l*this.x-A*this.y,this.y=m,this},_rotateAround(h,l){const A=Math.cos(h),m=Math.sin(h),b=l.y+m*(this.x-l.x)+A*(this.y-l.y);return this.x=l.x+A*(this.x-l.x)-m*(this.y-l.y),this.y=b,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:c},c.convert=function(h){if(h instanceof c)return h;if(Array.isArray(h))return new c(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new c(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var E=(function(){if(v)return g;function h(l,A,m,b){this.cx=3*l,this.bx=3*(m-l)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(b-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=l,this.p1y=A,this.p2x=m,this.p2y=b}return v=1,g=h,h.prototype={sampleCurveX:function(l){return((this.ax*l+this.bx)*l+this.cx)*l},sam
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(z[1])} }\`.`)];const te=[];return h.layerType==="symbol"&&T==="text-font"&&YA(vA(B))&&Ns(B.type)==="identity"&&te.push(new ln(A,B,'"text-font" does not support identity functions')),te.concat(m({key:h.key,value:B,valueSpec:N,style:b,styleSpec:w,expressionContext:"property",propertyType:l,propertyKey:T}))}function XA(h){return M0(h,"paint")}function bf(h){return M0(h,"layout")}function um(h){var l,A;let m=[];const b=h.value,w=h.key,B=h.style,T=h.styleSpec;if(Qi(b)!=="object")return[new ln(w,b,`object expected, ${Qi(b)} found`)];b.type||b.ref||m.push(new ln(w,b,'either "type" or "ref" is required'));let K=Ns(b.type);const P=Ns(b.ref);if(b.id){const N=Ns(b.id);for(let z=0;z<h.arrayIndex;z++){const te=B.layers[z];Ns(te.id)===N&&m.push(new ln(w,b.id,`duplicate layer id "${b.id}", previously used at line ${te.id.__line__}`))}}if("ref"in b){let N;["type","source","source-layer","filter","layout"].forEach((z=>{z in b&&m.push(new ln(w,b[z],`"${z}" is prohibited for ref layers`))})),B.layers.forEach((z=>{Ns(z.id)===P&&(N=z)})),N?N.ref?m.push(new ln(w,b.ref,"ref cannot reference another ref layer")):K=Ns(N.type):m.push(new ln(w,b.ref,`ref layer "${P}" not found`))}else if(K!=="background")if(b.source){const N=B.sources&&B.sources[b.source],z=N&&Ns(N.type);N?z==="vector"&&K==="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster source`)):z!=="raster-dem"&&K==="hillshade"||z!=="raster-dem"&&K==="color-relief"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster-dem source`)):z==="raster"&&K!=="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a vector source`)):z!=="vector"||b["source-layer"]?z==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?m.push(new ln(w,b.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!b.paint||!b.paint["line-gradient"]||z==="geojson"&&N.lineMetrics||m.push(new ln(w,b,`layer "${b.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):m.push(new ln(w,b,`layer "${b.id}" must specify a "source-layer"`)):m.push(new ln(w,b.source,`source "${b.source}" not found`))}else m.push(new ln(w,b,'missing required property "source"'));return K==="raster"&&(!((l=b.paint)===null||l===void 0)&&l.resampling)&&(!((A=b.paint)===null||A===void 0)&&A["raster-resampling"])&&m.push(new ln(w,b.paint,`layer "${b.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),m=m.concat(Gs({key:w,value:b,valueSpec:T.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${w}.type`,value:b.type,valueSpec:T.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:b,objectKey:"type"}),filter:dc,layout:N=>Gs({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>bf(Ur({layerType:K},z))}}),paint:N=>Gs({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>XA(Ur({layerType:K},z))}})}})),m}function Uu(h){const l=h.value,A=h.key,m=Qi(l);return m!=="string"?[new ln(A,l,`string expected, ${m} found`)]:[]}const Fa={promoteId:function({key:h,value:l}){if(Qi(l)==="string")return Uu({key:h,value:l});{const A=[];for(const m in l)A.push(...Uu({key:`${h}.${m}`,value:l[m]}));return A}}};function lp(h){const l=h.value,A=h.key,m=h.styleSpec,b=h.style,w=h.validateSpec;if(!l.type)return[new ln(A,l,'"type" is required')];const B=Ns(l.type);let T;switch(B){case"vector":case"raster":return T=Gs({key:A,value:l,valueSpec:m[`source_${B.replace("-","_")}`],style:h.style,styleSpec:m,objectElementValidators:Fa,validateSpec:w}),T;case"raster-dem":return T=(function(K){var P;const N=(P=K.sourceName)!==null&&P!==void 0?P:"",z=K.value,te=K.styleSpec,Q=te.source_raster_dem,he=K.style;let pe=[];const Ee=Qi(z);if(z===void 0)return pe;if(Ee!=="object")return pe.push(new ln("source_raster_dem",z,`object expected, ${Ee} found`)),pe;const Be=Ns(z.encoding)==="custom",Ue=["redFactor","greenFactor","blueFactor","baseShift"],Te=K.value.encoding?`"${K.value.encoding}"`:"Default";for(const Fe in z)!Be&&Ue.includes(Fe)?pe.push(new ln(Fe,z[Fe],`In "${N}": "${Fe}" is only valid when "encoding" is set to "custom". ${Te} encoding found`)):Q[Fe]?pe=pe.concat(K.validateSpec({key:Fe,value:z[Fe],valueSpec:Q[Fe],validateSpec:K.validateSpec,style:he,styleSpec:te})):pe.push(new ln(Fe,z[Fe],`unknown property "${Fe}"`));return pe})({sourceName:A,value:l,style:h.style,styleSpec:m,validateSpec:w}),T;case"geojson":if(T=Gs({key:A,value:l,valueSpec:m.source_geojson,style:b,styleSpec:m,validateSpec:w,objectElementValidators:Fa}),l.cluster)for(const K in l.clusterProperties){const[P,N]=l.clusterProperties[K],z=typeof P=="string"?[P,["acLine truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -836,27 +836,27 @@ uniform ${ae} ${ye} u_${_e};
|
||||
#else
|
||||
${ae} ${ye} ${_e} = u_${_e};
|
||||
#endif
|
||||
`})),staticAttributes:_,staticUniforms:j}}class dr{constructor(u,p,_){this.vertexBuffer=u,this.indexBuffer=p,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Xa=a.aS([{name:"a_pos",type:"Int16",components:2}]);const Zr="#define PROJECTION_MERCATOR",Ho="mercator";class fs{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Ho}get shaderDefine(){return Zr}get shaderPreludeCode(){return Mo.projectionMercator}get vertexShaderPreludeCode(){return Mo.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,p,_,M,k){if(this._cachedMesh)return this._cachedMesh;const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(a.a6,0),j.emplaceBack(0,a.a6),j.emplaceBack(a.a6,a.a6);const G=u.createVertexBuffer(j,Xa.members),H=a.aV.simpleSegment(0,0,4,2),se=new a.aW;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ae=u.createIndexBuffer(se);return this._cachedMesh=new dr(G,ae,H),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class Jl{constructor(u=0,p=0,_=0,M=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(_)||_<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=p,this.left=_,this.right=M}interpolate(u,p,_){return p.top!=null&&u.top!=null&&(this.top=a.H.number(u.top,p.top,_)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.H.number(u.bottom,p.bottom,_)),p.left!=null&&u.left!=null&&(this.left=a.H.number(u.left,p.left,_)),p.right!=null&&u.right!=null&&(this.right=a.H.number(u.right,p.right,_)),this}getCenter(u,p){const _=a.al((this.left+u-this.right)/2,0,u),M=a.al((this.top+p-this.bottom)/2,0,p);return new a.P(_,M)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new Jl(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function jr(O,u){if(!O.renderWorldCopies||O.lngRange)return;const p=u.lng-O.center.lng;u.lng+=p>180?-360:p<-180?360:0}function J(O){return Math.max(0,Math.floor(O))}class Me{constructor(u,p){var _;this.applyConstrain=(M,k)=>this._constrainOverride!==null?this._constrainOverride(M,k):this._callbacks.defaultConstrain(M,k),this._callbacks=u,this._tileSize=512,this._renderWorldCopies=p?.renderWorldCopies===void 0||!!p?.renderWorldCopies,this._minZoom=p?.minZoom||0,this._maxZoom=p?.maxZoom||22,this._minPitch=p?.minPitch==null?0:p?.minPitch,this._maxPitch=p?.maxPitch==null?60:p?.maxPitch,this._constrainOverride=(_=p?.constrainOverride)!==null&&_!==void 0?_:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Jl,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,p,_){this._constrainOverride=u.constrainOverride,this._latRange=u.latRange,this._lngRange=u.lngRange,this._width=u.width,this._height=u.height,this._center=u.center,this._elevation=u.elevation,this._minElevationForCurrentTile=u.minElevationForCurrentTile,this._zoom=u.zoom,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=u.bearingInRadians,this._fovInRadians=u.fovInRadians,this._pitchInRadians=u.pitchInRadians,this._rollInRadians=u.rollInRadians,this._unmodified=u.unmodified,this._edgeInsets=new Jl(u.padding.top,u.padding.bottom,u.padding.left,u.padding.right),this._minZoom=u.minZoom,this._maxZoom=u.maxZoom,this._minPitch=u.minPitch,this._maxPitch=u.maxPitch,this._renderWorldCopies=u.renderWorldCopies,this._cameraToCenterDistance=u.cameraToCenterDistance,this._nearZ=u.nearZ,this._farZ=u.farZ,this._autoCalculateNearFarZ=!_&&u.autoCalculateNearFarZ,p&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(u){this._minElevationForCurrentTile=u}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(u){this._minZoom!==u&&(this._minZoom=u,this.setZoom(this.applyCon
Line truncated
|
||||
`})),staticAttributes:_,staticUniforms:j}}class dr{constructor(u,p,_){this.vertexBuffer=u,this.indexBuffer=p,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Xa=a.aS([{name:"a_pos",type:"Int16",components:2}]);const Zr="#define PROJECTION_MERCATOR",Ho="mercator";class fs{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Ho}get shaderDefine(){return Zr}get shaderPreludeCode(){return Mo.projectionMercator}get vertexShaderPreludeCode(){return Mo.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,p,_,M,k){if(this._cachedMesh)return this._cachedMesh;const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(a.a6,0),j.emplaceBack(0,a.a6),j.emplaceBack(a.a6,a.a6);const G=u.createVertexBuffer(j,Xa.members),H=a.aV.simpleSegment(0,0,4,2),se=new a.aW;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ae=u.createIndexBuffer(se);return this._cachedMesh=new dr(G,ae,H),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class Jl{constructor(u=0,p=0,_=0,M=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(_)||_<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=p,this.left=_,this.right=M}interpolate(u,p,_){return p.top!=null&&u.top!=null&&(this.top=a.H.number(u.top,p.top,_)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.H.number(u.bottom,p.bottom,_)),p.left!=null&&u.left!=null&&(this.left=a.H.number(u.left,p.left,_)),p.right!=null&&u.right!=null&&(this.right=a.H.number(u.right,p.right,_)),this}getCenter(u,p){const _=a.al((this.left+u-this.right)/2,0,u),M=a.al((this.top+p-this.bottom)/2,0,p);return new a.P(_,M)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new Jl(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function jr(O,u){if(!O.renderWorldCopies||O.lngRange)return;const p=u.lng-O.center.lng;u.lng+=p>180?-360:p<-180?360:0}function J(O){return Math.max(0,Math.floor(O))}class Me{constructor(u,p){var _;this.applyConstrain=(M,k)=>this._constrainOverride!==null?this._constrainOverride(M,k):this._callbacks.defaultConstrain(M,k),this._callbacks=u,this._tileSize=512,this._renderWorldCopies=p?.renderWorldCopies===void 0||!!p?.renderWorldCopies,this._minZoom=p?.minZoom||0,this._maxZoom=p?.maxZoom||22,this._minPitch=p?.minPitch==null?0:p?.minPitch,this._maxPitch=p?.maxPitch==null?60:p?.maxPitch,this._constrainOverride=(_=p?.constrainOverride)!==null&&_!==void 0?_:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Jl,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,p,_){this._constrainOverride=u.constrainOverride,this._latRange=u.latRange,this._lngRange=u.lngRange,this._width=u.width,this._height=u.height,this._center=u.center,this._elevation=u.elevation,this._minElevationForCurrentTile=u.minElevationForCurrentTile,this._zoom=u.zoom,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=u.bearingInRadians,this._fovInRadians=u.fovInRadians,this._pitchInRadians=u.pitchInRadians,this._rollInRadians=u.rollInRadians,this._unmodified=u.unmodified,this._edgeInsets=new Jl(u.padding.top,u.padding.bottom,u.padding.left,u.padding.right),this._minZoom=u.minZoom,this._maxZoom=u.maxZoom,this._minPitch=u.minPitch,this._maxPitch=u.maxPitch,this._renderWorldCopies=u.renderWorldCopies,this._cameraToCenterDistance=u.cameraToCenterDistance,this._nearZ=u.nearZ,this._farZ=u.farZ,this._autoCalculateNearFarZ=!_&&u.autoCalculateNearFarZ,p&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(u){this._minElevationForCurrentTile=u}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(u){this._minZoom!==u&&(this._minZoom=u,this.setZoom(this.applyCon
Line truncated
|
||||
`),dt=ot.concat(Mo.prelude.vertexSource,G.vertexSource,p.vertexSource).join(`
|
||||
`);po(ae)||(tt=(function(tn){return tn.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(tt),dt=(function(tn){return tn.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(dt));const ut=ae.createShader(ae.FRAGMENT_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(ut,tt),ae.compileShader(ut),!ae.getShaderParameter(ut,ae.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ae.getShaderInfoLog(ut)}`);ae.attachShader(this.program,ut);const kt=ae.createShader(ae.VERTEX_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(kt,dt),ae.compileShader(kt),!ae.getShaderParameter(kt,ae.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ae.getShaderInfoLog(kt)}`);ae.attachShader(this.program,kt),this.attributes={};const Zt={};this.numAttributes=Oe.length;for(let tn=0;tn<this.numAttributes;tn++)Oe[tn]&&(ae.bindAttribLocation(this.program,tn,Oe[tn]),this.attributes[Oe[tn]]=tn);if(ae.linkProgram(this.program),!ae.getProgramParameter(this.program,ae.LINK_STATUS))throw new Error(`Program failed to link: ${ae.getProgramInfoLog(this.program)}`);ae.deleteShader(kt),ae.deleteShader(ut);for(const tn of ft)if(tn&&!Zt[tn]){const Cn=ae.getUniformLocation(this.program,tn);Cn&&(Zt[tn]=Cn)}this.fixedUniforms=M(u,Zt),this.terrainUniforms=((tn,Cn)=>({u_depth:new a.b_(tn,Cn.u_depth),u_terrain:new a.b_(tn,Cn.u_terrain),u_terrain_dim:new a.bp(tn,Cn.u_terrain_dim),u_terrain_matrix:new a.c0(tn,Cn.u_terrain_matrix),u_terrain_unpack:new a.c1(tn,Cn.u_terrain_unpack),u_terrain_exaggeration:new a.bp(tn,Cn.u_terrain_exaggeration)}))(u,Zt),this.projectionUniforms=((tn,Cn)=>({u_projection_matrix:new a.c0(tn,Cn.u_projection_matrix),u_projection_tile_mercator_coords:new a.c1(tn,Cn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.c1(tn,Cn.u_projection_clipping_plane),u_projection_transition:new a.bp(tn,Cn.u_projection_transition),u_projection_fallback_matrix:new a.c0(tn,Cn.u_projection_fallback_matrix)}))(u,Zt),this.binderUniforms=_?_.getUniforms(u,Zt):[]}draw(u,p,_,M,k,j,G,H,se,ae,ye,_e,Oe,Ge,Ze,rt,et,at,ft){var ot;const tt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(M),u.setColorMode(k),u.setCullFace(j),H){u.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,H.depthTexture),u.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,H.texture);for(const ut in this.terrainUniforms)this.terrainUniforms[ut].set(H[ut])}if(se)for(const ut in se)this.projectionUniforms[_y[ut]].set(se[ut]);if(G)for(const ut in this.fixedUniforms)this.fixedUniforms[ut].set(G[ut]);rt&&rt.setUniforms(u,this.binderUniforms,Ge,{zoom:Ze});let dt=0;switch(p){case tt.LINES:dt=2;break;case tt.TRIANGLES:dt=3;break;case tt.LINE_STRIP:dt=1}for(const ut of Oe.get())ut.vaos||(ut.vaos={}),(ot=ut.vaos)[ae]||(ot[ae]=new g0),ut.vaos[ae].bind(u,this,ye,rt?rt.getPaintVertexBuffers():[],_e,ut.vertexOffset,et,at,ft),tt.drawElements(p,ut.primitiveLength*dt,tt.UNSIGNED_SHORT,ut.primitiveOffset*dt*2)}}function vd(O,u,p){const _=1/a.aK(p,1,u.transform.tileZoom),M=Math.pow(2,p.tileID.overscaledZ),k=p.tileSize*Math.pow(2,u.transform.tileZoom)/M,j=k*(p.tileID.canonical.x+p.tileID.wrap*M),G=k*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[_,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[j>>16,G>>16],u_pixel_coord_lower:[65535&j,65535&G]}}const y0=(O,u,p,_)=>{const M=O.style.light,k=M.properties.get("position"),j=[k.x,k.y,k.z],G=a.c4();M.properties.get("anchor")==="viewport"&&a.c5(G,O.transform.bearingInRadians),a.c6(j,j,G);const H=O.transform.transformLightDirection(j),se=M.properties.get("color");return{u_lightpos:j,u_lightpos_globe:H,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+u,u_opacity:p,u_fill_translate:_}},mf=(O,u,p,_,M,k,j)=>a.e(y0(O,u,p,_),vd(k,O,j),{u_height_factor:-Math.pow(2,M.overscaledZ)/j.tileSize/8}),bd=(O,u,p,_)=>a.e(vd(u,O,p),{u_fill_translate:_}),xy=(O,u)=>({u_world:O,u_fill_translate:u}),rm=(O,u,p,_,M)=>a.e(bd(O,u,p,M),{u_world:_}),Gg=(O,u,p,_,M)=>{const k=O.transform;let j,G,H=0;if(p.paint.get("circle-pitch-alignment")==="map"){const se=a.aK(u,1,k.zoom);j=!0,G=[se,se],H=se/(a.a6*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*M}else j=!1,G=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:G,u_globe_extrude_scale:H,u_translate:_}},Wg=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Ru=O=>({u_viewport_size:[O.width,O.height]}),om=(O,u=1)=>({u_color:O,u_overlay:0,u_overlay_scale:u}),v0=(O,u,p,_)=>{const M=a.aK(O,1,u)/(a.a6*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:a.aK(O,1,u),u_intensi
Line truncated
|
||||
`);po(ae)||(tt=(function(tn){return tn.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(tt),dt=(function(tn){return tn.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(dt));const ut=ae.createShader(ae.FRAGMENT_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(ut,tt),ae.compileShader(ut),!ae.getShaderParameter(ut,ae.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ae.getShaderInfoLog(ut)}`);ae.attachShader(this.program,ut);const kt=ae.createShader(ae.VERTEX_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(kt,dt),ae.compileShader(kt),!ae.getShaderParameter(kt,ae.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ae.getShaderInfoLog(kt)}`);ae.attachShader(this.program,kt),this.attributes={};const Zt={};this.numAttributes=Oe.length;for(let tn=0;tn<this.numAttributes;tn++)Oe[tn]&&(ae.bindAttribLocation(this.program,tn,Oe[tn]),this.attributes[Oe[tn]]=tn);if(ae.linkProgram(this.program),!ae.getProgramParameter(this.program,ae.LINK_STATUS))throw new Error(`Program failed to link: ${ae.getProgramInfoLog(this.program)}`);ae.deleteShader(kt),ae.deleteShader(ut);for(const tn of ft)if(tn&&!Zt[tn]){const Cn=ae.getUniformLocation(this.program,tn);Cn&&(Zt[tn]=Cn)}this.fixedUniforms=M(u,Zt),this.terrainUniforms=((tn,Cn)=>({u_depth:new a.b_(tn,Cn.u_depth),u_terrain:new a.b_(tn,Cn.u_terrain),u_terrain_dim:new a.bp(tn,Cn.u_terrain_dim),u_terrain_matrix:new a.c0(tn,Cn.u_terrain_matrix),u_terrain_unpack:new a.c1(tn,Cn.u_terrain_unpack),u_terrain_exaggeration:new a.bp(tn,Cn.u_terrain_exaggeration)}))(u,Zt),this.projectionUniforms=((tn,Cn)=>({u_projection_matrix:new a.c0(tn,Cn.u_projection_matrix),u_projection_tile_mercator_coords:new a.c1(tn,Cn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.c1(tn,Cn.u_projection_clipping_plane),u_projection_transition:new a.bp(tn,Cn.u_projection_transition),u_projection_fallback_matrix:new a.c0(tn,Cn.u_projection_fallback_matrix)}))(u,Zt),this.binderUniforms=_?_.getUniforms(u,Zt):[]}draw(u,p,_,M,k,j,G,H,se,ae,ye,_e,Oe,Ge,Ze,rt,et,at,ft){var ot;const tt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(M),u.setColorMode(k),u.setCullFace(j),H){u.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,H.depthTexture),u.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,H.texture);for(const ut in this.terrainUniforms)this.terrainUniforms[ut].set(H[ut])}if(se)for(const ut in se)this.projectionUniforms[_y[ut]].set(se[ut]);if(G)for(const ut in this.fixedUniforms)this.fixedUniforms[ut].set(G[ut]);rt&&rt.setUniforms(u,this.binderUniforms,Ge,{zoom:Ze});let dt=0;switch(p){case tt.LINES:dt=2;break;case tt.TRIANGLES:dt=3;break;case tt.LINE_STRIP:dt=1}for(const ut of Oe.get())ut.vaos||(ut.vaos={}),(ot=ut.vaos)[ae]||(ot[ae]=new g0),ut.vaos[ae].bind(u,this,ye,rt?rt.getPaintVertexBuffers():[],_e,ut.vertexOffset,et,at,ft),tt.drawElements(p,ut.primitiveLength*dt,tt.UNSIGNED_SHORT,ut.primitiveOffset*dt*2)}}function bd(O,u,p){const _=1/a.aK(p,1,u.transform.tileZoom),M=Math.pow(2,p.tileID.overscaledZ),k=p.tileSize*Math.pow(2,u.transform.tileZoom)/M,j=k*(p.tileID.canonical.x+p.tileID.wrap*M),G=k*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[_,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[j>>16,G>>16],u_pixel_coord_lower:[65535&j,65535&G]}}const y0=(O,u,p,_)=>{const M=O.style.light,k=M.properties.get("position"),j=[k.x,k.y,k.z],G=a.c4();M.properties.get("anchor")==="viewport"&&a.c5(G,O.transform.bearingInRadians),a.c6(j,j,G);const H=O.transform.transformLightDirection(j),se=M.properties.get("color");return{u_lightpos:j,u_lightpos_globe:H,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+u,u_opacity:p,u_fill_translate:_}},mf=(O,u,p,_,M,k,j)=>a.e(y0(O,u,p,_),bd(k,O,j),{u_height_factor:-Math.pow(2,M.overscaledZ)/j.tileSize/8}),Cd=(O,u,p,_)=>a.e(bd(u,O,p),{u_fill_translate:_}),xy=(O,u)=>({u_world:O,u_fill_translate:u}),rm=(O,u,p,_,M)=>a.e(Cd(O,u,p,M),{u_world:_}),Gg=(O,u,p,_,M)=>{const k=O.transform;let j,G,H=0;if(p.paint.get("circle-pitch-alignment")==="map"){const se=a.aK(u,1,k.zoom);j=!0,G=[se,se],H=se/(a.a6*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*M}else j=!1,G=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:G,u_globe_extrude_scale:H,u_translate:_}},Wg=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Ru=O=>({u_viewport_size:[O.width,O.height]}),om=(O,u=1)=>({u_color:O,u_overlay:0,u_overlay_scale:u}),v0=(O,u,p,_)=>{const M=a.aK(O,1,u)/(a.a6*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:a.aK(O,1,u),u_intensi
Line truncated
|
||||
uniform mat4 u_projection_matrix;
|
||||
${G.shaderPreludeCode.vertexSource}`,define:G.shaderDefine},defaultProjectionData:se},ye=j.renderingMode?j.renderingMode:"2d";if(O.renderPass==="offscreen"){const _e=j.prerender;_e&&(O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),_e.call(j,k.gl,ae),k.setDirty(),O.setBaseState())}else if(O.renderPass==="translucent"){O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),k.setStencilMode(Wi.disabled);const _e=ye==="3d"?O.getDepthModeFor3D():O.getDepthModeForSublayer(0,ii.ReadOnly);k.setDepthMode(_e),j.render(k.gl,ae),k.setDirty(),O.setBaseState(),k.bindFramebuffer.set(null)}},debug:function(O,u,p){for(const _ of p)My(O,u,_)},debugPadding:function(O){const u=O.transform.padding;Fa(O,O.transform.height-(u.top||0),3,M0),Fa(O,u.bottom||0,3,XA),lp(O,u.left||0,3,bf),lp(O,O.transform.width-(u.right||0),3,um);const p=O.transform.centerPoint;(function(_,M,k,j){Ku(_,M-1,k-10,2,20,j),Ku(_,M-10,k-1,20,2,j)})(O,p.x,O.transform.height-p.y,Uu)},terrainDepth:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.tileManager.getRenderableTiles(),H=O.useProgram("terrainDepth");p.bindFramebuffer.set(u.getFramebuffer("depth").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1});for(const se of G){const ae=u.getTerrainMesh(se.tileID),ye=u.getTerrainData(se.tileID),_e=M.getProjectionData({overscaledTileID:se.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),Oe={u_ele_delta:u.getMeshFrameDelta(M.zoom)};H.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,ye,_e,"terrain",ae.vertexBuffer,ae.indexBuffer,ae.segments)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])},terrainCoords:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.getCoordsTexture(),H=u.tileManager.getRenderableTiles(),se=O.useProgram("terrainCoords");p.bindFramebuffer.set(u.getFramebuffer("coords").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1}),u.coordsIndex=[];for(const ae of H){const ye=u.getTerrainMesh(ae.tileID),_e=u.getTerrainData(ae.tileID);p.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,G.texture);const Oe={u_terrain_coords_id:(255-u.coordsIndex.length)/255,u_texture:0,u_ele_delta:u.getMeshFrameDelta(M.zoom)},Ge=M.getProjectionData({overscaledTileID:ae.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});se.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,_e,Ge,"terrain",ye.vertexBuffer,ye.indexBuffer,ye.segments),u.coordsIndex.push(ae.tileID.key)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])}};class Cf{constructor(u,p){this.drawFunctions=Aa,this.context=new Ro(u),this.transform=p,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:a.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=nr.maxOverzooming+nr.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Fs}resize(u,p,_){if(this.width=Math.floor(u*_),this.height=Math.floor(p*_),this.pixelRatio=_,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const M of this.style._order)this.style._layers[M].resize()}setup(){const u=this.context,p=new a.aU;p.emplaceBack(0,0),p.emplaceBack(a.a6,0),p.emplaceBack(0,a.a6),p.emplaceBack(a.a6,a.a6),this.tileExtentBuffer=u.createVertexBuffer(p,Xa.members),this.tileExtentSegments=a.aV.simpleSegment(0,0,4,2);const _=new a.aU;_.emplaceBack(0,0),_.emplaceBack(a.a6,0),_.emplaceBack(0,a.a6),_.emplaceBack(a.a6,a.a6),this.debugBuffer=u.createVertexBuffer(_,Xa.members),this.debugSegments=a.aV.simpleSegment(0,0,4,5);const M=new a.ch;M.emplaceBack(0,0,0,0),M.emplaceBack(a.a6,0,a.a6,0),M.emplaceBack(0,a.a6,0,a.a6),M.emplaceBack(a.a6,a.a6,a.a6,a.a6),this.rasterBoundsBuffer=u.createVertexBuffer(M,yd.members),this.rasterBoundsSegments=a.aV.simpleSegment(0,0,4,2);const k=new a.aU;k.emplaceBack(0,0),k.emplaceBack(a.a6,0),k.emplaceBack(0,a.a6),k.emplaceBack(a.a6,a.a6),this.rasterBoundsBufferPosOnly=u.createVertexBuffer(k,Xa.members),this.rasterBoundsSegmentsPosOnly=a.aV.simpleSegment(0,0,4,5);const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(1,0),j.emplaceBack(0,1),j.emplaceBack(1,1),this.viewportBuffer=u.createVertexBuffer(j,Xa.members),this.viewportSegments=a.aV.simpleSegment(0,0,4,2);const G=new a.ci;G.emplaceBack(0),G.emplaceBack(1),G.emplaceBack(3),G.emplaceBack(2),G.emplaceBack(0),this.tileBorderIndexBuffer=u.createIndexBuffer(G);const H=new a.aW;H.emplaceBack(1,0,2),H.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=u.createIndexBuffer(H);const se=this.context.gl;this.stencilClearMode=new Wi({func:se.ALWAYS,mask:0},0,255,se.ZERO,se.ZERO,se.ZERO),this.tileExtentMesh=new dr(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){const u=this.context,p=u.gl;this.nextStencilID=1,this.currentStencilSource=void 0;c
Line truncated
|
||||
${G.shaderPreludeCode.vertexSource}`,define:G.shaderDefine},defaultProjectionData:se},ye=j.renderingMode?j.renderingMode:"2d";if(O.renderPass==="offscreen"){const _e=j.prerender;_e&&(O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),_e.call(j,k.gl,ae),k.setDirty(),O.setBaseState())}else if(O.renderPass==="translucent"){O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),k.setStencilMode(Wi.disabled);const _e=ye==="3d"?O.getDepthModeFor3D():O.getDepthModeForSublayer(0,ii.ReadOnly);k.setDepthMode(_e),j.render(k.gl,ae),k.setDirty(),O.setBaseState(),k.bindFramebuffer.set(null)}},debug:function(O,u,p){for(const _ of p)My(O,u,_)},debugPadding:function(O){const u=O.transform.padding;Fa(O,O.transform.height-(u.top||0),3,M0),Fa(O,u.bottom||0,3,XA),lp(O,u.left||0,3,bf),lp(O,O.transform.width-(u.right||0),3,um);const p=O.transform.centerPoint;(function(_,M,k,j){Ku(_,M-1,k-10,2,20,j),Ku(_,M-10,k-1,20,2,j)})(O,p.x,O.transform.height-p.y,Uu)},terrainDepth:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.tileManager.getRenderableTiles(),H=O.useProgram("terrainDepth");p.bindFramebuffer.set(u.getFramebuffer("depth").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1});for(const se of G){const ae=u.getTerrainMesh(se.tileID),ye=u.getTerrainData(se.tileID),_e=M.getProjectionData({overscaledTileID:se.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),Oe={u_ele_delta:u.getMeshFrameDelta(M.zoom)};H.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,ye,_e,"terrain",ae.vertexBuffer,ae.indexBuffer,ae.segments)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])},terrainCoords:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.getCoordsTexture(),H=u.tileManager.getRenderableTiles(),se=O.useProgram("terrainCoords");p.bindFramebuffer.set(u.getFramebuffer("coords").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1}),u.coordsIndex=[];for(const ae of H){const ye=u.getTerrainMesh(ae.tileID),_e=u.getTerrainData(ae.tileID);p.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,G.texture);const Oe={u_terrain_coords_id:(255-u.coordsIndex.length)/255,u_texture:0,u_ele_delta:u.getMeshFrameDelta(M.zoom)},Ge=M.getProjectionData({overscaledTileID:ae.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});se.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,_e,Ge,"terrain",ye.vertexBuffer,ye.indexBuffer,ye.segments),u.coordsIndex.push(ae.tileID.key)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])}};class Cf{constructor(u,p){this.drawFunctions=Aa,this.context=new Ro(u),this.transform=p,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:a.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=nr.maxOverzooming+nr.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Fs}resize(u,p,_){if(this.width=Math.floor(u*_),this.height=Math.floor(p*_),this.pixelRatio=_,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const M of this.style._order)this.style._layers[M].resize()}setup(){const u=this.context,p=new a.aU;p.emplaceBack(0,0),p.emplaceBack(a.a6,0),p.emplaceBack(0,a.a6),p.emplaceBack(a.a6,a.a6),this.tileExtentBuffer=u.createVertexBuffer(p,Xa.members),this.tileExtentSegments=a.aV.simpleSegment(0,0,4,2);const _=new a.aU;_.emplaceBack(0,0),_.emplaceBack(a.a6,0),_.emplaceBack(0,a.a6),_.emplaceBack(a.a6,a.a6),this.debugBuffer=u.createVertexBuffer(_,Xa.members),this.debugSegments=a.aV.simpleSegment(0,0,4,5);const M=new a.ch;M.emplaceBack(0,0,0,0),M.emplaceBack(a.a6,0,a.a6,0),M.emplaceBack(0,a.a6,0,a.a6),M.emplaceBack(a.a6,a.a6,a.a6,a.a6),this.rasterBoundsBuffer=u.createVertexBuffer(M,vd.members),this.rasterBoundsSegments=a.aV.simpleSegment(0,0,4,2);const k=new a.aU;k.emplaceBack(0,0),k.emplaceBack(a.a6,0),k.emplaceBack(0,a.a6),k.emplaceBack(a.a6,a.a6),this.rasterBoundsBufferPosOnly=u.createVertexBuffer(k,Xa.members),this.rasterBoundsSegmentsPosOnly=a.aV.simpleSegment(0,0,4,5);const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(1,0),j.emplaceBack(0,1),j.emplaceBack(1,1),this.viewportBuffer=u.createVertexBuffer(j,Xa.members),this.viewportSegments=a.aV.simpleSegment(0,0,4,2);const G=new a.ci;G.emplaceBack(0),G.emplaceBack(1),G.emplaceBack(3),G.emplaceBack(2),G.emplaceBack(0),this.tileBorderIndexBuffer=u.createIndexBuffer(G);const H=new a.aW;H.emplaceBack(1,0,2),H.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=u.createIndexBuffer(H);const se=this.context.gl;this.stencilClearMode=new Wi({func:se.ALWAYS,mask:0},0,255,se.ZERO,se.ZERO,se.ZERO),this.tileExtentMesh=new dr(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){const u=this.context,p=u.gl;this.nextStencilID=1,this.currentStencilSource=void 0;c
Line truncated
|
||||
${e} <span></span>
|
||||
`,rs().s[12]++,this._textEl=this._container.querySelector("span"),rs().s[13]++,this.updateZoomLevel()}addEventListeners(){rs().f[4]++,rs().s[14]++,this._map.on("render",()=>(rs().f[5]++,rs().s[15]++,this.updateZoomLevel())),rs().s[16]++,this._map.on("zoomIn",()=>(rs().f[6]++,rs().s[17]++,this.updateZoomLevel())),rs().s[18]++,this._map.on("zoomOut",()=>(rs().f[7]++,rs().s[19]++,this.updateZoomLevel()))}onRemove(){rs().f[8]++,rs().s[20]++,this._container.parentNode.removeChild(this._container),rs().s[21]++,this._map=void 0}}function kD(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function DD(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function RD(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function Oj(n,e){return{circle:e(n,.8),line:e(n,.6),polygon:e(n,.3),polygonOutline:e(n,.6),default:e(n,1)}}function $pe(n,e){const t=[],i=[],r=[];for(const o of Object.keys(n)){const s=n[o];if(!s||s.length===0){const a=Oj(o,e);i.push(kD(a.circle,o)),r.push(RD(a.line,o)),t.push(DD(a.polygon,a.polygonOutline,o))}else for(const a of s){const c=Oj(a,e);i.push(kD(c.circle,o,a)),r.push(RD(c.line,o,a)),t.push(DD(c.polygon,c.polygonOutline,o,a))}}return t.concat(r).concat(i)}function Hpe(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};for(const o of Object.keys(n.sources)){const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}return Object.assign(n,{layers:[i].concat(e),sources:r})}const B8={polygonLayer:DD,lineLayer:RD,circleLayer:kD,generateInspectStyle:Hpe,generateColoredLayers:$pe};function Dr(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{l
Line truncated
|
||||
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=ame.language(this.options.language.split(",")[0]);return this.options.language&&z3?.[e][t]?z3[e][t]:z3[e].en}_fitBoundsForMarkers(){var e;if(this._typeahead.data.length<1)return;const t=this._typeahead.data.filter(i=>typeof i!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=zm({},{padding:100},this.options.flyTo),o=new this._maplibregl.LngLatBounds;for(const s of t)"geometry"in s&&((e=s.geometry)===null||e===void 0?void 0:e.type)==="Point"&&o.extend(s.geometry.coordinates);this._map.fitBounds(o,r)}return t.length>0&&this._maplibregl&&this._handleResultMarkers(t),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.options.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute("aria-label",this.options.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){var t;if(!this._map)return;this._removeMarker();const r=zm({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let o=null;if(this.options.popup){const a=zm({},{},this.options.popup);o=new this._maplibregl.Popup(a).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)):((t=e.geometry)===null||t===void 0?void 0:t.type)==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=zm({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=zm(i,{element:o}));const s=new this._maplibregl.Marker(zm({},i,{element:o}));let a;if(this.options.popup){const d=zm({},{},this.options.popup);a=new this._maplibregl.Popup(d).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function Qt(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="312eae534e4d7d43f508a7777880c15ad21e9eb4",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,colLine truncated
|
||||
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=ame.language(this.options.language.split(",")[0]);return this.options.language&&z3?.[e][t]?z3[e][t]:z3[e].en}_fitBoundsForMarkers(){var e;if(this._typeahead.data.length<1)return;const t=this._typeahead.data.filter(i=>typeof i!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=zm({},{padding:100},this.options.flyTo),o=new this._maplibregl.LngLatBounds;for(const s of t)"geometry"in s&&((e=s.geometry)===null||e===void 0?void 0:e.type)==="Point"&&o.extend(s.geometry.coordinates);this._map.fitBounds(o,r)}return t.length>0&&this._maplibregl&&this._handleResultMarkers(t),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.options.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute("aria-label",this.options.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){var t;if(!this._map)return;this._removeMarker();const r=zm({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let o=null;if(this.options.popup){const a=zm({},{},this.options.popup);o=new this._maplibregl.Popup(a).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)):((t=e.geometry)===null||t===void 0?void 0:t.type)==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=zm({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=zm(i,{element:o}));const s=new this._maplibregl.Marker(zm({},i,{element:o}));let a;if(this.options.popup){const d=zm({},{},this.options.popup);a=new this._maplibregl.Popup(d).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function Qt(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="312eae534e4d7d43f508a7777880c15ad21e9eb4",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,colLine truncated
|
||||
`).reduce((r,o)=>Math.max(r,xte(n,o)),0);return t[e]=i,i}function fve(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,c=0;for(let d=0,g=e.length;d<=g;d+=2){const v=e[d];if(v===`
|
||||
`||d===g){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const E=e[d+1]||n.font,I=xte(E,v);t.push(I),s+=I;const U=dve(E);i.push(U),c=Math.max(c,U)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function pve(n,e,t,i,r,o,s,a,c,d,g){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=v=>v.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,d),n.scale(g[0],g[1]),mve(i,n)):g[0]<0||g[1]<0?(n.translate(c,d),n.scale(g[0],g[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,d,s*g[0],a*g[1]),n.restore()}function mve(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class NB{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=xh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new NB({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Pr()}getImage(e){return Pr()}getHitDetectionImage(){return Pr()}getPixelRatio(e){return 1}getImageState(){return Pr()}getImageSize(){return Pr()}getOrigin(){return Pr()}getSize(){return Pr()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=xh(e)}listenImageChange(e){Pr()}load(){Pr()}unlistenImageChange(e){Pr()}ready(){return Promise.resolve()}}class GB extends NB{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?Ui.LOADING:Ui.LOADED,this.imageState_===Ui.LOADING&&this.ready().then(()=>this.imageState_=Ui.LOADED),this.render()}clone(){const e=this.getScale(),t=new GB({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=qp.get(i,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=hl(s,s);this.draw_(o,a,e),r=a.canvas;const c=new bte(r,void 0,null,Ui.LOADED,null);qp.set(i,null,c),createImageBitmap(r).then(d=>{c.setImage(d)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const ie=r;r=o,o=ie}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),d=Math.sqrt(o*o-c*c),g=r-d,v=Math.sqrt(c*c+g*g),E=v/c;if(e==="miter"&&E<=i)return E*t;const I=t/2/E,U=t/2*(g/v),W=Math.sqrt((r+I)*(r+I)+U*U)-r;if(this.radius2_===void 0||e==="bevel")return W*2;const V=r*Math.sin(a),Y=Math.sqrt(r*r-V*V),ee=o-Y,re=Math.sqrt(V*V+ee*ee)
Line truncated
|
||||
`,""),n.push(e,""),n}function $be(n,e,t){return t%2===0&&(n+=e),n}class Hbe{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=rf(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new SU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],d=this.pixelRatio,g=[c.scale[0]*d,c.scale[1]*d],v=c.justify?o6[c.justify]:m7(Array.isArray(e)?e[0]:e,c.textAlign||D5),E=r&&s.lineWidth?s.lineWidth:0,I=Array.isArray(e)?e:String(e).split(`
|
||||
`||d===g){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const E=e[d+1]||n.font,I=xte(E,v);t.push(I),s+=I;const U=dve(E);i.push(U),c=Math.max(c,U)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function pve(n,e,t,i,r,o,s,a,c,d,g){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=v=>v.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,d),n.scale(g[0],g[1]),mve(i,n)):g[0]<0||g[1]<0?(n.translate(c,d),n.scale(g[0],g[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,d,s*g[0],a*g[1]),n.restore()}function mve(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class NB{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=xh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new NB({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Pr()}getImage(e){return Pr()}getHitDetectionImage(){return Pr()}getPixelRatio(e){return 1}getImageState(){return Pr()}getImageSize(){return Pr()}getOrigin(){return Pr()}getSize(){return Pr()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=xh(e)}listenImageChange(e){Pr()}load(){Pr()}unlistenImageChange(e){Pr()}ready(){return Promise.resolve()}}class GB extends NB{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?Ui.LOADING:Ui.LOADED,this.imageState_===Ui.LOADING&&this.ready().then(()=>this.imageState_=Ui.LOADED),this.render()}clone(){const e=this.getScale(),t=new GB({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=qp.get(i,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=hl(s,s);this.draw_(o,a,e),r=a.canvas;const c=new bte(r,void 0,null,Ui.LOADED,null);qp.set(i,null,c),createImageBitmap(r).then(d=>{c.setImage(d)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const ie=r;r=o,o=ie}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),d=Math.sqrt(o*o-c*c),g=r-d,v=Math.sqrt(c*c+g*g),E=v/c;if(e==="miter"&&E<=i)return E*t;const I=t/2/E,U=t/2*(g/v),W=Math.sqrt((r+I)*(r+I)+U*U)-r;if(this.radius2_===void 0||e==="bevel")return W*2;const V=r*Math.sin(a),Y=Math.sqrt(r*r-V*V),ee=o-Y,re=Math.sqrt(V*V+ee*ee)
Line truncated
|
||||
`,""),n.push(e,""),n}function $be(n,e,t){return t%2===0&&(n+=e),n}class Hbe{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=of(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new SU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],d=this.pixelRatio,g=[c.scale[0]*d,c.scale[1]*d],v=c.justify?o6[c.justify]:m7(Array.isArray(e)?e[0]:e,c.textAlign||D5),E=r&&s.lineWidth?s.lineWidth:0,I=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(Vbe,[]),{width:U,height:F,widths:W,heights:V,lineWidths:Y}=fve(c,I),ee=U+E,oe=[],re=(ee+2)*g[0],ie=(F+E)*g[1],X={width:re<0?Math.floor(re):Math.ceil(re),height:ie<0?Math.floor(ie):Math.ceil(ie),contextInstructions:oe};(g[0]!=1||g[1]!=1)&&oe.push("scale",g),r&&(oe.push("strokeStyle",s.strokeStyle),oe.push("lineWidth",E),oe.push("lineCap",s.lineCap),oe.push("lineJoin",s.lineJoin),oe.push("miterLimit",s.miterLimit),oe.push("setLineDash",[s.lineDash]),oe.push("lineDashOffset",s.lineDashOffset)),i&&oe.push("fillStyle",a.fillStyle),oe.push("textBaseline","middle"),oe.push("textAlign","center");const ce=.5-v;let $=v*ee+ce*E;const ue=[],de=[];let be=0,me=0,xe=0,Pe=0,ke;for(let Qe=0,nt=I.length;Qe<nt;Qe+=2){const je=I[Qe];if(je===`
|
||||
`){me+=be,be=0,$=v*ee+ce*E,++Pe;continue}const Re=I[Qe+1]||c.font;Re!==ke&&(r&&ue.push("font",Re),i&&de.push("font",Re),ke=Re),be=Math.max(be,V[xe]);const Ne=[je,$+ce*W[xe]+v*(W[xe]-Y[Pe]),.5*(E+be)+me];$+=W[xe],r&&ue.push("strokeText",Ne),i&&de.push("fillText",Ne),++xe}return Array.prototype.push.apply(oe,ue),Array.prototype.push.apply(oe,de),this.labels_[o]=X,X}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,d,g,v,E,I,U,F,W){a*=E[0],c*=E[1];let V=i-a,Y=r-c;const ee=o+d>e?e-d:o,oe=s+g>t?t-g:s,re=U[3]+ee*E[0]+U[1],ie=U[0]+oe*E[1]+U[2],X=V-U[3],ce=Y-U[0];(F||v!==0)&&(Av[0]=X,hv[0]=X,Av[1]=ce,N1[1]=ce,N1[0]=X+re,G1[0]=N1[0],G1[1]=ce+ie,hv[1]=G1[1]);let $;return v!==0?($=Ig(rf(),i,r,1,1,v,-i,-r),Hu($,Av),Hu($,N1),Hu($,G1),Hu($,hv),cy(Math.min(Av[0],N1[0],G1[0],hv[0]),Math.min(Av[1],N1[1],G1[1],hv[1]),Math.max(Av[0],N1[0],G1[0],hv[0]),Math.max(Av[1],N1[1],G1[1],hv[1]),i2)):cy(Math.min(X,X+re),Math.min(ce,ce+ie),Math.max(X,X+re),Math.max(ce,ce+ie),i2),I&&(V=Math.round(V),Y=Math.round(Y)),{drawImageX:V,drawImageY:Y,drawImageW:ee,drawImageH:oe,originX:d,originY:g,declutterBox:{minX:i2[0],minY:i2[1],maxX:i2[2],maxY:i2[3],value:W},canvasTransform:$,scale:E}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),d=r.declutterBox,g=a?a[2]*r.scale[0]/2:0;return d.minX-g<=t[0]&&d.maxX+g>=0&&d.minY-g<=t[1]&&d.maxY+g>=0&&(c&&this.replayTextBackground_(e,Av,N1,G1,hv,s,a),pve(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=Hu(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,d=m7(Array.isArray(e)?e[0]:e,o.textAlign||D5),g=o6[o.textBaseline||e6],v=a&&a.lineWidth?a.lineWidth:0,E=s.width/c-2*o.scale[0],I=d*E+2*(.5-d)*v,U=g*s.height/c+2*(.5-g)*v;return{label:s,anchorX:I,anchorY:U}}execute_(e,t,i,r,o,s,a,c){const d=this.zIndexContext_;let g;this.pixelCoordinates_&&nb(i,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=Nv(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),c1e(this.renderedTransform_,i));let v=0;const E=r.length;let I=0,U;const F=[];let W,V,Y,ee,oe,re,ie,X,ce,$,ue,de,be,me=0,xe=0;const Pe=this.coordinateCache_,ke=this.viewRotation_,Qe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,nt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ke},je=this.instructions!=r||this.overlaps?0:200;let Re,Ne,lt,Ke;for(;v<E;){const Xe=r[v];switch(Xe[0]){case rr.BEGIN_GEOMETRY:Re=Xe[1],Ke=Xe[3],Re.getGeometry()?a!==void 0&&!Vl(a,Ke.getExtent())?v=Xe[2]+1:++v:v=Xe[2],d&&(d.zIndex=Xe[4]);break;case rr.BEGIN_PATH:me>je&&(this.fill_(e),me=0),xe>je&&(e.stroke(),xe=0),!me&&!xe&&(e.beginPath(),oe=NaN,re=NaN),++v;break;case rr.CIRCLE:I=Xe[1],Y=Xe[2]??0;const Ct=g[I],It=g[I+1],Le=g[I+2]-Y,Ie=g[I+3]-Y,Ce=Le-Ct,it=Ie-It,pt=Math.sqrt(Ce*Ce+it*it);e.moveTo(Ct+pt,It),e.arc(Ct,It,pt,0,2*Math.PI,!0),++v;break;case rr.CLOSE_PATH:e.closePath(),++v;break;case rr.CUSTOM:I=Xe[1],U=Xe[2];const Ve=Xe[3],St=Xe[4],Bt=Xe[5];nt.geometry=Ve,nt.feature=Re,v in Pe||(Pe[v]=[]);const _t=Pe[v];Bt?Bt(g,I,U,2,_t):(_t[0]=g[I],_t[1]=g[I+1],_t.length=2),d&&(d.zIndex=Xe[6]),St(_t,nt),++v;break;case rr.DRAW_IMAGE:I=Xe[1],U=Xe[2],ce=Xe[3],W=Xe[4],V=Xe[5];let Jt=Xe[6];const un=Xe[7],Pn=Xe[8],Jn=Xe[9],Un=Xe[10];let Sn=Xe[11];const Qn=Xe[12];let On=Xe[13];ee=Xe[14]||"declutter";const vn=Xe[15];if(!ce&&Xe.length>=20){$=Xe[19],ue=Xe[20],de=Xe[21],be=Xe[22];const Fi=this.drawLabelWithPointPlacement_($,ue,de,be);ce=Fi.label,Xe[3]=ce;const ls=Xe[23];W=(Fi.anchorX-ls)*this.pixelRatio,Xe[4]=W;const so=Xe[24];V=(Fi.anchorY-so)*this.pixelRatio,Xe[5]=V,Jt=ce.height,Xe[6]=Jt,On=ce.width,Xe[13]=On}let vt;Xe.length>25&&(vt=Xe[25]);let Se,Ae,fe;Xe.length>17?(Se=Xe[16],Ae=Xe[17],fe=Xe[18]):(Se=yC,Ae=null,fe=null),Un&&Qe?Sn+=ke:!Un&&!Qe&&(Sn-=ke);let ze=0;for(;I<U;I+=2){if(vt&&vt[ze++]<On/this.pixelRatio)continue;const Fi=this.calculateImageOrLabelDimensions_(ce.width,ce.height,g[I],g[I+1],On,Jt,W,V,Pn,Jn,Sn,Qn,o,Se,!!Ae||!!fe,Re),ls=[e,t,ce,Fi,un,Ae,fe];if(c){let so,zo,ao;if(vn){const ln=U-I;if(!vn[ln]){vn[ln]={args:ls,declutterMode:ee};continue}const Ur=vn[ln];so=Ur.args,zo=Ur.declutterMode,delete vn[ln],ao=sG(so)}let xo,sr;if(so&&(zo!=="declutter"||!c.collides(ao))&&(xo=!0),(ee!=="declutter"||!c.collides(Fi.declutterBox))&&(sr=!0),zo==="declutter"&&ee==="declutte
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(rne(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class ICe extends ZB{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:TCe,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass!==void 0?e.tileClass:Kte,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!bh(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||bh(t,e)))return this.tileGrid;const i=Wr(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=OU(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),d=c?this.tileUrlFunction(c,r,o):void 0,g=new this.tileClass(a,d!==void 0?ai.IDLE:ai.EMPTY,d!==void 0?d:"",{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return g.key=s,g.addEventListener(Br.CHANGE,this.handleTileChange.bind(this)),g}getTile(e,t,i,r,o,s){const a=this.getProjection();if(!a||!o||bh(a,o))return this.getTileInternal(e,t,i,r,a||o);const c=[e,t,i],d=this.getKey(),g=this.getTileGridForProjection(a),v=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(c,o),I=new Nte(a,g,o,v,c,E,this.getTilePixelRatio(r),this.getGutter(),(U,F,W,V)=>this.getTileInternal(U,F,W,V,a,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return I.key=d,I}getTileInternal(e,t,i,r,o,s){const a=this.getKey(),c=iE(this,a,e,t,i);if(s&&s.containsKey(c))return s.get(c);const d=this.createTile_(e,t,i,r,o,a);return s?.set(c,d),d}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Us(e);if(i){const r=Wr(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function TCe(n,e){if(_h){const t=n.getCrossOrigin();let i="same-origin",r="same-origin";t==="anonymous"||t===""?(i="cors",r="omit"):t==="use-credentials"&&(i="cors",r="include");const o={mode:i,credentials:r,referrerPolicy:n.getReferrerPolicy()};fetch(e,o).then(s=>{if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.blob()}).then(s=>createImageBitmap(s)).then(s=>{const a=n.getImage();a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0),s.close?.(),a.dispatchEvent(new Event("load"))}).catch(()=>{n.getImage().dispatchEvent(new Event("error"))});return}n.getImage().src=e}class sne extends ICe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Us("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)gCe(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Us("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const d=Uw(t,i);r=Pee(e.bounds,d)}const o=HB(i),s=e.minzoom||0,a=e.maxzoom||22,c=IU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=rne(e.tiles,c),e.attribution&&!this.getAttributions()){const d=r!==void 0?r:o;this.setAttributions(function(g){return Vl(d,g.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}let kCe=!1;function ane(n,e,t,i,r,o,s){const a=new XMLHttpRequest;a.open("GET",typeof n=="function"?n(t,i,r):n,!0),e.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=k
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function WCe(n,e){const t=hne(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let QCe=class extends Dw{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=GCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=WCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const d=c*a,g=[];for(let v=0,E=r.length;v<E;++v)g.push(r[v].slice(d,d+a));this.workers_[c].postMessage({buffers:g,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},g)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,d=a*s;i.set(new Uint8ClampedArray(c),d),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const pG={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class mG extends a0{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class PU extends Ane{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=VCe(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(Br.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Bee(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:rf(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:YCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:rf(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Wr(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof o3?a:a.getSource();if(!c)continue;const d=c.getAttributions()?.(i);typeof d=="string"?r.push(d):d!==void 0&&r.push(...d)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new QCe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=ep(e);r.size[0]=Math.ceil(Jo(e)/t),r.size[1]=Math.ceil(ec(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!Ay(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameSta
Line truncated
|
||||
`){me+=be,be=0,$=v*ee+ce*E,++Pe;continue}const Re=I[Qe+1]||c.font;Re!==ke&&(r&&ue.push("font",Re),i&&de.push("font",Re),ke=Re),be=Math.max(be,V[xe]);const Ne=[je,$+ce*W[xe]+v*(W[xe]-Y[Pe]),.5*(E+be)+me];$+=W[xe],r&&ue.push("strokeText",Ne),i&&de.push("fillText",Ne),++xe}return Array.prototype.push.apply(oe,ue),Array.prototype.push.apply(oe,de),this.labels_[o]=X,X}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,d,g,v,E,I,U,F,W){a*=E[0],c*=E[1];let V=i-a,Y=r-c;const ee=o+d>e?e-d:o,oe=s+g>t?t-g:s,re=U[3]+ee*E[0]+U[1],ie=U[0]+oe*E[1]+U[2],X=V-U[3],ce=Y-U[0];(F||v!==0)&&(Av[0]=X,hv[0]=X,Av[1]=ce,N1[1]=ce,N1[0]=X+re,G1[0]=N1[0],G1[1]=ce+ie,hv[1]=G1[1]);let $;return v!==0?($=Ig(of(),i,r,1,1,v,-i,-r),Hu($,Av),Hu($,N1),Hu($,G1),Hu($,hv),cy(Math.min(Av[0],N1[0],G1[0],hv[0]),Math.min(Av[1],N1[1],G1[1],hv[1]),Math.max(Av[0],N1[0],G1[0],hv[0]),Math.max(Av[1],N1[1],G1[1],hv[1]),i2)):cy(Math.min(X,X+re),Math.min(ce,ce+ie),Math.max(X,X+re),Math.max(ce,ce+ie),i2),I&&(V=Math.round(V),Y=Math.round(Y)),{drawImageX:V,drawImageY:Y,drawImageW:ee,drawImageH:oe,originX:d,originY:g,declutterBox:{minX:i2[0],minY:i2[1],maxX:i2[2],maxY:i2[3],value:W},canvasTransform:$,scale:E}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),d=r.declutterBox,g=a?a[2]*r.scale[0]/2:0;return d.minX-g<=t[0]&&d.maxX+g>=0&&d.minY-g<=t[1]&&d.maxY+g>=0&&(c&&this.replayTextBackground_(e,Av,N1,G1,hv,s,a),pve(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=Hu(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,d=m7(Array.isArray(e)?e[0]:e,o.textAlign||D5),g=o6[o.textBaseline||e6],v=a&&a.lineWidth?a.lineWidth:0,E=s.width/c-2*o.scale[0],I=d*E+2*(.5-d)*v,U=g*s.height/c+2*(.5-g)*v;return{label:s,anchorX:I,anchorY:U}}execute_(e,t,i,r,o,s,a,c){const d=this.zIndexContext_;let g;this.pixelCoordinates_&&nb(i,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=Nv(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),c1e(this.renderedTransform_,i));let v=0;const E=r.length;let I=0,U;const F=[];let W,V,Y,ee,oe,re,ie,X,ce,$,ue,de,be,me=0,xe=0;const Pe=this.coordinateCache_,ke=this.viewRotation_,Qe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,nt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ke},je=this.instructions!=r||this.overlaps?0:200;let Re,Ne,lt,Ke;for(;v<E;){const Xe=r[v];switch(Xe[0]){case rr.BEGIN_GEOMETRY:Re=Xe[1],Ke=Xe[3],Re.getGeometry()?a!==void 0&&!Vl(a,Ke.getExtent())?v=Xe[2]+1:++v:v=Xe[2],d&&(d.zIndex=Xe[4]);break;case rr.BEGIN_PATH:me>je&&(this.fill_(e),me=0),xe>je&&(e.stroke(),xe=0),!me&&!xe&&(e.beginPath(),oe=NaN,re=NaN),++v;break;case rr.CIRCLE:I=Xe[1],Y=Xe[2]??0;const Ct=g[I],It=g[I+1],Le=g[I+2]-Y,Ie=g[I+3]-Y,Ce=Le-Ct,it=Ie-It,pt=Math.sqrt(Ce*Ce+it*it);e.moveTo(Ct+pt,It),e.arc(Ct,It,pt,0,2*Math.PI,!0),++v;break;case rr.CLOSE_PATH:e.closePath(),++v;break;case rr.CUSTOM:I=Xe[1],U=Xe[2];const Ve=Xe[3],St=Xe[4],Bt=Xe[5];nt.geometry=Ve,nt.feature=Re,v in Pe||(Pe[v]=[]);const _t=Pe[v];Bt?Bt(g,I,U,2,_t):(_t[0]=g[I],_t[1]=g[I+1],_t.length=2),d&&(d.zIndex=Xe[6]),St(_t,nt),++v;break;case rr.DRAW_IMAGE:I=Xe[1],U=Xe[2],ce=Xe[3],W=Xe[4],V=Xe[5];let Jt=Xe[6];const un=Xe[7],Pn=Xe[8],Jn=Xe[9],Un=Xe[10];let Sn=Xe[11];const Qn=Xe[12];let On=Xe[13];ee=Xe[14]||"declutter";const vn=Xe[15];if(!ce&&Xe.length>=20){$=Xe[19],ue=Xe[20],de=Xe[21],be=Xe[22];const Fi=this.drawLabelWithPointPlacement_($,ue,de,be);ce=Fi.label,Xe[3]=ce;const ls=Xe[23];W=(Fi.anchorX-ls)*this.pixelRatio,Xe[4]=W;const so=Xe[24];V=(Fi.anchorY-so)*this.pixelRatio,Xe[5]=V,Jt=ce.height,Xe[6]=Jt,On=ce.width,Xe[13]=On}let vt;Xe.length>25&&(vt=Xe[25]);let Se,Ae,fe;Xe.length>17?(Se=Xe[16],Ae=Xe[17],fe=Xe[18]):(Se=yC,Ae=null,fe=null),Un&&Qe?Sn+=ke:!Un&&!Qe&&(Sn-=ke);let ze=0;for(;I<U;I+=2){if(vt&&vt[ze++]<On/this.pixelRatio)continue;const Fi=this.calculateImageOrLabelDimensions_(ce.width,ce.height,g[I],g[I+1],On,Jt,W,V,Pn,Jn,Sn,Qn,o,Se,!!Ae||!!fe,Re),ls=[e,t,ce,Fi,un,Ae,fe];if(c){let so,zo,ao;if(vn){const ln=U-I;if(!vn[ln]){vn[ln]={args:ls,declutterMode:ee};continue}const Ur=vn[ln];so=Ur.args,zo=Ur.declutterMode,delete vn[ln],ao=sG(so)}let xo,sr;if(so&&(zo!=="declutter"||!c.collides(ao))&&(xo=!0),(ee!=="declutter"||!c.collides(Fi.declutterBox))&&(sr=!0),zo==="declutter"&&ee==="declutte
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(rne(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class ICe extends ZB{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:TCe,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass!==void 0?e.tileClass:Kte,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!bh(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||bh(t,e)))return this.tileGrid;const i=Wr(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=OU(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),d=c?this.tileUrlFunction(c,r,o):void 0,g=new this.tileClass(a,d!==void 0?ai.IDLE:ai.EMPTY,d!==void 0?d:"",{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return g.key=s,g.addEventListener(Br.CHANGE,this.handleTileChange.bind(this)),g}getTile(e,t,i,r,o,s){const a=this.getProjection();if(!a||!o||bh(a,o))return this.getTileInternal(e,t,i,r,a||o);const c=[e,t,i],d=this.getKey(),g=this.getTileGridForProjection(a),v=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(c,o),I=new Nte(a,g,o,v,c,E,this.getTilePixelRatio(r),this.getGutter(),(U,F,W,V)=>this.getTileInternal(U,F,W,V,a,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return I.key=d,I}getTileInternal(e,t,i,r,o,s){const a=this.getKey(),c=iE(this,a,e,t,i);if(s&&s.containsKey(c))return s.get(c);const d=this.createTile_(e,t,i,r,o,a);return s?.set(c,d),d}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Us(e);if(i){const r=Wr(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function TCe(n,e){if(_h){const t=n.getCrossOrigin();let i="same-origin",r="same-origin";t==="anonymous"||t===""?(i="cors",r="omit"):t==="use-credentials"&&(i="cors",r="include");const o={mode:i,credentials:r,referrerPolicy:n.getReferrerPolicy()};fetch(e,o).then(s=>{if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.blob()}).then(s=>createImageBitmap(s)).then(s=>{const a=n.getImage();a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0),s.close?.(),a.dispatchEvent(new Event("load"))}).catch(()=>{n.getImage().dispatchEvent(new Event("error"))});return}n.getImage().src=e}class sne extends ICe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Us("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)gCe(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Us("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const d=Uw(t,i);r=Pee(e.bounds,d)}const o=HB(i),s=e.minzoom||0,a=e.maxzoom||22,c=IU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=rne(e.tiles,c),e.attribution&&!this.getAttributions()){const d=r!==void 0?r:o;this.setAttributions(function(g){return Vl(d,g.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}let kCe=!1;function ane(n,e,t,i,r,o,s){const a=new XMLHttpRequest;a.open("GET",typeof n=="function"?n(t,i,r):n,!0),e.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=k
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function WCe(n,e){const t=hne(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let QCe=class extends Dw{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=GCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=WCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const d=c*a,g=[];for(let v=0,E=r.length;v<E;++v)g.push(r[v].slice(d,d+a));this.workers_[c].postMessage({buffers:g,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},g)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,d=a*s;i.set(new Uint8ClampedArray(c),d),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const pG={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class mG extends a0{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class PU extends Ane{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=VCe(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(Br.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Bee(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:of(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:YCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:of(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Wr(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof o3?a:a.getSource();if(!c)continue;const d=c.getAttributions()?.(i);typeof d=="string"?r.push(d):d!==void 0&&r.push(...d)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new QCe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=ep(e);r.size[0]=Math.ceil(Jo(e)/t),r.size[1]=Math.ceil(ec(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!Ay(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameSta
Line truncated
|
||||
`),r=i_e.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
|
||||
`),t+=i[o].split("").join(r);return t}return n}let C7;function pne(){return C7||(C7=XB(1,1).getContext("2d")),C7}function r_e(n,e){if(/\d+ \d+/.test(n)){const[t,i]=n.split(" ").map(Number);return t<=e&&e<=i}return n==e}function iC(n,e){return pne().measureText(n).width+(n.length-1)*e}const u6={};uC.on("propertychange",()=>{for(const n in u6)delete u6[n]});function _R(n,e,t,i){if(n.indexOf(`
|
||||
`)!==-1){const s=n.split(`
|
||||
`),a=[];for(let c=0,d=s.length;c<d;++c)a.push(_R(s[c],e,t,i));return a.join(`
|
||||
`)}const r=t+","+e+","+n+","+i;let o=u6[r];if(!o){const s=n.split(" ");if(s.length>1){const a=pne();a.font=e;const d=a.measureText("M").width*t;let g="";const v=[];for(let E=0,I=s.length;E<I;++E){const U=s[E],F=g+(g?" ":"")+U;iC(F,i)<=d?g=F:(g&&v.push(g),g=U)}g&&v.push(g);for(let E=0,I=v.length;E<I&&I>1;++E){const U=v[E];if(iC(U,i)<d*.35){const F=E>0?iC(v[E-1],i):1/0,W=E<I-1?iC(v[E+1],i):1/0;v.splice(E,1),I-=1,F<W?(v[E-1]+=" "+U,E-=1):v[E]=U+" "+v[E]}}for(let E=0,I=v.length-1;E<I;++E){const U=v[E],F=v[E+1];if(iC(U,i)>d*.7&&iC(F,i)<d*.6){const W=U.split(" "),V=W.pop();iC(V,i)<d*.2&&(v[E]=W.join(" "),v[E+1]=V+" "+F),I-=1}}o=v.join(`
|
||||
`)}else o=n;o=CR(o,i),u6[r]=o}return o}const o_e=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],MG={};function s_e(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){if(_h)return n;let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in MG)continue;MG[o]=!0;const a=bR(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(o_e.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(g=>g.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&r_e(g.weight,a)&&g.style===c)){const g=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+g+'"]')){const v=document.createElement("link");v.href=g,v.rel="stylesheet",document.head.appendChild(v)}}}})(),n}const a_e={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},l_e={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},SG=function(n,e){let t=nN(n,e);if(t.result==="error"){const i=oE(n);i!==n&&(t=nN(i,e))}if(t.result==="error"){const i=t.value[0];return console.error("Error parsing expression:",n,i.key,i.message),{evaluate:()=>e.default}}return t.value};let HM,_7;function _i(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||xu)[t];const d=aN[`${e}_${n.type}`]&&aN[`${e}_${n.type}`][t];c===void 0&&d&&(c=d.default);let g=RM(c);if(!g&&eE(c)&&(c=oN(c,d),g=!0),g){const v=SG(c,d);a[t]=v.evaluate.bind(v)}else{const v=d?d.type:typeof c;(v==="color"||v==="colorArray")&&(c=Ol.parse(c));let E=!1;if(v==="array")for(let I=0;I<c.length;++I){const U=c[I];if(RM(U)||eE(U)){E=!0;break}}if(E){const I=Object.assign({},d,{type:d.value}),U=[];for(let F=0;F<c.length;++F){let W=c[F];if(!RM(W)&&eE(W)&&(W=oN(W,I)),RM(W)){const V=SG(W,I);U.push(V.evaluate.bind(V))}else U.push(function(){return W})}a[t]=function(F,W,V){const Y=[];for(let ee=0;ee<U.length;++ee)Y[ee]=U[ee](F,W,V);return Y}}else a[t]=function(){return c}}}return a[t](pd,i,o)}function EG(n,e,t,i){return _i(n,"layout",`${t}-allow-overlap`,e,i)?_i(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function u_e(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=H0e(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](pd,t)}function yv(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const c_e=/\{[^{}}]*\}/g;function x7(n,e){return n.replace(c_e,function(t){return e[t.slice(1,-1)]||""})}function BG(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const A_e={};function h_e(n,e,t,i=e0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.schema)for(const ee in e.schema){const oe=e.schema[ee];"default"in oe&&(kU[ee]=oe.default)}if(e.version!=8)throw new Error("glStyle version 8 required.");A_e[e_e(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const ee in o){const oe=o[ee];Ix(()=>oe).then(async re=>{let ie;if(typeof Image<"u"){const X=new Image;if(typeof re=="string")X.crossOrigin="anonymous",X.src=re;else{let ce;re instanceof Request?ce=await fetch(re):re instanceof Response&&(ce=re);const $=await ce.blob();ie=URL.createObjectURL($),X.src=ie}X.addEventListener("load",function ce(){X.removeEventListener("load",ce),c[ee]={image:X,size:[X.width,X.height]},n.changed(),ie&&URL.revokeObjectURL(ie)}),X.addEventListener("error",function ce(){URL.revokeObjectURL(ie),X.removeEventListener("error",ce)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const X=self;X.postMessage({action:"loadImage",src:re}),X.addEventListener("message",function($){$.data.action==="imageLoaded"&&$.data.src===re&&(c[ee]={image:$.data.image,size:[$.data.image.width,$.data.image.height]})})}})}const d=IJ(e.layers),g={},v=[],E={},I={},U=UU(e),F=t_e(e);let W;for(let ee=0,oe=d.length;ee<oe;++ee){const re=d[ee],ie=re.id;if(typeof t=="string"&&re.source==t||Array.isArray(t)&&t.indexOf(ie)!==-1){const X=re["source-layer"];if(W){if(re.source!==W)throw new Error(`Layer "${ie}" does not use source "${W}`)}else{W=re.source;const $=e.sources[W];if(!$)throw new Error(`Source "${W}" is not defined`);const ue=$.type;if(ue!=="vector"&&ue!=="geojson")throw newLine truncated
|
||||
`)}else o=n;o=CR(o,i),u6[r]=o}return o}const o_e=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],MG={};function s_e(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){if(_h)return n;let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in MG)continue;MG[o]=!0;const a=bR(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(o_e.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(g=>g.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&r_e(g.weight,a)&&g.style===c)){const g=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+g+'"]')){const v=document.createElement("link");v.href=g,v.rel="stylesheet",document.head.appendChild(v)}}}})(),n}const a_e={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},l_e={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},SG=function(n,e){let t=nN(n,e);if(t.result==="error"){const i=oE(n);i!==n&&(t=nN(i,e))}if(t.result==="error"){const i=t.value[0];return console.error("Error parsing expression:",n,i.key,i.message),{evaluate:()=>e.default}}return t.value};let HM,_7;function _i(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||xu)[t];const d=aN[`${e}_${n.type}`]&&aN[`${e}_${n.type}`][t];c===void 0&&d&&(c=d.default);let g=RM(c);if(!g&&eE(c)&&(c=oN(c,d),g=!0),g){const v=SG(c,d);a[t]=v.evaluate.bind(v)}else{const v=d?d.type:typeof c;(v==="color"||v==="colorArray")&&(c=Ol.parse(c));let E=!1;if(v==="array")for(let I=0;I<c.length;++I){const U=c[I];if(RM(U)||eE(U)){E=!0;break}}if(E){const I=Object.assign({},d,{type:d.value}),U=[];for(let F=0;F<c.length;++F){let W=c[F];if(!RM(W)&&eE(W)&&(W=oN(W,I)),RM(W)){const V=SG(W,I);U.push(V.evaluate.bind(V))}else U.push(function(){return W})}a[t]=function(F,W,V){const Y=[];for(let ee=0;ee<U.length;++ee)Y[ee]=U[ee](F,W,V);return Y}}else a[t]=function(){return c}}}return a[t](pd,i,o)}function EG(n,e,t,i){return _i(n,"layout",`${t}-allow-overlap`,e,i)?_i(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function u_e(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=H0e(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](pd,t)}function yv(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const c_e=/\{[^{}}]*\}/g;function x7(n,e){return n.replace(c_e,function(t){return e[t.slice(1,-1)]||""})}function BG(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const A_e={};function h_e(n,e,t,i=e0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.schema)for(const ee in e.schema){const oe=e.schema[ee];"default"in oe&&(kU[ee]=oe.default)}if(e.version!=8)throw new Error("glStyle version 8 required.");A_e[e_e(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const ee in o){const oe=o[ee];Ix(()=>oe).then(async re=>{let ie;if(typeof Image<"u"){const X=new Image;if(typeof re=="string")X.crossOrigin="anonymous",X.src=re;else{let ce;re instanceof Request?ce=await fetch(re):re instanceof Response&&(ce=re);const $=await ce.blob();ie=URL.createObjectURL($),X.src=ie}X.addEventListener("load",function ce(){X.removeEventListener("load",ce),c[ee]={image:X,size:[X.width,X.height]},n.changed(),ie&&URL.revokeObjectURL(ie)}),X.addEventListener("error",function ce(){URL.revokeObjectURL(ie),X.removeEventListener("error",ce)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const X=self;X.postMessage({action:"loadImage",src:re}),X.addEventListener("message",function($){$.data.action==="imageLoaded"&&$.data.src===re&&(c[ee]={image:$.data.image,size:[$.data.image.width,$.data.image.height]})})}})}const d=IJ(e.layers),g={},v=[],E={},I={},U=UU(e),F=t_e(e);let W;for(let ee=0,oe=d.length;ee<oe;++ee){const re=d[ee],ie=re.id;if(typeof t=="string"&&re.source==t||Array.isArray(t)&&t.indexOf(ie)!==-1){const X=re["source-layer"];if(W){if(re.source!==W)throw new Error(`Layer "${ie}" does not use source "${W}`)}else{W=re.source;const $=e.sources[W];if(!$)throw new Error(`Source "${W}" is not defined`);const ue=$.type;if(ue!=="vector"&&ue!=="geojson")throw newLine truncated
|
||||
`)return vt.push(`
|
||||
`,""),vt;if(de==2)return vt.push(CR(At,Sn),ze),vt;At=_R(At,ze,Qn,Sn).split(`
|
||||
`);for(let Ot=0,Dt=At.length;Ot<Dt;++Ot)Ot>0&&vt.push(`
|
||||
@@ -865,28 +865,28 @@ ${v}`),F].join(`
|
||||
${a}`)}return d})(n,"",0)}let xR=[],_ne=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?_ne:xR).push(t=t+n[e])})();function N_e(n){if(n<768)return!1;for(let e=0,t=xR.length;;){let i=e+t>>1;if(n<xR[i])t=i;else if(n>=_ne[i])e=i+1;else return!0;if(e==t)return!1}}function DG(n){return n>=127462&&n<=127487}const RG=8205;function G_e(n,e,t=!0,i=!0){return(t?xne:W_e)(n,e,i)}function xne(n,e,t){if(e==n.length)return e;e&&wne(n.charCodeAt(e))&&Mne(n.charCodeAt(e-1))&&e--;let i=S7(n,e);for(e+=PG(i);e<n.length;){let r=S7(n,e);if(i==RG||r==RG||t&&N_e(r))e+=PG(r),i=r;else if(DG(r)){let o=0,s=e-2;for(;s>=0&&DG(S7(n,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function W_e(n,e,t){for(;e>0;){let i=xne(n,e-2,t);if(i<e)return i;e--}return 0}function S7(n,e){let t=n.charCodeAt(e);if(!Mne(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return wne(i)?(t-55296<<10)+(i-56320)+65536:t}function wne(n){return n>=56320&&n<57344}function Mne(n){return n>=55296&&n<56320}function PG(n){return n<65536?1:2}class as{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Lx(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),cg.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Lx(this,e,t);let i=[];return this.decompose(e,t,i,0),cg.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new V4(this),o=new V4(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new V4(this,e)}iterRange(e,t=this.length){return new Sne(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ene(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?as.empty:e.length<=32?new _u(e):cg.from(_u.split(e,[]))}}class _u extends as{constructor(e,t=Q_e(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?i:a)>=e)return new q_e(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let o=e<=0&&t>=this.length?this:new _u(LG(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=aE(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new _u(a,s.length+o.length));else{let c=a.length>>1;i.push(new _u(a.slice(0,c)),new _u(a.slice(c)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof _u))return super.replace(e,t,i);[e,t]=Lx(this,e,t);let r=aE(this.text,aE(i.text,LG(this.text,0,e)),t),o=this.length+i.length-(t-e);return r.length<=32?new _u(r,o):cg.from(_u.split(r,[]),o)}sliceString(e,t=this.length,i=`
|
||||
`){[e,t]=Lx(this,e,t);let r="";for(let o=0,s=0;o<=t&&s<this.text.length;s++){let a=this.text[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(t.push(new _u(i,r)),i=[],r=-1);return r>-1&&t.push(new _u(i,r)),t}}class cg extends as{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,c=i+s.lines-1;if((t?c:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let o=0,s=0;s<=t&&o<this.children.length;o++){let a=this.children[o],c=s+a.length;if(e<=c&&t>=s){let d=r&((s<=e?1:0)|(c>=t?2:0));s>=e&&c<=t&&!d?i.push(a):a.decompose(e-s,t-s,i,d)}s=c+1}}replace(e,t,i){if([e,t]=Lx(this,e,t),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&t<=a){let c=s.replace(e-o,t-o,i),d=this.lines-s.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let g=this.children.slice();return g[r]=c,new cg(g,this.length-(t-e)+i.length)}return super.replace(o,a,c)}o=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
||||
`){[e,t]=Lx(this,e,t);let r="";for(let o=0,s=0;o<this.children.length&&s<=t;o++){let a=this.children[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof cg))return 0;let i=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return i;let c=this.children[r],d=e.children[o];if(c!=d)return i+c.scanIdentical(d,t);i+=c.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let I of e)i+=I.lines;if(i<32){let I=[];for(let U of e)U.flatten(I);return new _u(I,t)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],c=0,d=-1,g=[];function v(I){let U;if(I.lines>o&&I instanceof cg)for(let F of I.children)v(F);else I.lines>s&&(c>s||!c)?(E(),a.push(I)):I instanceof _u&&c&&(U=g[g.length-1])instanceof _u&&I.lines+U.lines<=32?(c+=I.lines,d+=I.length+1,g[g.length-1]=new _u(U.text.concat(I.text),U.length+1+I.length)):(c+I.lines>r&&E(),c+=I.lines,d+=I.length+1,g.push(I))}function E(){c!=0&&(a.push(g.length==1?g[0]:cg.from(g,d)),d=-1,c=g.length=0)}for(let I of e)v(I);return E(),a.length==1?a[0]:new cg(a,t)}}as.empty=new _u([""],0);function Q_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function aE(n,e,t=0,i=1e9){for(let r=0,o=0,s=!0;o<n.length&&r<=i;o++){let a=n[o],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=c+1}return e}function LG(n,e,t){return aE(n,[""],e,t)}class V4{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof _u?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof _u?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
||||
`,this;e--}else if(r instanceof _u){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof _u?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Sne{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new V4(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ene{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(as.prototype[Symbol.iterator]=function(){return this.iter()},V4.prototype[Symbol.iterator]=Sne.prototype[Symbol.iterator]=Ene.prototype[Symbol.iterator]=function(){return this});class q_e{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}}function Lx(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function hA(n,e,t=!0,i=!0){return G_e(n,e,t,i)}function Y_e(n){return n>=56320&&n<57344}function V_e(n){return n>=55296&&n<56320}function Jd(n,e){let t=n.charCodeAt(e);if(!V_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Y_e(i)?(t-55296<<10)+(i-56320)+65536:t}function KU(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Ag(n){return n<65536?1:2}const wR=/\r\n?|\n/;var Ad=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Ad||(Ad={}));class Og{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){MR(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new Og(e)}composeDesc(e){return this.empty?e:e.empty?this:Bne(this,e)}mapDesc(e,t=!1){return e.empty?this:SR(this,e,t)}mapPos(e,t=-1,i=Ad.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],d=r+a;if(c<0){if(d>e)return o+(e-r);o+=a}else{if(i!=Ad.Simple&&d>=e&&(i==Ad.TrackDel&&r<e&&d>e||i==Ad.TrackBefore&&r<e||i==Ad.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=d}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Og(e)}static create(e){return new Og(e)}}class Bc extends Og{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return MR(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return SR(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(as.empty);i.push(s?e.slice(o,o+s):as.empty)}o+=s}return new Bc(t,i)}compose(e){return this.empty?e:e.empty?this:Bne(this,e,!0)}map(e,t=!1){return e.empty?this:SR(this,e,t,!0)}iterChanges(e,t=!1){MR(this,e,t)}get desc
Line truncated
|
||||
`}get readOnly(){return this.facet(Lne)}phrase(e,...t){for(let i of this.facet(ss.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(Tne))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return o2e(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=hA(t,s,!1);if(o(t.slice(c,s))!=Al.Word)break;s=c}for(;a<r;){let c=hA(t,a);if(o(t.slice(a,c))!=Al.Word)break;a=c}return s==a?null:yn.range(s+i,a+i)}}ss.allowMultipleSelections=OR;ss.tabSize=Si.define({combine:n=>n.length?n[0]:4});ss.lineSeparator=kne;ss.readOnly=Lne;ss.phrases=Si.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});ss.languageData=Tne;ss.changeFilter=Dne;ss.transactionFilter=Rne;ss.transactionExtender=Pne;Yw.reconfigure=oo.define();function u0(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Vv{eq(e){return this==e}range(e,t=e){return kR.create(e,t,this)}}Vv.prototype.startSide=Vv.prototype.endSide=0;Vv.prototype.point=!1;Vv.prototype.mapMode=Ad.TrackDel;function jU(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let kR=class Fne{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Fne(e,t,i)}};function DR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class NU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,d=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return d>=0?s:a;d>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],g=this.from[c]+e,v=this.to[c]+e,E,I;if(g==v){let U=t.mapPos(g,d.startSide,d.mapMode);if(U==null||(E=I=U,d.startSide!=d.endSide&&(I=t.mapPos(g,d.endSide),I<E)))continue}else if(E=t.mapPos(g,d.startSide),I=t.mapPos(v,d.endSide),E>I||E==I&&d.startSide>0&&d.endSide<=0)continue;(I-E||d.endSide-d.startSide)<0||(s<0&&(s=E),d.point&&(a=Math.max(a,I-E)),i.push(d),r.push(E-s),o.push(I-s))}return{mapped:i.length?new NU(r,o,i,a):null,pos:s}}}class go{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new go(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(DR)),this.isEmpty)return t.length?go.of(t):this;let a=new zne(this,null,-1).goto(0),c=0,d=[],g=new dy;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let v=t[c++];g.addInner(v.from,v.to,v.value)||d.push(v)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&g.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(g.addInner(a.from,a.to,a.value)||d.push(kR.create(a.from,a.to,a.value))),a.next());return g.finishInner(this.nextLayer.isEmpty&&!d.length?go.empty:this.nextLayer.update({add:d,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],d=e.touchesRange(a,a+c.length);if(d===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(d===!0){let{mapped:g,pos:v}=c.map(a,e);g&&(r=Math.max(r,g.maxPoint),t.push(g),i.push(v))}}let o=this.nextLayer.map(e);return t.length==0?o:new go(i,t,o||go.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return j5.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return j5.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(v=>v.maxPoint>0
Line truncated
|
||||
`,this;e--}else if(r instanceof _u){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof _u?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Sne{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new V4(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ene{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(as.prototype[Symbol.iterator]=function(){return this.iter()},V4.prototype[Symbol.iterator]=Sne.prototype[Symbol.iterator]=Ene.prototype[Symbol.iterator]=function(){return this});class q_e{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}}function Lx(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function hA(n,e,t=!0,i=!0){return G_e(n,e,t,i)}function Y_e(n){return n>=56320&&n<57344}function V_e(n){return n>=55296&&n<56320}function ef(n,e){let t=n.charCodeAt(e);if(!V_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Y_e(i)?(t-55296<<10)+(i-56320)+65536:t}function KU(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Ag(n){return n<65536?1:2}const wR=/\r\n?|\n/;var Ad=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Ad||(Ad={}));class Og{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){MR(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new Og(e)}composeDesc(e){return this.empty?e:e.empty?this:Bne(this,e)}mapDesc(e,t=!1){return e.empty?this:SR(this,e,t)}mapPos(e,t=-1,i=Ad.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],d=r+a;if(c<0){if(d>e)return o+(e-r);o+=a}else{if(i!=Ad.Simple&&d>=e&&(i==Ad.TrackDel&&r<e&&d>e||i==Ad.TrackBefore&&r<e||i==Ad.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=d}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Og(e)}static create(e){return new Og(e)}}class Bc extends Og{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return MR(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return SR(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(as.empty);i.push(s?e.slice(o,o+s):as.empty)}o+=s}return new Bc(t,i)}compose(e){return this.empty?e:e.empty?this:Bne(this,e,!0)}map(e,t=!1){return e.empty?this:SR(this,e,t,!0)}iterChanges(e,t=!1){MR(this,e,t)}get desc
Line truncated
|
||||
`}get readOnly(){return this.facet(Lne)}phrase(e,...t){for(let i of this.facet(ss.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(Tne))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return o2e(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=hA(t,s,!1);if(o(t.slice(c,s))!=Al.Word)break;s=c}for(;a<r;){let c=hA(t,a);if(o(t.slice(a,c))!=Al.Word)break;a=c}return s==a?null:yn.range(s+i,a+i)}}ss.allowMultipleSelections=OR;ss.tabSize=Ei.define({combine:n=>n.length?n[0]:4});ss.lineSeparator=kne;ss.readOnly=Lne;ss.phrases=Ei.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});ss.languageData=Tne;ss.changeFilter=Dne;ss.transactionFilter=Rne;ss.transactionExtender=Pne;Yw.reconfigure=oo.define();function u0(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Vv{eq(e){return this==e}range(e,t=e){return kR.create(e,t,this)}}Vv.prototype.startSide=Vv.prototype.endSide=0;Vv.prototype.point=!1;Vv.prototype.mapMode=Ad.TrackDel;function jU(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let kR=class Fne{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Fne(e,t,i)}};function DR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class NU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,d=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return d>=0?s:a;d>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],g=this.from[c]+e,v=this.to[c]+e,E,I;if(g==v){let U=t.mapPos(g,d.startSide,d.mapMode);if(U==null||(E=I=U,d.startSide!=d.endSide&&(I=t.mapPos(g,d.endSide),I<E)))continue}else if(E=t.mapPos(g,d.startSide),I=t.mapPos(v,d.endSide),E>I||E==I&&d.startSide>0&&d.endSide<=0)continue;(I-E||d.endSide-d.startSide)<0||(s<0&&(s=E),d.point&&(a=Math.max(a,I-E)),i.push(d),r.push(E-s),o.push(I-s))}return{mapped:i.length?new NU(r,o,i,a):null,pos:s}}}class go{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new go(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(DR)),this.isEmpty)return t.length?go.of(t):this;let a=new zne(this,null,-1).goto(0),c=0,d=[],g=new dy;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let v=t[c++];g.addInner(v.from,v.to,v.value)||d.push(v)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&g.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(g.addInner(a.from,a.to,a.value)||d.push(kR.create(a.from,a.to,a.value))),a.next());return g.finishInner(this.nextLayer.isEmpty&&!d.length?go.empty:this.nextLayer.update({add:d,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],d=e.touchesRange(a,a+c.length);if(d===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(d===!0){let{mapped:g,pos:v}=c.map(a,e);g&&(r=Math.max(r,g.maxPoint),t.push(g),i.push(v))}}let o=this.nextLayer.map(e);return t.length==0?o:new go(i,t,o||go.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return j5.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return j5.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(v=>v.maxPoint>0
Line truncated
|
||||
`)}static newName(){let e=NG[jG]||1;return NG[jG]=e+1,LR+e.toString(36)}static mount(e,t,i){let r=e[UR],o=i&&i.nonce;r?o&&r.setNonce(o):r=new a2e(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let GG=new Map;class a2e{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=GG.get(i);if(o)return e[UR]=o;this.sheet=new r.CSSStyleSheet,GG.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[UR]=this}mount(e,t){let i=this.sheet,r=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],c=this.modules.indexOf(a);if(c<o&&c>-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,a),i)for(let d=0;d<a.rules.length;d++)i.insertRule(a.rules[d],r++)}else{for(;o<c;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
|
||||
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Hv={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},N5={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},l2e=typeof navigator<"u"&&/Mac/.test(navigator.platform),u2e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var UA=0;UA<10;UA++)Hv[48+UA]=Hv[96+UA]=String(UA);for(var UA=1;UA<=24;UA++)Hv[UA+111]="F"+UA;for(var UA=65;UA<=90;UA++)Hv[UA]=String.fromCharCode(UA+32),N5[UA]=String.fromCharCode(UA);for(var B7 in Hv)N5.hasOwnProperty(B7)||(N5[B7]=Hv[B7]);function c2e(n){var e=l2e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||u2e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?N5:Hv)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function ba(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}e++}for(;e<arguments.length;e++)jne(n,arguments[e]);return n}function jne(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)jne(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let ud=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},KR=typeof document<"u"?document:{documentElement:{style:{}}};const FR=/Edge\/(\d+)/.exec(ud.userAgent),Nne=/MSIE \d/.test(ud.userAgent),zR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ud.userAgent),eO=!!(Nne||zR||FR),WG=!eO&&/gecko\/(\d+)/i.test(ud.userAgent),O7=!eO&&/Chrome\/(\d+)/.exec(ud.userAgent),QG="webkitFontSmoothing"in KR.documentElement.style,jR=!eO&&/Apple Computer/.test(ud.vendor),qG=jR&&(/Mobile\/\w+/.test(ud.userAgent)||ud.maxTouchPoints>2);var Oi={mac:qG||/Mac/.test(ud.platform),windows:/Win/.test(ud.platform),linux:/Linux|X11/.test(ud.platform),ie:eO,ie_version:Nne?KR.documentMode||6:zR?+zR[1]:FR?+FR[1]:0,gecko:WG,gecko_version:WG?+(/Firefox\/(\d+)/.exec(ud.userAgent)||[0,0])[1]:0,chrome:!!O7,chrome_version:O7?+O7[1]:0,ios:qG,android:/Android\b/.test(ud.userAgent),webkit:QG,webkit_version:QG?+(/\bAppleWebKit\/(\d+)/.exec(ud.userAgent)||[0,0])[1]:0,safari:jR,safari_version:jR?+(/\bVersion\/(\d+(\.\d+)?)/.exec(ud.userAgent)||[0,0])[1]:0,tabSize:KR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function GU(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const h6=Object.create(null);function WU(n,e,t){if(n==e)return!0;n||(n=h6),e||(e=h6);let i=Object.keys(n),r=Object.keys(e);if(i.length-0!=r.length-0)return!1;for(let o of i)if(o!=t&&(r.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function A2e(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function YG(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function h2e(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class vy{eq(e){return!1}updateDOM(e,t,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var zA=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(zA||(zA={}));class wr extends Vv{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static
Line truncated
|
||||
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),d=n.visualLineSide(r,!t)}if(c){if(!c(g))return a}else{if(!i)return d;c=i(g)}a=d}}function J2e(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==Al.Space&&(r=s),r==s}}function exe(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return yn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),d=n.coordsAtPos(r,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),g=n.documentTop;if(d)s==null&&(s=d.left-c.left),a=o<0?d.top:d.bottom;else{let U=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-U.from))),a=(o<0?U.top:U.bottom)+g}let v=c.left+s,E=n.viewState.heightOracle.textHeight>>1,I=i??E;for(let U=0;;U+=E){let F=a+(I+U)*o,W=$R(n,{x:v,y:F},!1,o);if(t?F>c.bottom:F<c.top)return yn.cursor(W.pos,W.assoc);let V=n.coordsAtPos(W.pos,W.assoc),Y=V?(V.top+V.bottom)/2:0;if(!V||(t?Y>a:Y<a))return yn.cursor(W.pos,W.assoc,void 0,s)}}function X4(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function gie(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=X4(n,r.from,0);s!=r.from&&(o=yn.cursor(s,-1))}else{let s=X4(n,r.from,-1),a=X4(n,r.to,1);(s!=r.from||a!=r.to)&&(r.undirectional?o=yn.undirectionalRange(r.from,r.to):o=yn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?yn.create(t,e.mainIndex):e}function R7(n,e,t){let i=X4(n.state.facet(Hw).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:yn.cursor(i,i<t.from?1:-1)}class hg{constructor(e,t){this.pos=e,this.assoc=t}}function $R(n,e,t,i){let r=n.contentDOM.getBoundingClientRect(),o=r.top+n.viewState.paddingTop,{x:s,y:a}=e,c=a-o,d;for(;;){if(c<0)return new hg(0,1);if(c>n.viewState.docHeight)return new hg(n.state.doc.length,-1);if(d=n.elementAtHeight(c),i==null)break;if(d.type==zA.Text){if(i<0?d.to<n.viewport.from:d.from>n.viewport.to)break;let E=n.docView.coordsAt(i<0?d.from:d.to,i>0?-1:1);if(E&&(i<0?E.top<=c+o:E.bottom>=c+o))break}let v=n.viewState.heightOracle.textHeight/2;c=i>0?d.bottom+v:d.top-v}if(n.viewport.from>=d.to||n.viewport.to<=d.from){if(t)return null;if(d.type==zA.Text){let v=Z2e(n,r,d,s,a);return new hg(v,v==d.from?1:-1)}}if(d.type!=zA.Text)return c<(d.top+d.bottom)/2?new hg(d.from,1):new hg(d.to,-1);let g=n.docView.lineAt(d.from,2);return(!g||g.length!=d.length)&&(g=n.docView.lineAt(d.from,-2)),new txe(n,s,a,n.textDirectionAt(d.from)).scanTile(g,d.from)}class txe{constructor(e,t,i,r){this.view=e,this.x=t,this.y=i,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[yg.find(r,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[yg.find(r,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:r}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+r.from<t)}scan(e,t,i=!1){let r=0,o=e.length-1,s=new Set,a=this.bidiIn(e[0],e[o]),c,d,g=-1,v=1e9,E;e:for(;r<o;){let U=o-r,F=r+o>>1;t:if(s.has(F)){let V=r+Math.floor(Math.random()*U);for(let Y=0;Y<U;Y++){if(!s.has(V)){F=V;break t}V++,V==o&&(V=r)}break e}s.add(F);let W=t(F);if(W)for(let V=0;V<W.length;V++){let Y=W[V],ee=0;if(!(Y.width==0&&W.length>1)){if(Y.bottom<this.y)(!c||c.bottom<Y.bottom)&&(c=Y),ee=1;else if(Y.top>this.y)(!d||d.top>Y.top)&&(d=Y),ee=-1;else{let oe=Y.left>this.x?this.x-Y.left:Y.right<this.x?this.x-Y.right:0,re=Math.abs(oe);re<v&&(g=F,v=re,E=Y),oe&&(ee=oe<0==(this.baseDir==xa.LTR)?-1:1)}ee==-1&&(!a||this.baseDirAt(e[F],1))?o=F:ee==1&&(!a||this.baseDirAt(e[F+1],-1))&&(r=F+1)}}}if(!E){if(!d&&!c)return{i:e[0],after:!1};let U=c&&(!d||this.y-c.bottom<d.top-this.y)?c:d;return this.y=(U.top+U.bottom)/2,this.scan(e,t,!0)}if(v&&!i){let{top:U,bottom:F}=E;if(c&&c.bottom>(U+U+F)/3)return this.y=c.bottom-1,this.scan(e,t,!0);if(d&&d.top<(U+F+F)/3)return this.y=d.top+1,this.scan(e,t,!0)}let I=(a?this.dirAt(e[g],1):this.baseDir)==xa.LTR;return{i:g,after:this.x>(E.left+E.right)/2==I}}scanText(e,t){let i=[];for(let o=0;o<e.length;o=hA(e.text,o))i.push(t+o);i.push(t+e.length);let r=this.scan(i,o=>{let s=i[o]-t,a=i[o+1]-t;return Q5(e.dom,s,a).getClientRects()});return r.after?new hg(i[r.i+1],-1):new hg(i[r.i],1)}scanTile(e,t){if(!e.length)return new hg(t,1);if(e.children.length==1){let a=e.children[0];if(a.isText())return this.scanText(a,t);if(a.isComposite())return this.scanTile(a,t)}let i=[t];for(let a=0,c=t;a<e.children.length;a++)i.push(c+=e.children[a].length);let r=this.scan(i,a=>{let c=e.children[a];return c.flags&48?null:(c.dom.nodeType==1?c.dom:Q5(c.dom,0,c.length)).getClientRects()}),o=e.children[r.i],s=i[r.i];return o.isText()?this.scanText(o,s):o.isComposite()?this.scanTile(o,s):r.after?new hg(i[r.i+1
Line truncated
|
||||
`&&n.lineWrapping&&(i&&(i=yn.single(i.main.anchor-1,i.main.head-1)),t={from:o.from,to:o.to,insert:as.of([" "])}),t)return ZU(n,t,i,s);if(i&&!y6(i,o)){let a=!1,c="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(a=!0),c=n.inputState.lastSelectionOrigin,c=="select.pointer"&&(i=gie(r.facet(Hw).map(d=>d(n)),i))),n.dispatch({selection:i,scrollIntoView:a,userEvent:c}),!0}else return!1}function ZU(n,e,t,i=-1){if(Oi.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(Oi.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&cx(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&cx(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&cx(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=sxe(n,e,t));return n.state.facet(oie).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function sxe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,d=c<0?o.from:o.to,g=X4(r.facet(Hw).map(v=>v(n)),d,c);e.from==g&&(s=g)}if(s>-1)i={changes:e,selection:yn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",d=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+d))}else{let c=r.changes(e),d=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=o.to+10&&e.to>=o.to-10){let g=n.state.sliceDoc(e.from,e.to),v,E=t&&mie(n,t.main.head);if(E){let U=e.insert.length-(e.to-e.from);v={from:E.from,to:E.to-U}}else v=n.state.doc.lineAt(o.head);let I=o.to-e.to;i=r.changeByRange(U=>{if(U.from==o.from&&U.to==o.to)return{changes:c,range:d||U.map(c)};let F=U.to-I,W=F-g.length;if(n.state.sliceDoc(W,F)!=g||F>=v.from&&W<=v.to)return{range:U};let V=r.changes({from:W,to:F,insert:e.insert}),Y=U.to-o.to;return{changes:V,range:d?yn.range(Math.max(0,d.anchor+Y),Math.max(0,d.head+Y)):U.map(V)}})}else i={changes:c,selection:d&&r.selection.replaceRange(d)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function bie(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function axe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new tW(t,i)),(r!=t||o!=i)&&e.push(new tW(r,o))),e}function lxe(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?yn.single(t+e,i+e):null}function y6(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class uxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Oi.safari&&e.contentDOM.addEventListener("input",()=>null),Oi.gecko&&Mxe(e.contentDOM.ownerDocument)}handleEvent(e){!yxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Axe(e),i=this.handlers,r=
Line truncated
|
||||
`))};if((Oi.mac||Oi.android)&&v.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(v={from:a,to:c,insert:as.of([i.text.replace("."," ")])}),this.pendingContextChange=v,!e.state.readOnly){let E=this.to-this.from+(v.to-v.from+v.insert.length);ZU(e,v,yn.single(this.toEditorPos(i.selectionStart,E),this.toEditorPos(i.selectionEnd,E)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),v.from<v.to&&!v.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),d=this.toEditorPos(o.rangeEnd);if(c<d){let g=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(wr.mark({attributes:{style:g}}).range(c,d))}}}e.dispatch({effects:cie.of(wr.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{let r=W5(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,d)=>{if(i)return;let g=d.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(d)){r=this.pendingContextChange=null,t+=g,this.to+=g;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=g,this.to+=g;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+d.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),d.toString()),this.to+=g}t+=g}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class xi{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM
Line truncated
|
||||
--\u2028\u2029\uFEFF-]`,tP),u3e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let U7=null;function c3e(){var n;if(U7==null&&typeof document<"u"&&document.body){let e=document.body.style;U7=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return U7||!1}const hE=Si.define({combine(n){let e=u0(n,{render:null,specialChars:l3e,addSpecialChars:null});return(e.replaceTabs=!c3e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,tP)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,tP)),e}});function A3e(n={}){return[hE.of(n),h3e()]}let xW=null;function h3e(){return xW||(xW=wu.fromClass(class{constructor(n){this.view=n,this.decorations=wr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(hE)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new a3e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=Jd(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=s3(s.text,a,i-s.from);return wr.replace({widget:new m3e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=wr.replace({widget:new p3e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(hE);n.startState.facet(hE)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const d3e="•";function f3e(n){return n>=32?d3e:n==10?"":String.fromCharCode(9216+n)}class p3e extends vy{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=f3e(this.code),i=e.state.phrase("Control character")+" "+(u3e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class m3e extends vy{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function g3e(){return v3e}const y3e=wr.line({class:"cm-activeLine"}),v3e=wu.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>e&&(t.push(y3e.range(r.from)),e=r.from)}return wr.set(t)}},{decorations:n=>n.decorations}),nP=2e3;function b3e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>nP||t.off>nP||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let d=n.doc.line(c);d.length<=a&&o.push(yn.range(d.from+s,d.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let d=n.doc.line(c),g=PR(d.text,s,n.tabSize,!0);if(g<0)o.push(yn.cursor(d.to));else{let v=PR(d.text,a,n.tabSize);o.push(yn.range(d.from+g,d.from+v))}}}return o}function C3e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function wW(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>nP?-1:r==i.length?C3e(n,e.clientX):s3(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function _3e(n,e){let t=wW(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=wW(n,r);if(!a)return i;let c=b3e(n.state,t,a);return c.length?s?yn.create(c.concat(i.ranges)):yn.create(c):i}}:null}function x3e(n){let e=(t=>t.altKey&&t.button==0);return xi.mouseSelectionStyle.of((t,i)=>e(i)?_3e(t,i):null)}const w3e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},M3e={style:"cursor: crosshair"};function S3e(n={}){let[e,t]=w3e[n.key||"Alt"],i=wu.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,xi.contentAttributes.of(r=>{var o;ret
Line truncated
|
||||
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Dwe(this):new Twe(this)}getCursor(e,t=0,i){let r=e.doc?e:ss.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?F2(this,r,t,i):K2(this,r,t,i)}}class Zre{constructor(e){this.spec=e}}function K2(n,e,t,i){return new Nx(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?Iwe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Iwe(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(T6(r,t-o))!=Al.Word||e(k6(r,t-o))!=Al.Word)&&(e(k6(r,i-o))!=Al.Word||e(T6(r,i-o))!=Al.Word))}class Twe extends Zre{constructor(e){super(e)}nextMatch(e,t,i){let r=K2(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=K2(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=K2(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=K2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=K2(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function F2(n,e,t,i){return new Vre(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?kwe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function T6(n,e){return n.slice(hA(n,e,!1),e)}function k6(n,e){return n.slice(e,hA(n,e))}function kwe(n){return(e,t,i)=>!i[0].length||(n(T6(i.input,i.index))!=Al.Word||n(k6(i.input,i.index))!=Al.Word)&&(n(k6(i.input,i.index+i[0].length))!=Al.Word||n(T6(i.input,i.index+i[0].length))!=Al.Word)}class Dwe extends Zre{nextMatch(e,t,i){let r=F2(this.spec,e,i,e.doc.length).next();return r.done&&(r=F2(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=F2(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=F2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=F2(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const Z5=oo.define(),dK=oo.define(),Gv=kc.define({create(n){return new H7(pP(n).create(),null)},update(n,e){for(let t of e.effects)t.is(Z5)?n=new H7(t.value.create(),n.panel):t.is(dK)&&(n=new H7(n.query,t.value?fK:null));return n},provide:n=>Y5.from(n,e=>e.panel)});class H7{constructor(e,t){this.query=e,this.panel=t}}const Rwe=wr.mark({class:"cm-searchMatch"}),Pwe=wr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Lwe=wu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Gv))}update(n){let e=n.state.field(Gv);(e!=n.startState.field(Gv)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return wr.none;let{view:t}=this,i=new dy;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(d,g)=>{let v=t.state.selection.ranges.some(E=>E.from==d&&E.to==g);i.add(d,g,v?Pwe:Rwe)})}return i.finish()}},{decorations:n=>n.decorations});function eM(n){return e=>{let t=e.state.field(Gv,!1);return t&&t.query.spec.valid?n(e,t):eoe(e)}}const D6=eM((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=yn.single(i.from,i.to),o=n.state.facet(l3);return n.dispatch({selection:r,effects:[pK(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),Jre(n),!0}),R6=eM((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=yn.single(r.from,r.to),s=n.state.facet(l3);return n.dispatch({selection:o,effects:[pK(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),Jre(n),!0}),Uwe=eM((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:yn.cre
Line truncated
|
||||
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Hv={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},N5={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},l2e=typeof navigator<"u"&&/Mac/.test(navigator.platform),u2e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var UA=0;UA<10;UA++)Hv[48+UA]=Hv[96+UA]=String(UA);for(var UA=1;UA<=24;UA++)Hv[UA+111]="F"+UA;for(var UA=65;UA<=90;UA++)Hv[UA]=String.fromCharCode(UA+32),N5[UA]=String.fromCharCode(UA);for(var B7 in Hv)N5.hasOwnProperty(B7)||(N5[B7]=Hv[B7]);function c2e(n){var e=l2e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||u2e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?N5:Hv)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function ba(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}e++}for(;e<arguments.length;e++)jne(n,arguments[e]);return n}function jne(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)jne(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let ud=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},KR=typeof document<"u"?document:{documentElement:{style:{}}};const FR=/Edge\/(\d+)/.exec(ud.userAgent),Nne=/MSIE \d/.test(ud.userAgent),zR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ud.userAgent),eO=!!(Nne||zR||FR),WG=!eO&&/gecko\/(\d+)/i.test(ud.userAgent),O7=!eO&&/Chrome\/(\d+)/.exec(ud.userAgent),QG="webkitFontSmoothing"in KR.documentElement.style,jR=!eO&&/Apple Computer/.test(ud.vendor),qG=jR&&(/Mobile\/\w+/.test(ud.userAgent)||ud.maxTouchPoints>2);var xi={mac:qG||/Mac/.test(ud.platform),windows:/Win/.test(ud.platform),linux:/Linux|X11/.test(ud.platform),ie:eO,ie_version:Nne?KR.documentMode||6:zR?+zR[1]:FR?+FR[1]:0,gecko:WG,gecko_version:WG?+(/Firefox\/(\d+)/.exec(ud.userAgent)||[0,0])[1]:0,chrome:!!O7,chrome_version:O7?+O7[1]:0,ios:qG,android:/Android\b/.test(ud.userAgent),webkit:QG,webkit_version:QG?+(/\bAppleWebKit\/(\d+)/.exec(ud.userAgent)||[0,0])[1]:0,safari:jR,safari_version:jR?+(/\bVersion\/(\d+(\.\d+)?)/.exec(ud.userAgent)||[0,0])[1]:0,tabSize:KR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function GU(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const h6=Object.create(null);function WU(n,e,t){if(n==e)return!0;n||(n=h6),e||(e=h6);let i=Object.keys(n),r=Object.keys(e);if(i.length-0!=r.length-0)return!1;for(let o of i)if(o!=t&&(r.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function A2e(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function YG(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function h2e(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class vy{eq(e){return!1}updateDOM(e,t,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var zA=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(zA||(zA={}));class wr extends Vv{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static
Line truncated
|
||||
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),d=n.visualLineSide(r,!t)}if(c){if(!c(g))return a}else{if(!i)return d;c=i(g)}a=d}}function J2e(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==Al.Space&&(r=s),r==s}}function exe(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return yn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),d=n.coordsAtPos(r,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),g=n.documentTop;if(d)s==null&&(s=d.left-c.left),a=o<0?d.top:d.bottom;else{let U=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-U.from))),a=(o<0?U.top:U.bottom)+g}let v=c.left+s,E=n.viewState.heightOracle.textHeight>>1,I=i??E;for(let U=0;;U+=E){let F=a+(I+U)*o,W=$R(n,{x:v,y:F},!1,o);if(t?F>c.bottom:F<c.top)return yn.cursor(W.pos,W.assoc);let V=n.coordsAtPos(W.pos,W.assoc),Y=V?(V.top+V.bottom)/2:0;if(!V||(t?Y>a:Y<a))return yn.cursor(W.pos,W.assoc,void 0,s)}}function X4(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function gie(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=X4(n,r.from,0);s!=r.from&&(o=yn.cursor(s,-1))}else{let s=X4(n,r.from,-1),a=X4(n,r.to,1);(s!=r.from||a!=r.to)&&(r.undirectional?o=yn.undirectionalRange(r.from,r.to):o=yn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?yn.create(t,e.mainIndex):e}function R7(n,e,t){let i=X4(n.state.facet(Hw).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:yn.cursor(i,i<t.from?1:-1)}class hg{constructor(e,t){this.pos=e,this.assoc=t}}function $R(n,e,t,i){let r=n.contentDOM.getBoundingClientRect(),o=r.top+n.viewState.paddingTop,{x:s,y:a}=e,c=a-o,d;for(;;){if(c<0)return new hg(0,1);if(c>n.viewState.docHeight)return new hg(n.state.doc.length,-1);if(d=n.elementAtHeight(c),i==null)break;if(d.type==zA.Text){if(i<0?d.to<n.viewport.from:d.from>n.viewport.to)break;let E=n.docView.coordsAt(i<0?d.from:d.to,i>0?-1:1);if(E&&(i<0?E.top<=c+o:E.bottom>=c+o))break}let v=n.viewState.heightOracle.textHeight/2;c=i>0?d.bottom+v:d.top-v}if(n.viewport.from>=d.to||n.viewport.to<=d.from){if(t)return null;if(d.type==zA.Text){let v=Z2e(n,r,d,s,a);return new hg(v,v==d.from?1:-1)}}if(d.type!=zA.Text)return c<(d.top+d.bottom)/2?new hg(d.from,1):new hg(d.to,-1);let g=n.docView.lineAt(d.from,2);return(!g||g.length!=d.length)&&(g=n.docView.lineAt(d.from,-2)),new txe(n,s,a,n.textDirectionAt(d.from)).scanTile(g,d.from)}class txe{constructor(e,t,i,r){this.view=e,this.x=t,this.y=i,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[yg.find(r,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[yg.find(r,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:r}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+r.from<t)}scan(e,t,i=!1){let r=0,o=e.length-1,s=new Set,a=this.bidiIn(e[0],e[o]),c,d,g=-1,v=1e9,E;e:for(;r<o;){let U=o-r,F=r+o>>1;t:if(s.has(F)){let V=r+Math.floor(Math.random()*U);for(let Y=0;Y<U;Y++){if(!s.has(V)){F=V;break t}V++,V==o&&(V=r)}break e}s.add(F);let W=t(F);if(W)for(let V=0;V<W.length;V++){let Y=W[V],ee=0;if(!(Y.width==0&&W.length>1)){if(Y.bottom<this.y)(!c||c.bottom<Y.bottom)&&(c=Y),ee=1;else if(Y.top>this.y)(!d||d.top>Y.top)&&(d=Y),ee=-1;else{let oe=Y.left>this.x?this.x-Y.left:Y.right<this.x?this.x-Y.right:0,re=Math.abs(oe);re<v&&(g=F,v=re,E=Y),oe&&(ee=oe<0==(this.baseDir==xa.LTR)?-1:1)}ee==-1&&(!a||this.baseDirAt(e[F],1))?o=F:ee==1&&(!a||this.baseDirAt(e[F+1],-1))&&(r=F+1)}}}if(!E){if(!d&&!c)return{i:e[0],after:!1};let U=c&&(!d||this.y-c.bottom<d.top-this.y)?c:d;return this.y=(U.top+U.bottom)/2,this.scan(e,t,!0)}if(v&&!i){let{top:U,bottom:F}=E;if(c&&c.bottom>(U+U+F)/3)return this.y=c.bottom-1,this.scan(e,t,!0);if(d&&d.top<(U+F+F)/3)return this.y=d.top+1,this.scan(e,t,!0)}let I=(a?this.dirAt(e[g],1):this.baseDir)==xa.LTR;return{i:g,after:this.x>(E.left+E.right)/2==I}}scanText(e,t){let i=[];for(let o=0;o<e.length;o=hA(e.text,o))i.push(t+o);i.push(t+e.length);let r=this.scan(i,o=>{let s=i[o]-t,a=i[o+1]-t;return Q5(e.dom,s,a).getClientRects()});return r.after?new hg(i[r.i+1],-1):new hg(i[r.i],1)}scanTile(e,t){if(!e.length)return new hg(t,1);if(e.children.length==1){let a=e.children[0];if(a.isText())return this.scanText(a,t);if(a.isComposite())return this.scanTile(a,t)}let i=[t];for(let a=0,c=t;a<e.children.length;a++)i.push(c+=e.children[a].length);let r=this.scan(i,a=>{let c=e.children[a];return c.flags&48?null:(c.dom.nodeType==1?c.dom:Q5(c.dom,0,c.length)).getClientRects()}),o=e.children[r.i],s=i[r.i];return o.isText()?this.scanText(o,s):o.isComposite()?this.scanTile(o,s):r.after?new hg(i[r.i+1
Line truncated
|
||||
`&&n.lineWrapping&&(i&&(i=yn.single(i.main.anchor-1,i.main.head-1)),t={from:o.from,to:o.to,insert:as.of([" "])}),t)return ZU(n,t,i,s);if(i&&!y6(i,o)){let a=!1,c="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(a=!0),c=n.inputState.lastSelectionOrigin,c=="select.pointer"&&(i=gie(r.facet(Hw).map(d=>d(n)),i))),n.dispatch({selection:i,scrollIntoView:a,userEvent:c}),!0}else return!1}function ZU(n,e,t,i=-1){if(xi.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(xi.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&cx(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&cx(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&cx(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=sxe(n,e,t));return n.state.facet(oie).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function sxe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,d=c<0?o.from:o.to,g=X4(r.facet(Hw).map(v=>v(n)),d,c);e.from==g&&(s=g)}if(s>-1)i={changes:e,selection:yn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",d=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+d))}else{let c=r.changes(e),d=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=o.to+10&&e.to>=o.to-10){let g=n.state.sliceDoc(e.from,e.to),v,E=t&&mie(n,t.main.head);if(E){let U=e.insert.length-(e.to-e.from);v={from:E.from,to:E.to-U}}else v=n.state.doc.lineAt(o.head);let I=o.to-e.to;i=r.changeByRange(U=>{if(U.from==o.from&&U.to==o.to)return{changes:c,range:d||U.map(c)};let F=U.to-I,W=F-g.length;if(n.state.sliceDoc(W,F)!=g||F>=v.from&&W<=v.to)return{range:U};let V=r.changes({from:W,to:F,insert:e.insert}),Y=U.to-o.to;return{changes:V,range:d?yn.range(Math.max(0,d.anchor+Y),Math.max(0,d.head+Y)):U.map(V)}})}else i={changes:c,selection:d&&r.selection.replaceRange(d)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function bie(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function axe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new tW(t,i)),(r!=t||o!=i)&&e.push(new tW(r,o))),e}function lxe(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?yn.single(t+e,i+e):null}function y6(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class uxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,xi.safari&&e.contentDOM.addEventListener("input",()=>null),xi.gecko&&Mxe(e.contentDOM.ownerDocument)}handleEvent(e){!yxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}
Line truncated
|
||||
`))};if((xi.mac||xi.android)&&v.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(v={from:a,to:c,insert:as.of([i.text.replace("."," ")])}),this.pendingContextChange=v,!e.state.readOnly){let E=this.to-this.from+(v.to-v.from+v.insert.length);ZU(e,v,yn.single(this.toEditorPos(i.selectionStart,E),this.toEditorPos(i.selectionEnd,E)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),v.from<v.to&&!v.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),d=this.toEditorPos(o.rangeEnd);if(c<d){let g=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(wr.mark({attributes:{style:g}}).range(c,d))}}}e.dispatch({effects:cie.of(wr.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{let r=W5(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,d)=>{if(i)return;let g=d.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(d)){r=this.pendingContextChange=null,t+=g,this.to+=g;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=g,this.to+=g;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+d.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),d.toString()),this.to+=g}t+=g}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class wi{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM
Line truncated
|
||||
--\u2028\u2029\uFEFF-]`,tP),u3e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let U7=null;function c3e(){var n;if(U7==null&&typeof document<"u"&&document.body){let e=document.body.style;U7=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return U7||!1}const hE=Ei.define({combine(n){let e=u0(n,{render:null,specialChars:l3e,addSpecialChars:null});return(e.replaceTabs=!c3e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,tP)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,tP)),e}});function A3e(n={}){return[hE.of(n),h3e()]}let xW=null;function h3e(){return xW||(xW=wu.fromClass(class{constructor(n){this.view=n,this.decorations=wr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(hE)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new a3e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=ef(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=s3(s.text,a,i-s.from);return wr.replace({widget:new m3e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=wr.replace({widget:new p3e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(hE);n.startState.facet(hE)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const d3e="•";function f3e(n){return n>=32?d3e:n==10?"":String.fromCharCode(9216+n)}class p3e extends vy{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=f3e(this.code),i=e.state.phrase("Control character")+" "+(u3e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class m3e extends vy{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function g3e(){return v3e}const y3e=wr.line({class:"cm-activeLine"}),v3e=wu.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>e&&(t.push(y3e.range(r.from)),e=r.from)}return wr.set(t)}},{decorations:n=>n.decorations}),nP=2e3;function b3e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>nP||t.off>nP||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let d=n.doc.line(c);d.length<=a&&o.push(yn.range(d.from+s,d.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let d=n.doc.line(c),g=PR(d.text,s,n.tabSize,!0);if(g<0)o.push(yn.cursor(d.to));else{let v=PR(d.text,a,n.tabSize);o.push(yn.range(d.from+g,d.from+v))}}}return o}function C3e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function wW(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>nP?-1:r==i.length?C3e(n,e.clientX):s3(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function _3e(n,e){let t=wW(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=wW(n,r);if(!a)return i;let c=b3e(n.state,t,a);return c.length?s?yn.create(c.concat(i.ranges)):yn.create(c):i}}:null}function x3e(n){let e=(t=>t.altKey&&t.button==0);return wi.mouseSelectionStyle.of((t,i)=>e(i)?_3e(t,i):null)}const w3e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},M3e={style:"cursor: crosshair"};function S3e(n={}){let[e,t]=w3e[n.key||"Alt"],i=wu.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,wi.contentAttributes.of(r=>{var o;ret
Line truncated
|
||||
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Dwe(this):new Twe(this)}getCursor(e,t=0,i){let r=e.doc?e:ss.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?F2(this,r,t,i):K2(this,r,t,i)}}class Zre{constructor(e){this.spec=e}}function K2(n,e,t,i){return new Nx(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?Iwe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Iwe(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(T6(r,t-o))!=Al.Word||e(k6(r,t-o))!=Al.Word)&&(e(k6(r,i-o))!=Al.Word||e(T6(r,i-o))!=Al.Word))}class Twe extends Zre{constructor(e){super(e)}nextMatch(e,t,i){let r=K2(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=K2(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=K2(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=K2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=K2(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function F2(n,e,t,i){return new Vre(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?kwe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function T6(n,e){return n.slice(hA(n,e,!1),e)}function k6(n,e){return n.slice(e,hA(n,e))}function kwe(n){return(e,t,i)=>!i[0].length||(n(T6(i.input,i.index))!=Al.Word||n(k6(i.input,i.index))!=Al.Word)&&(n(k6(i.input,i.index+i[0].length))!=Al.Word||n(T6(i.input,i.index+i[0].length))!=Al.Word)}class Dwe extends Zre{nextMatch(e,t,i){let r=F2(this.spec,e,i,e.doc.length).next();return r.done&&(r=F2(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=F2(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=F2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=F2(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const Z5=oo.define(),dK=oo.define(),Gv=kc.define({create(n){return new H7(pP(n).create(),null)},update(n,e){for(let t of e.effects)t.is(Z5)?n=new H7(t.value.create(),n.panel):t.is(dK)&&(n=new H7(n.query,t.value?fK:null));return n},provide:n=>Y5.from(n,e=>e.panel)});class H7{constructor(e,t){this.query=e,this.panel=t}}const Rwe=wr.mark({class:"cm-searchMatch"}),Pwe=wr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Lwe=wu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Gv))}update(n){let e=n.state.field(Gv);(e!=n.startState.field(Gv)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return wr.none;let{view:t}=this,i=new dy;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(d,g)=>{let v=t.state.selection.ranges.some(E=>E.from==d&&E.to==g);i.add(d,g,v?Pwe:Rwe)})}return i.finish()}},{decorations:n=>n.decorations});function eM(n){return e=>{let t=e.state.field(Gv,!1);return t&&t.query.spec.valid?n(e,t):eoe(e)}}const D6=eM((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=yn.single(i.from,i.to),o=n.state.facet(l3);return n.dispatch({selection:r,effects:[pK(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),Jre(n),!0}),R6=eM((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=yn.single(r.from,r.to),s=n.state.facet(l3);return n.dispatch({selection:o,effects:[pK(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),Jre(n),!0}),Uwe=eM((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:yn.cre
Line truncated
|
||||
`)}var Pn={extraLines:2,tabSize:4},Jn=function(Sn,Qn,On,vn){vn=_t({},Pn,vn);var vt=Sn.split(/\r\n?|\n|\f/),Se=Math.max(1,Qn-vn.extraLines)-1,Ae=Math.min(Qn+vn.extraLines,vt.length),fe=String(Ae).length,ze=un(vt,Se,Qn,fe,vn),At=Jt(vt[Qn-1].substring(0,On-1),Qn,fe,vn),Ot=Ve(" ",At.length)+"^",Dt=un(vt,Qn,Ae,fe,vn);return[ze,Ot,Dt].filter(Boolean).join(`
|
||||
`)};return Jn})}),d=new Error().stack,g=(function(Ie){var Ce=Object.create(SyntaxError.prototype);return Object.assign(Ce,Ie,{name:"SyntaxError"}),Object.defineProperty(Ce,"stack",{get:function(){return d?d.replace(/^(.+\n){1,3}/,String(Ce)+`
|
||||
`):""}}),Ce}),v=(function(Ie,Ce,it,pt,Ve){throw g({message:pt?Ie+`
|
||||
`+c(Ce,pt,Ve):Ie,rawMessage:Ie,source:it,line:pt,column:Ve})}),E={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ce){for(var it=arguments.length,pt=Array(it>1?it-1:0),Ve=1;Ve<it;Ve++)pt[Ve-1]=arguments[Ve];return"Unexpected token <"+Ce+"> at "+pt.filter(Boolean).join(":")}},I={unexpectedSymbol:function(Ce){for(var it=arguments.length,pt=Array(it>1?it-1:0),Ve=1;Ve<it;Ve++)pt[Ve-1]=arguments[Ve];return"Unexpected symbol <"+Ce+"> at "+pt.filter(Boolean).join(":")}},U={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},F={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},V={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},Y={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},ee={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function oe(Ie){return Ie>="1"&&Ie<="9"}function re(Ie){return Ie>="0"&&Ie<="9"}function ie(Ie){return re(Ie)||Ie>="a"&&Ie<="f"||Ie>="A"&&Ie<="F"}function X(Ie){return Ie==="e"||Ie==="E"}function ce(Ie,Ce,it,pt){var Ve=Ie.charAt(Ce);if(Ve==="\r")Ce++,it++,pt=1,Ie.charAt(Ce)===`
|
||||
`&&Ce++;else if(Ve===`
|
||||
`)Ce++,it++,pt=1;else if(Ve===" "||Ve===" ")Ce++,pt++;else return null;return{index:Ce,line:it,column:pt}}function $(Ie,Ce,it,pt){var Ve=Ie.charAt(Ce);return Ve in F?{type:F[Ve],line:it,column:pt+1,index:Ce+1,value:null}:null}function ue(Ie,Ce,it,pt){for(var Ve in W)if(W.hasOwnProperty(Ve)&&Ie.substr(Ce,Ve.length)===Ve)return{type:W[Ve],line:it,column:pt+Ve.length,index:Ce+Ve.length,value:Ve};return null}function de(Ie,Ce,it,pt){for(var Ve=Ce,St=V._START_;Ce<Ie.length;){var Bt=Ie.charAt(Ce);switch(St){case V._START_:{if(Bt==='"')Ce++,St=V.START_QUOTE_OR_CHAR;else return null;break}case V.START_QUOTE_OR_CHAR:{if(Bt==="\\")Ce++,St=V.ESCAPE;else{if(Bt==='"')return Ce++,{type:U.STRING,line:it,column:pt+Ce-Ve,index:Ce,value:Ie.slice(Ve,Ce)};Ce++}break}case V.ESCAPE:{if(Bt in Y){if(Ce++,Bt==="u")for(var _t=0;_t<4;_t++){var Jt=Ie.charAt(Ce);if(Jt&&ie(Jt))Ce++;else return null}St=V.START_QUOTE_OR_CHAR}else return null;break}}}}function be(Ie,Ce,it,pt){var Ve=Ce,St=Ce,Bt=ee._START_;e:for(;Ce<Ie.length;){var _t=Ie.charAt(Ce);switch(Bt){case ee._START_:{if(_t==="-")Bt=ee.MINUS;else if(_t==="0")St=Ce+1,Bt=ee.ZERO;else if(oe(_t))St=Ce+1,Bt=ee.DIGIT;else return null;break}case ee.MINUS:{if(_t==="0")St=Ce+1,Bt=ee.ZERO;else if(oe(_t))St=Ce+1,Bt=ee.DIGIT;else return null;break}case ee.ZERO:{if(_t===".")Bt=ee.POINT;else if(X(_t))Bt=ee.EXP;else break e;break}case ee.DIGIT:{if(re(_t))St=Ce+1;else if(_t===".")Bt=ee.POINT;else if(X(_t))Bt=ee.EXP;else break e;break}case ee.POINT:{if(re(_t))St=Ce+1,Bt=ee.DIGIT_FRACTION;else break e;break}case ee.DIGIT_FRACTION:{if(re(_t))St=Ce+1;else if(X(_t))Bt=ee.EXP;else break e;break}case ee.EXP:{if(_t==="+"||_t==="-")Bt=ee.EXP_DIGIT_OR_SIGN;else if(re(_t))St=Ce+1,Bt=ee.EXP_DIGIT_OR_SIGN;else break e;break}case ee.EXP_DIGIT_OR_SIGN:{if(re(_t))St=Ce+1;else break e;break}}Ce++}return St>0?{type:U.NUMBER,line:it,column:pt+St-Ve,index:St,value:Ie.slice(Ve,St)}:null}var me=function(Ce,it){for(var pt=1,Ve=1,St=0,Bt=[];St<Ce.length;){var _t=[Ce,St,pt,Ve],Jt=ce.apply(void 0,_t);if(Jt){St=Jt.index,pt=Jt.line,Ve=Jt.column;continue}var un=$.apply(void 0,_t)||ue.apply(void 0,_t)||de.apply(void 0,_t)||be.apply(void 0,_t);if(un){var Pn={type:un.type,value:un.value,loc:a(pt,Ve,St,un.line,un.column,un.index,it.source)};Bt.push(Pn),St=un.index,pt=un.line,Ve=un.column}else v(I.unexpectedSymbol(s(Ce,St,St+1),it.source,pt,Ve),Ce,it.source,pt,Ve)}return Bt},xe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Pe={_START_:0,KEY:1,COLON:2},ke={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Qe={loc:!0,source:null};function nt(Ie,Ce,it){var pt=Ce.length>0?Ce[Ce.length-1].loc.end:{line:1,column:1};v(E.unexpectedEnd(),Ie,it.source,pt.line,pt.column)}function je(Ie){for(var Ce=0,it=0;it<4;it++)Ce=Ce*16+parseInt(Ie[it],16);return String.fromCharCode(Ce)}var Re={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},Ne=['"',"\\","/"];function lt(Ie){for(var Ce="",it=0;it<Ie.length;it++){var pt=Ie.charAt(it);if(pt==="\\"){it++;var Ve=Ie.charAt(it);if(Ve==="u")Ce+=je(Ie.substr(it+1,4)),it+=4;else if(Ne.indexOf(Ve)!==-1)Ce+=Ve;else if(Ve in Re)Ce+=Re[Ve];else break}else Ce+=pt}return Ce}function Ke(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Object",children:[]},Bt=xe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case xe._START_:{if(_t.type===U.LEFT_BRACE)Ve=_t,Bt=xe.OPEN_OBJECT,it++;else return null;break}case xe.OPEN_OBJECT:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=Xe(Ie,Ce,it,pt);St.children.push(Jt.value),Bt=xe.PROPERTY,it=Jt.index;break}case xe.PROPERTY:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=xe.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case xe.COMMA:{var un=Xe(Ie,Ce,it,pt);un?(it=un.index,St.children.push(un.value),Bt=xe.PROPERTY):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}}}nt(Ie,Ce,pt)}function Xe(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Property",key:null,value:null},Bt=Pe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case Pe._START_:{if(_t.type===U.STRING){var Jt={type:"Identifier",value:lt(Ie.slice(_t.loc.start.offset+1,_t.loc.end.offset-1)),raw:_t.value};pt.loc&&(Jt.loc=_t.loc),Ve=_t,St.key=Jt,Bt=Pe.KEY,it++}else return null;break}case Pe.KEY:{_t.type===U.COLON?(Bt=Pe.COLON,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case Pe.COLON:{var un=It(Ie,Ce,it,pt);return St.value=un.value,pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,un.value.loc.end.line,un.value.loc.end.column,un.value.loc.end.offset,pt.source)),{value:St,index:un.index}}}}}function st(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Array",children:[]},Bt=ke._START_,_t=void 0;it<Ce.length;)switch(_t=Ce[it],Bt){case ke._START_:{if(_t.type===U.LEFT_BRACKET)Ve=_t,Bt=ke.OPEN_ARRAY,it++;else return null;break}case ke.OPEN_ARRAY:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=It(Ie,Ce,it,pt);it=Jt.index,St.children.push(Jt.value),Bt=ke.VALUE;break}case ke.VALUE:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=ke.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case ke.COMMA:{var un=It(Ie,Ce,it,pt);it=un.index,St.children.push(un.value),Bt=ke.VALUE;break}}nt(Ie,Ce,pt)}function Ct(Ie,Ce,it,pt){var Ve=Ce[it],St=null;switch(Ve.type){case U.STRING:{St=lt(Ie.slice(Ve.loc.start.offset+1,Ve.loc.end.offset-1));break}case U.NUMBER:{St=Number(Ve.value);break}case U.TRUE:{St=!0;break}case U.FALSE:{St=!1;break}case U.NULL:{St=null;break}default:return null}var Bt={type:"Literal",value:St,raw:Ve.value};return pt.loc&&(Bt.loc=Ve.loc),{value:Bt,index:it+1}}function It(Ie,Ce,it,pt){var Ve=Ce[it],St=Ct.apply(void 0,arguments)||Ke.apply(void 0,arguments)||st.apply(void 0,arguments);if(St)return St;v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),pt.source,Ve.loc.start.line,Ve.loc.start.column),Ie,pt.source,Ve.loc.start.line,Ve.loc.start.column)}var Le=(function(Ie,Ce){Ce=Object.assign({},Qe,Ce);var it=me(Ie,Ce);it.length===0&&nt(Ie,it,Ce);var pt=It(Ie,it,0,Ce);if(pt.index===it.length)return pt.value;var Ve=it[pt.index];v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),Ce.source,Ve.loc.start.line,Ve.loc.start.column),Ie,Ce.source,Ve.loc.start.line,Ve.loc.start.column)});return Le}))})(yE)),yE.exports}var xSe=_Se();const CK=Mu(xSe);function ya(){var n="/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",e="68bf9a3bcb07bd54be36702e0c3494ce552968d6",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",statementMap:{0:{start:{line:2,column:2},end:{line:4,column:3}},1:{start:{line:3,column:4},end:{line:3,column:18}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:16}},4:{start:{line:8,column:2},end:{line:10,
Line truncated
|
||||
`,r:"\r",t:" "},Ne=['"',"\\","/"];function lt(Ie){for(var Ce="",it=0;it<Ie.length;it++){var pt=Ie.charAt(it);if(pt==="\\"){it++;var Ve=Ie.charAt(it);if(Ve==="u")Ce+=je(Ie.substr(it+1,4)),it+=4;else if(Ne.indexOf(Ve)!==-1)Ce+=Ve;else if(Ve in Re)Ce+=Re[Ve];else break}else Ce+=pt}return Ce}function Ke(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Object",children:[]},Bt=xe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case xe._START_:{if(_t.type===U.LEFT_BRACE)Ve=_t,Bt=xe.OPEN_OBJECT,it++;else return null;break}case xe.OPEN_OBJECT:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=Xe(Ie,Ce,it,pt);St.children.push(Jt.value),Bt=xe.PROPERTY,it=Jt.index;break}case xe.PROPERTY:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=xe.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case xe.COMMA:{var un=Xe(Ie,Ce,it,pt);un?(it=un.index,St.children.push(un.value),Bt=xe.PROPERTY):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}}}nt(Ie,Ce,pt)}function Xe(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Property",key:null,value:null},Bt=Pe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case Pe._START_:{if(_t.type===U.STRING){var Jt={type:"Identifier",value:lt(Ie.slice(_t.loc.start.offset+1,_t.loc.end.offset-1)),raw:_t.value};pt.loc&&(Jt.loc=_t.loc),Ve=_t,St.key=Jt,Bt=Pe.KEY,it++}else return null;break}case Pe.KEY:{_t.type===U.COLON?(Bt=Pe.COLON,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case Pe.COLON:{var un=It(Ie,Ce,it,pt);return St.value=un.value,pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,un.value.loc.end.line,un.value.loc.end.column,un.value.loc.end.offset,pt.source)),{value:St,index:un.index}}}}}function st(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Array",children:[]},Bt=ke._START_,_t=void 0;it<Ce.length;)switch(_t=Ce[it],Bt){case ke._START_:{if(_t.type===U.LEFT_BRACKET)Ve=_t,Bt=ke.OPEN_ARRAY,it++;else return null;break}case ke.OPEN_ARRAY:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=It(Ie,Ce,it,pt);it=Jt.index,St.children.push(Jt.value),Bt=ke.VALUE;break}case ke.VALUE:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=ke.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case ke.COMMA:{var un=It(Ie,Ce,it,pt);it=un.index,St.children.push(un.value),Bt=ke.VALUE;break}}nt(Ie,Ce,pt)}function Ct(Ie,Ce,it,pt){var Ve=Ce[it],St=null;switch(Ve.type){case U.STRING:{St=lt(Ie.slice(Ve.loc.start.offset+1,Ve.loc.end.offset-1));break}case U.NUMBER:{St=Number(Ve.value);break}case U.TRUE:{St=!0;break}case U.FALSE:{St=!1;break}case U.NULL:{St=null;break}default:return null}var Bt={type:"Literal",value:St,raw:Ve.value};return pt.loc&&(Bt.loc=Ve.loc),{value:Bt,index:it+1}}function It(Ie,Ce,it,pt){var Ve=Ce[it],St=Ct.apply(void 0,arguments)||Ke.apply(void 0,arguments)||st.apply(void 0,arguments);if(St)return St;v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),pt.source,Ve.loc.start.line,Ve.loc.start.column),Ie,pt.source,Ve.loc.start.line,Ve.loc.start.column)}var Le=(function(Ie,Ce){Ce=Object.assign({},Qe,Ce);var it=me(Ie,Ce);it.length===0&&nt(Ie,it,Ce);var pt=It(Ie,it,0,Ce);if(pt.index===it.length)return pt.value;var Ve=it[pt.index];v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),Ce.source,Ve.loc.start.line,Ve.loc.start.column),Ie,Ce.source,Ve.loc.start.line,Ve.loc.start.column)});return Le}))})(yE)),yE.exports}var xSe=_Se();const CK=Mu(xSe);function ya(){var n="/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",e="68bf9a3bcb07bd54be36702e0c3494ce552968d6",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",statementMap:{0:{start:{line:2,column:2},end:{line:4,column:3}},1:{start:{line:3,column:4},end:{line:3,column:18}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:16}},4:{start:{line:8,column:2},end:{line:10,
Line truncated
|
||||
To pick up a draggable item, press the space bar.
|
||||
While dragging, use the arrow keys to move the item.
|
||||
Press space again to drop the item in its new position, or press escape to cancel.
|
||||
`},GSe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function WSe(n){let{announcements:e=GSe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=NSe}=n;const{announce:o,announcement:s}=FSe(),a=iM("DndLiveRegion"),[c,d]=ct.useState(!1);if(ct.useEffect(()=>{d(!0)},[]),zSe(ct.useMemo(()=>({onDragStart(v){let{active:E}=v;o(e.onDragStart({active:E}))},onDragMove(v){let{active:E,over:I}=v;e.onDragMove&&o(e.onDragMove({active:E,over:I}))},onDragOver(v){let{active:E,over:I}=v;o(e.onDragOver({active:E,over:I}))},onDragEnd(v){let{active:E,over:I}=v;o(e.onDragEnd({active:E,over:I}))},onDragCancel(v){let{active:E,over:I}=v;o(e.onDragCancel({active:E,over:I}))}}),[o,e])),!c)return null;const g=kn.createElement(kn.Fragment,null,kn.createElement(USe,{id:i,value:r.draggable}),kn.createElement(KSe,{id:a,announcement:s}));return t?I4.createPortal(g,t):g}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function N6(){}function QSe(n,e){return ct.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function qSe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return ct.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const i0=Object.freeze({x:0,y:0});function YSe(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function VSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function $Se(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function HSe(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function IQ(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const ZSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=IQ(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const d=YSe(IQ(c),r);o.push({id:a,data:{droppableContainer:s,value:d}})}}return o.sort(VSe)};function XSe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,d=n.width*n.height,g=s*a,v=g/(c+d-g);return Number(v.toFixed(4))}return 0}const JSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=XSe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort($Se)};function eEe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Eoe(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:i0}function tEe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const nEe=tEe(1);function iEe(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function rEe(n,e,t){const i=iEe(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),d=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),g=r?n.width/r:n.width,v=o?n.height/o:n.height;return{width:g,height:v,top:d,right:c+g,bottom:d+v,left:c}}const oEe={ignoreTransform:!1};function A3(n,e){e===void 0&&(e=oEe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:g}=cf(n).getComputedStyle(n);d&&(t=rEe(t,d,g))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function TQ(n){return A3(n,{ignoreTransform:!0})}function sEe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function aEe(n,e){return e===void 0&&(e=cf(n).getComputedStyle(n)),e.position==="fixed"}function lEe(n,e){e===void 0&&(e=cf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function EK(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(wK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!tM(r)||woe(r)||t.includes(r))return t;const o=cf(n).getComputedStyle(r);return r!==n&&lE
Line truncated
|
||||
`},GSe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function WSe(n){let{announcements:e=GSe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=NSe}=n;const{announce:o,announcement:s}=FSe(),a=iM("DndLiveRegion"),[c,d]=ct.useState(!1);if(ct.useEffect(()=>{d(!0)},[]),zSe(ct.useMemo(()=>({onDragStart(v){let{active:E}=v;o(e.onDragStart({active:E}))},onDragMove(v){let{active:E,over:I}=v;e.onDragMove&&o(e.onDragMove({active:E,over:I}))},onDragOver(v){let{active:E,over:I}=v;o(e.onDragOver({active:E,over:I}))},onDragEnd(v){let{active:E,over:I}=v;o(e.onDragEnd({active:E,over:I}))},onDragCancel(v){let{active:E,over:I}=v;o(e.onDragCancel({active:E,over:I}))}}),[o,e])),!c)return null;const g=kn.createElement(kn.Fragment,null,kn.createElement(USe,{id:i,value:r.draggable}),kn.createElement(KSe,{id:a,announcement:s}));return t?I4.createPortal(g,t):g}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function N6(){}function QSe(n,e){return ct.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function qSe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return ct.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const i0=Object.freeze({x:0,y:0});function YSe(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function VSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function $Se(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function HSe(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function IQ(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const ZSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=IQ(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const d=YSe(IQ(c),r);o.push({id:a,data:{droppableContainer:s,value:d}})}}return o.sort(VSe)};function XSe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,d=n.width*n.height,g=s*a,v=g/(c+d-g);return Number(v.toFixed(4))}return 0}const JSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=XSe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort($Se)};function eEe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Eoe(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:i0}function tEe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const nEe=tEe(1);function iEe(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function rEe(n,e,t){const i=iEe(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),d=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),g=r?n.width/r:n.width,v=o?n.height/o:n.height;return{width:g,height:v,top:d,right:c+g,bottom:d+v,left:c}}const oEe={ignoreTransform:!1};function A3(n,e){e===void 0&&(e=oEe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:g}=cf(n).getComputedStyle(n);d&&(t=rEe(t,d,g))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function TQ(n){return A3(n,{ignoreTransform:!0})}function sEe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function aEe(n,e){return e===void 0&&(e=cf(n).getComputedStyle(n)),e.position==="fixed"}function lEe(n,e){e===void 0&&(e=cf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function EK(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(wK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!tM(r)||woe(r)||t.includes(r))return t;const o=cf(n).getComputedStyle(r);return r!==n&&lE
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QQ(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function qQ(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?QQ(Object(t),!0).forEach(function(i){z6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):QQ(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function G6e(n){return F6e(n)||j6e(n)||q6e(n)||N6e()}function W6e(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Q6e(n){var e=W6e(n,"string");return typeof e=="symbol"?e:e+""}function q6e(n,e){if(n){if(typeof n=="string")return MP(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?MP(n,e):void 0}}var YQ={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i._setPausedState(!0)}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Y6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},V6e=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},r5=function(e){return e?.key==="Tab"||e?.keyCode===9},$6e=function(e){return r5(e)&&!e.shiftKey},H6e=function(e){return r5(e)&&e.shiftKey},VQ=function(e){return setTimeout(e,0)},J3=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},xS=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Z6e=[],X6e=function(e,t){var i=t?.document||document,r=t?.trapStack||Z6e,o=qQ({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:$6e,isKeyBackward:H6e},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(me,xe,Pe){return me&&me[xe]!==void 0?me[xe]:o[Pe||xe]},d=function(me,xe){var Pe=typeof xe?.composedPath=="function"?xe.composedPath():void 0;return s.containerGroups.findIndex(function(ke){var Qe=ke.container,nt=ke.tabbableNodes;return Qe.contains(me)||Pe?.includes(Qe)||nt.find(function(je){return je===me})})},g=function(me){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=xe.hasFallback,ke=Pe===void 0?!1:Pe,Qe=xe.params,nt=Qe===void 0?[]:Qe,je=o[me];if(typeof je=="function"&&(je=je.apply(void 0,G6e(nt))),je===!0&&(je=void 0),!je){if(je===void 0||je===!1)return je;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var Re=je;if(typeof je=="string"){try{Re=i.querySelector(je)}catch(Ne){throw new Error("`".concat(me,'` appears to be an invalid selector; error="').concat(Ne.message,'"'))}if(!Re&&!ke)throw new Error("`".concat(me,"` as selector refers to no known node"))}return Re},v=function(){var me=g("initialFocus",{hasFallback:!0});if(me===!1)return!1;if(me===void 0||me&&!bE(me,o.tabbableOptions))if(d(i.activeElement)>=0)me=i.activeElement;else{var xe=s.tabbableGroups[0],Pe=xe&&xe.firstTabbableNode;me=Pe||g("fallbackFocus")}else me===null&&(me=g("fallbackFocus"));if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},E=function(){if(s.containerGroups=s.containers.map(function(me){var xe=Zoe(me,o.tabbableOptions),Pe=Xoe(me,o.tabbableOptions),ke=xe.length>0?xe[0]:void 0,Qe=xe.length>0?xe[xe.length-1]:void 0,nt=Pe.find(function(Ne){return lC(Ne)}),je=Pe.slice().reverse().find(function(Ne){return lC(Ne)}),Re=!!xe.find(function(Ne){return Sv(Ne)>0});return{container:me,tabbableNodes:xe,focusableNodes:Pe,posTabIndexesFound:Re,firstTabbableNode:ke,lastTabbableNode:Qe,firstDomTabbableNode:nt,lastDomTabbableNode:je,nextTabbableNode:function(lt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=xe.indexOf(lt);return Xe<0?Ke?Pe.slice(Pe.indexOf(lt)+1).find(function(st){return lC(st)}):Pe.slice(0,Pe.indexOf(lt)).reverse().find(function(st){return lC(st)}):xe[Xe+(Ke?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all
Line truncated
|
||||
`,d="/",g="*",v="",E="comment",I="declaration";fI=function(F,W){if(typeof F!="string")throw new TypeError("First argument must be a string");if(!F)return[];W=W||{};var V=1,Y=1;function ee(me){var xe=me.match(e);xe&&(V+=xe.length);var Pe=me.lastIndexOf(c);Y=~Pe?me.length-Pe:Y+me.length}function oe(){var me={line:V,column:Y};return function(xe){return xe.position=new re(me),ce(),xe}}function re(me){this.start=me,this.end={line:V,column:Y},this.source=W.source}re.prototype.content=F;function ie(me){var xe=new Error(W.source+":"+V+":"+Y+": "+me);if(xe.reason=me,xe.filename=W.source,xe.line=V,xe.column=Y,xe.source=F,!W.silent)throw xe}function X(me){var xe=me.exec(F);if(xe){var Pe=xe[0];return ee(Pe),F=F.slice(Pe.length),xe}}function ce(){X(t)}function $(me){var xe;for(me=me||[];xe=ue();)xe!==!1&&me.push(xe);return me}function ue(){var me=oe();if(!(d!=F.charAt(0)||g!=F.charAt(1))){for(var xe=2;v!=F.charAt(xe)&&(g!=F.charAt(xe)||d!=F.charAt(xe+1));)++xe;if(xe+=2,v===F.charAt(xe-1))return ie("End of comment missing");var Pe=F.slice(2,xe-2);return Y+=2,ee(Pe),F=F.slice(xe),Y+=2,me({type:E,comment:Pe})}}function de(){var me=oe(),xe=X(i);if(xe){if(ue(),!X(r))return ie("property missing ':'");var Pe=X(o),ke=me({type:I,property:U(xe[0].replace(n,v)),value:Pe?U(Pe[0].replace(n,v)):v});return X(s),ke}}function be(){var me=[];$(me);for(var xe;xe=de();)xe!==!1&&(me.push(xe),$(me));return me}return ce(),be()};function U(F){return F?F.replace(a,v):v}return fI}var iq;function SBe(){if(iq)return s2;iq=1;var n=s2&&s2.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(s2,"__esModule",{value:!0}),s2.default=t;const e=n(MBe());function t(i,r){let o=null;if(!i||typeof i!="string")return o;const s=(0,e.default)(i),a=typeof r=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:g}=c;a?r(d,g,c):g&&(o=o||{},o[d]=g)}),o}return s2}var e4={},rq;function EBe(){if(rq)return e4;rq=1,Object.defineProperty(e4,"__esModule",{value:!0}),e4.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(d){return!d||t.test(d)||n.test(d)},s=function(d,g){return g.toUpperCase()},a=function(d,g){return"".concat(g,"-")},c=function(d,g){return g===void 0&&(g={}),o(d)?d:(d=d.toLowerCase(),g.reactCompat?d=d.replace(r,a):d=d.replace(i,a),d.replace(e,s))};return e4.camelCase=c,e4}var t4,oq;function BBe(){if(oq)return t4;oq=1;var n=t4&&t4.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(SBe()),t=EBe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,t4=i,t4}var OBe=BBe();const IBe=Mu(OBe),sse=ase("end"),RK=ase("start");function ase(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function TBe(n){const e=RK(n),t=sse(n);if(e&&t)return{start:e,end:t}}function o5(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?sq(n.position):"start"in n||"end"in n?sq(n):"line"in n||"column"in n?OP(n):""}function OP(n){return aq(n&&n.line)+":"+aq(n&&n.column)}function sq(n){return OP(n&&n.start)+"-"+OP(n&&n.end)}function aq(n){return n&&typeof n=="number"?n:1}class Eh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=o5(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Eh.prototype.file="";Eh.prototype.name="";Eh.prototype.reason="";Eh.prototype.message="";Eh.prototype.stack="";Eh.prototype.column=void 0;Eh.prototype.line=void 0;Eh.prototype.ancestors=void 0;Eh.prototype.cause=void 0;Eh.prototype.fatal=void 0;Eh.prototype.place=void 0;Eh.prototype.ruleId=void 0;Eh.prototype.source=void 0;const PK={}.hasOwnProperty,kBe=new Map,DBe=/[A-Z]/g,RBe=new Set(["table","tbody","thead","tfoot","tr"]),PBe=new Set(["td","th"]),lse="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function LBe(n,e){if(!e||e.Fragment===void
Line truncated
|
||||
`,d="/",g="*",v="",E="comment",I="declaration";fI=function(F,W){if(typeof F!="string")throw new TypeError("First argument must be a string");if(!F)return[];W=W||{};var V=1,Y=1;function ee(me){var xe=me.match(e);xe&&(V+=xe.length);var Pe=me.lastIndexOf(c);Y=~Pe?me.length-Pe:Y+me.length}function oe(){var me={line:V,column:Y};return function(xe){return xe.position=new re(me),ce(),xe}}function re(me){this.start=me,this.end={line:V,column:Y},this.source=W.source}re.prototype.content=F;function ie(me){var xe=new Error(W.source+":"+V+":"+Y+": "+me);if(xe.reason=me,xe.filename=W.source,xe.line=V,xe.column=Y,xe.source=F,!W.silent)throw xe}function X(me){var xe=me.exec(F);if(xe){var Pe=xe[0];return ee(Pe),F=F.slice(Pe.length),xe}}function ce(){X(t)}function $(me){var xe;for(me=me||[];xe=ue();)xe!==!1&&me.push(xe);return me}function ue(){var me=oe();if(!(d!=F.charAt(0)||g!=F.charAt(1))){for(var xe=2;v!=F.charAt(xe)&&(g!=F.charAt(xe)||d!=F.charAt(xe+1));)++xe;if(xe+=2,v===F.charAt(xe-1))return ie("End of comment missing");var Pe=F.slice(2,xe-2);return Y+=2,ee(Pe),F=F.slice(xe),Y+=2,me({type:E,comment:Pe})}}function de(){var me=oe(),xe=X(i);if(xe){if(ue(),!X(r))return ie("property missing ':'");var Pe=X(o),ke=me({type:I,property:U(xe[0].replace(n,v)),value:Pe?U(Pe[0].replace(n,v)):v});return X(s),ke}}function be(){var me=[];$(me);for(var xe;xe=de();)xe!==!1&&(me.push(xe),$(me));return me}return ce(),be()};function U(F){return F?F.replace(a,v):v}return fI}var iq;function SBe(){if(iq)return s2;iq=1;var n=s2&&s2.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(s2,"__esModule",{value:!0}),s2.default=t;const e=n(MBe());function t(i,r){let o=null;if(!i||typeof i!="string")return o;const s=(0,e.default)(i),a=typeof r=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:g}=c;a?r(d,g,c):g&&(o=o||{},o[d]=g)}),o}return s2}var e4={},rq;function EBe(){if(rq)return e4;rq=1,Object.defineProperty(e4,"__esModule",{value:!0}),e4.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(d){return!d||t.test(d)||n.test(d)},s=function(d,g){return g.toUpperCase()},a=function(d,g){return"".concat(g,"-")},c=function(d,g){return g===void 0&&(g={}),o(d)?d:(d=d.toLowerCase(),g.reactCompat?d=d.replace(r,a):d=d.replace(i,a),d.replace(e,s))};return e4.camelCase=c,e4}var t4,oq;function BBe(){if(oq)return t4;oq=1;var n=t4&&t4.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(SBe()),t=EBe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,t4=i,t4}var OBe=BBe();const IBe=Mu(OBe),sse=ase("end"),RK=ase("start");function ase(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function TBe(n){const e=RK(n),t=sse(n);if(e&&t)return{start:e,end:t}}function o5(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?sq(n.position):"start"in n||"end"in n?sq(n):"line"in n||"column"in n?OP(n):""}function OP(n){return aq(n&&n.line)+":"+aq(n&&n.column)}function sq(n){return OP(n&&n.start)+"-"+OP(n&&n.end)}function aq(n){return n&&typeof n=="number"?n:1}class Eh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=o5(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Eh.prototype.file="";Eh.prototype.name="";Eh.prototype.reason="";Eh.prototype.message="";Eh.prototype.stack="";Eh.prototype.column=void 0;Eh.prototype.line=void 0;Eh.prototype.ancestors=void 0;Eh.prototype.cause=void 0;Eh.prototype.fatal=void 0;Eh.prototype.place=void 0;Eh.prototype.ruleId=void 0;Eh.prototype.source=void 0;const PK={}.hasOwnProperty,kBe=new Map,DBe=/[A-Z]/g,RBe=new Set(["table","tbody","thead","tfoot","tr"]),PBe=new Set(["td","th"]),lse="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function LBe(n,e){if(!e||e.Fragment===void
Line truncated
|
||||
`;break}case-3:{s=`\r
|
||||
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function V8e(n){const i={constructs:tOe([W8e,...(n||{}).extensions||[]]),content:r(uOe),defined:[],document:r(AOe),flow:r(O8e),lazy:{},string:r(k8e),text:r(D8e)};return i;function r(o){return s;function s(a){return Q8e(i,o,a)}}}function $8e(n){for(;!gse(n););return n}const yq=/[\0\t\n\r]/g;function H8e(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const c=[];let d,g,v,E,I;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),v=0,e="",t&&(o.charCodeAt(0)===65279&&v++,t=void 0);v<o.length;){if(yq.lastIndex=v,d=yq.exec(o),E=d&&d.index!==void 0?d.index:o.length,I=o.charCodeAt(E),!d){e=o.slice(v);break}if(I===10&&v===E&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),v<E&&(c.push(o.slice(v,E)),n+=E-v),I){case 0:{c.push(65533),n++;break}case 9:{for(g=Math.ceil(n/4)*4,c.push(-2);n++<g;)c.push(-1);break}case 10:{c.push(-4),n=1;break}default:i=!0,n=1}v=E+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const Z8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function X8e(n){return n.replace(Z8e,J8e)}function J8e(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return dse(t.slice(o?2:1),o?16:10)}return KK(t)||n}const xse={}.hasOwnProperty;function e7e(n,e,t){return typeof e!="string"&&(t=e,e=void 0),t7e(t)($8e(V8e(t).document().write(H8e()(n,e,!0))))}function t7e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pn),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(Bt),blockQuote:o(Ce),characterEscape:$,characterReference:$,codeFenced:o(it),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(it,s),codeText:o(pt,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(Ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(St),hardBreakEscape:o(_t),hardBreakTrailing:o(_t),htmlFlow:o(Jt,s),htmlFlowData:$,htmlText:o(Jt,s),htmlTextData:$,image:o(un),label:s,link:o(Pn),listItem:o(Un),listItemValue:E,listOrdered:o(Jn,v),listUnordered:o(Jn),paragraph:o(Sn),reference:Ke,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Bt),strong:o(Qn),thematicBreak:o(vn)},exit:{atxHeading:c(),atxHeadingSequence:re,autolink:c(),autolinkEmail:Ie,autolinkProtocol:Le,blockQuote:c(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:Ct,characterReference:It,codeFenced:c(W),codeFencedFence:F,codeFencedFenceInfo:I,codeFencedFenceMeta:U,codeFlowValue:ue,codeIndented:c(V),codeText:c(Pe),codeTextData:ue,data:ue,definition:c(),definitionDestinationString:oe,definitionLabelString:Y,definitionTitleString:ee,emphasis:c(),hardBreakEscape:c(be),hardBreakTrailing:c(be),htmlFlow:c(me),htmlFlowData:ue,htmlText:c(xe),htmlTextData:ue,image:c(Qe),label:je,labelText:nt,lineEnding:de,link:c(ke),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Xe,resourceDestinationString:Re,resourceTitleString:Ne,resource:lt,setextHeading:c(ce),setextHeadingLineSequence:X,setextHeadingText:ie,strong:c(),thematicBreak:c()}};wse(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(vt){let Se={type:"root",children:[]};const Ae={stack:[Se],tokenStack:[],config:e,enter:a,exit:d,buffer:s,resume:g,data:t},fe=[];let ze=-1;for(;++ze<vt.length;)if(vt[ze][1].type==="listOrdered"||vt[ze][1].type==="listUnordered")if(vt[ze][0]==="enter")fe.push(ze);else{const At=fe.pop();ze=r(vt,At,ze)}for(ze=-1;++ze<vt.length;){const At=e[vt[ze][0]];xse.call(At,vt[ze][1].type)&&At[vt[ze][1].type].call(Object.assign({sliceSerialize:vt[ze][2].sliceSerialize},Ae),vt[ze][1])}if(Ae.tokenStack.length>0){const At=Ae.tokenStack[Ae.tokenStack.length-1];(At[1]||vq).call(Ae,void 0,At[0])}for(Se.position={start:pv(vt.length>0?vt[0][1].start:{line:1,column:1,offset:0}),end:pv(vt.length>0?vt[vt.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<e.transforms.length;)Se=e.transforms[ze](Se)||Se;return Se}function r(vt,Se,Ae){let fe=Se-1,ze=-1,At=!1,Ot,Dt,Tn,Gn;for(;++fe<=Ae;){const yt=vt[fe];switch(yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yt[0]==="enter"?ze++:ze--,Gn=void 0;break}case"lineEndingBlank":{yt[0]==="enter"&&(Ot&&!Gn&&!ze&&!Tn&&(Tn=fe),Gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gn=void 0}if(!ze&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||ze===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(Ot){let Ft=fe;for(Dt=void 0;Ft--;){const C=vt[Ft];if(C[1].type==="lineEnding"||C[1].type==="lineEndingBlank"){if(C[0]==="exit")continue;Dt&&(vt[Dt][1].type="lineEndingBlank",At=!0),C[1].type="lineEnding",Dt=Ft}else if(!(C[1].type==="linePrefix"||C[1].type==="blockQuotePrefix"Line truncated
|
||||
`}]}function s7e(n,e){const t=e.value?e.value+`
|
||||
@@ -906,7 +906,7 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
||||
|
||||
“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”
|
||||
|
||||
`,cae=(function(n){aF(t,n);var e=lF(t);function t(){var i;SO(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Ya(Qm(i),"ref",void 0),Ya(Qm(i),"setRef",function(a){i.ref=a}),i}return EO(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return ct.createElement("div",Pg({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(wke)}}]),t})(ct.PureComponent);Ya(cae,"defaultProps",xke);var Aae=function(e){return ct.createElement(OO,null,function(t){var i=t.headingAttributes;return e.id&&aw(e.id),ct.createElement(cae,Pg({},e,i))})};Aae.displayName=sae.AccordionItemHeading;var Mke=["className","region","id"],Ske=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=BO(e,Mke),a=function(d){var g=d.panelAttributes;o&&aw(o);var v=zP(zP({},g),{},{"aria-labelledby":r?g["aria-labelledby"]:void 0});return ct.createElement("div",Pg({"data-accordion-component":"AccordionItemPanel",className:i},s,v,{role:r?"region":void 0}))};return ct.createElement(OO,null,a)};function lw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="ee4be309accf3b6f15b0a988cbdadd67c7132608",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:18},end:{line:3,column:19}},loc:{start:{line:3,column:29},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,OAAO,eAAsC;AAM7C,MAAM,YAAsC,CAAC,UAAU;AACrD,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee4be309accf3b6f15b0a988cbdadd67c7132608"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return lw=function(){return s},s}lw();lw().s[0]++;const TO=n=>(lw().f[0]++,lw().s[1]++,le.jsx(xoe,{...n}));function uw(n){return _o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"},child:[]},{tag:"path",attr:{d:"M5 12h6"},child:[]},{tag:"path",attr:{d:"M15 12l6 6"},child:[]},{tag:"path",attr:{d:"M15 18l6 -6"},child:[]}]})(n)}function kO(n){return _o({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm104,40H40a12,12,0,0,0,0,24H144a12,12,0,0,0,0-24Zm88,0H220V168a12,12,0,0,0-24,0v12H184a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V204h12a12,12,0,0,0,0-24Z"},child:[]}]})(n)}function LC(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return LC=function(){return s},s}LC();const uF=(LC().s[0]++,["all","any","none"]);LC().s[1]++;const Eke=(LC().s[2]++,Object.keys(Vr.filter_operator.values).filter(n=>(LC().f[0]++,LC().s[3]++,uF.indexOf(n)<0)));function Vi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="d18e3b448d830733ac17bcacd45f7c08e364baa2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,col
Line truncated
|
||||
`,cae=(function(n){aF(t,n);var e=lF(t);function t(){var i;SO(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Ya(Qm(i),"ref",void 0),Ya(Qm(i),"setRef",function(a){i.ref=a}),i}return EO(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return ct.createElement("div",Pg({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(wke)}}]),t})(ct.PureComponent);Ya(cae,"defaultProps",xke);var Aae=function(e){return ct.createElement(OO,null,function(t){var i=t.headingAttributes;return e.id&&aw(e.id),ct.createElement(cae,Pg({},e,i))})};Aae.displayName=sae.AccordionItemHeading;var Mke=["className","region","id"],Ske=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=BO(e,Mke),a=function(d){var g=d.panelAttributes;o&&aw(o);var v=zP(zP({},g),{},{"aria-labelledby":r?g["aria-labelledby"]:void 0});return ct.createElement("div",Pg({"data-accordion-component":"AccordionItemPanel",className:i},s,v,{role:r?"region":void 0}))};return ct.createElement(OO,null,a)};function lw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="ee4be309accf3b6f15b0a988cbdadd67c7132608",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:18},end:{line:3,column:19}},loc:{start:{line:3,column:29},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,OAAO,eAAsC;AAM7C,MAAM,YAAsC,CAAC,UAAU;AACrD,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee4be309accf3b6f15b0a988cbdadd67c7132608"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return lw=function(){return s},s}lw();lw().s[0]++;const TO=n=>(lw().f[0]++,lw().s[1]++,le.jsx(xoe,{...n}));function uw(n){return _o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"},child:[]},{tag:"path",attr:{d:"M5 12h6"},child:[]},{tag:"path",attr:{d:"M15 12l6 6"},child:[]},{tag:"path",attr:{d:"M15 18l6 -6"},child:[]}]})(n)}function kO(n){return _o({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm104,40H40a12,12,0,0,0,0,24H144a12,12,0,0,0,0-24Zm88,0H220V168a12,12,0,0,0-24,0v12H184a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V204h12a12,12,0,0,0,0-24Z"},child:[]}]})(n)}function LC(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return LC=function(){return s},s}LC();const uF=(LC().s[0]++,["all","any","none"]);LC().s[1]++;const Eke=(LC().s[2]++,Object.keys(Vr.filter_operator.values).filter(n=>(LC().f[0]++,LC().s[3]++,uF.indexOf(n)<0)));function Vi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="d18e3b448d830733ac17bcacd45f7c08e364baa2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,col
Line truncated
|
||||
rgba(`+oe.r+","+oe.g+","+oe.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:oe.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+oe.r+","+oe.g+","+oe.b+`, 0) 0%,
|
||||
rgba(`+oe.r+","+oe.g+","+oe.b+", 1) 100%)"},pointer:{left:0,top:oe.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:re.alpha},i.default.createElement("div",{style:re.checkboard},i.default.createElement(d.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:re.gradient}),i.default.createElement("div",{style:re.container,ref:function(X){return ee.container=X},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:re.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:re.slider}))))}}]),V})(t.PureComponent||t.Component);return f2.default=F,f2}var m2={},wH;function YDe(){if(wH)return m2;wH=1,Object.defineProperty(m2,"__esModule",{value:!0}),m2.EditableInput=void 0;var n=(function(){function Y(ee,oe){for(var re=0;re<oe.length;re++){var ie=oe[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ee,ie.key,ie)}}return function(ee,oe,re){return oe&&Y(ee.prototype,oe),re&&Y(ee,re),ee}})(),e=Hl(),t=o(e),i=d0(),r=o(i);function o(Y){return Y&&Y.__esModule?Y:{default:Y}}function s(Y,ee,oe){return ee in Y?Object.defineProperty(Y,ee,{value:oe,enumerable:!0,configurable:!0,writable:!0}):Y[ee]=oe,Y}function a(Y,ee){if(!(Y instanceof ee))throw new TypeError("Cannot call a class as a function")}function c(Y,ee){if(!Y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:Y}function d(Y,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);Y.prototype=Object.create(ee&&ee.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(Y,ee):Y.__proto__=ee)}var g=1,v=38,E=40,I=[v,E],U=function(ee){return I.indexOf(ee)>-1},F=function(ee){return Number(String(ee).replace(/%/g,""))},W=1,V=m2.EditableInput=(function(Y){d(ee,Y);function ee(oe){a(this,ee);var re=c(this,(ee.__proto__||Object.getPrototypeOf(ee)).call(this));return re.handleBlur=function(){re.state.blurValue&&re.setState({value:re.state.blurValue,blurValue:null})},re.handleChange=function(ie){re.setUpdatedValue(ie.target.value,ie)},re.handleKeyDown=function(ie){var X=F(ie.target.value);if(!isNaN(X)&&U(ie.keyCode)){var ce=re.getArrowOffset(),$=ie.keyCode===v?X+ce:X-ce;re.setUpdatedValue($,ie)}},re.handleDrag=function(ie){if(re.props.dragLabel){var X=Math.round(re.props.value+ie.movementX);X>=0&&X<=re.props.dragMax&&re.props.onChange&&re.props.onChange(re.getValueObjectWithLabel(X),ie)}},re.handleMouseDown=function(ie){re.props.dragLabel&&(ie.preventDefault(),re.handleDrag(ie),window.addEventListener("mousemove",re.handleDrag),window.addEventListener("mouseup",re.handleMouseUp))},re.handleMouseUp=function(){re.unbindEventListeners()},re.unbindEventListeners=function(){window.removeEventListener("mousemove",re.handleDrag),window.removeEventListener("mouseup",re.handleMouseUp)},re.state={value:String(oe.value).toUpperCase(),blurValue:String(oe.value).toUpperCase()},re.inputId="rc-editable-input-"+W++,re}return n(ee,[{key:"componentDidUpdate",value:function(re,ie){this.props.value!==this.state.value&&(re.value!==this.props.value||ie.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(re){return s({},this.props.label,re)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||g}},{key:"setUpdatedValue",value:function(re,ie){var X=this.props.label?this.getValueObjectWithLabel(re):re;this.props.onChange&&this.props.onChange(X,ie),this.setState({value:re})}},{key:"render",value:function(){var re=this,ie=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ie.wrap},t.default.createElement("input",{id:this.inputId,style:ie.input,ref:function(ce){return re.input=ce},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:ie.label,onM
Line truncated
|
||||
.hue-horizontal {
|
||||
@@ -932,7 +932,7 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
||||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
}
|
||||
`),t.default.createElement("div",{style:$.white,className:"saturation-white"},t.default.createElement("div",{style:$.black,className:"saturation-black"}),t.default.createElement("div",{style:$.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:$.circle}))))}}]),W})(e.PureComponent||e.Component);return v2.default=U,v2}var b2={},od={},Q9,LH;function rRe(){if(LH)return Q9;LH=1;var n=Rae(),e=Dae(),t=yae(),i=tp();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return Q9=r,Q9}var q9,UH;function oRe(){return UH||(UH=1,q9=rRe()),q9}var xE={exports:{}},sRe=xE.exports,KH;function aRe(){return KH||(KH=1,(function(n,e){(function(t,i){n.exports=i()})(sRe,(function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},t(Le)}var i=/^\s+/,r=/\s+$/;function o(Le,Ie){if(Le=Le||"",Ie=Ie||{},Le instanceof o)return Le;if(!(this instanceof o))return new o(Le,Ie);var Ce=s(Le);this._originalInput=Le,this._r=Ce.r,this._g=Ce.g,this._b=Ce.b,this._a=Ce.a,this._roundA=Math.round(100*this._a)/100,this._format=Ie.format||Ce.format,this._gradientType=Ie.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ce.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ie=this.toRgb();return(Ie.r*299+Ie.g*587+Ie.b*114)/1e3},getLuminance:function(){var Ie=this.toRgb(),Ce,it,pt,Ve,St,Bt;return Ce=Ie.r/255,it=Ie.g/255,pt=Ie.b/255,Ce<=.03928?Ve=Ce/12.92:Ve=Math.pow((Ce+.055)/1.055,2.4),it<=.03928?St=it/12.92:St=Math.pow((it+.055)/1.055,2.4),pt<=.03928?Bt=pt/12.92:Bt=Math.pow((pt+.055)/1.055,2.4),.2126*Ve+.7152*St+.0722*Bt},setAlpha:function(Ie){return this._a=xe(Ie),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ie=g(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,v:Ie.v,a:this._a}},toHsvString:function(){var Ie=g(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.v*100);return this._a==1?"hsv("+Ce+", "+it+"%, "+pt+"%)":"hsva("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHsl:function(){var Ie=c(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,l:Ie.l,a:this._a}},toHslString:function(){var Ie=c(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.l*100);return this._a==1?"hsl("+Ce+", "+it+"%, "+pt+"%)":"hsla("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHex:function(Ie){return E(this._r,this._g,this._b,Ie)},toHexString:function(Ie){return"#"+this.toHex(Ie)},toHex8:function(Ie){return I(this._r,this._g,this._b,this._a,Ie)},toHex8String:function(Ie){return"#"+this.toHex8(Ie)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Pe(this._r,255)*100)+"%",g:Math.round(Pe(this._g,255)*100)+"%",b:Math.round(Pe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Pe(this._r,255)*100)+"%, "+Math.round(Pe(this._g,255)*100)+"%, "+Math.round(Pe(this._b,255)*100)+"%)":"rgba("+Math.round(Pe(this._r,255)*100)+"%, "+Math.round(Pe(this._g,255)*100)+"%, "+Math.round(Pe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:be[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ie){var Ce="#"+U(this._r,this._g,this._b,this._a),it=Ce,pt=this._gradientType?"GradientType = 1, ":"";if(Ie){var Ve=o(Ie);it="#"+U(Ve._r,Ve._g,Ve._b,Ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+pt+"startColorstr="+Ce+",endColorstr="+it+")"},toString:function(Ie){var Ce=!!Ie;Ie=Ie||this._format;var it=!1,pt=this._a<1&&this._a>=0,Ve=!Ce&&pt&&(Ie==="hex"||Ie==="hex6"||Ie==="hex3"||Ie==="hex4"||Ie==="hex8"||Ie==="name");return Ve?Ie==="name"&&this._a===0?this.toName():this.toRgbString():(Ie==="rgb"&&(it=this.toRgbString()),Ie==="prgb"&&(it=this.toPercentageRgbString()),(Ie==="hex"||Ie==="hex6")&&(it=this.toHexString()),Ie==="hex3"&&(it=this.toHexString(!0)),Ie==="hex4"&&(it=this.toHex8String(!0)),Ie==="hex8"&&(it=this.toHex8String()),Ie==="name"&&(it=this.toName()),Ie==="hsl"&&(it=this.toHslString()),Ie==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ie,Ce){var it=Ie.apply(
Line truncated
|
||||
`),t.default.createElement("div",{style:$.white,className:"saturation-white"},t.default.createElement("div",{style:$.black,className:"saturation-black"}),t.default.createElement("div",{style:$.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:$.circle}))))}}]),W})(e.PureComponent||e.Component);return v2.default=U,v2}var b2={},od={},Q9,LH;function rRe(){if(LH)return Q9;LH=1;var n=Rae(),e=Dae(),t=yae(),i=tp();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return Q9=r,Q9}var q9,UH;function oRe(){return UH||(UH=1,q9=rRe()),q9}var xE={exports:{}},sRe=xE.exports,KH;function aRe(){return KH||(KH=1,(function(n,e){(function(t,i){n.exports=i()})(sRe,(function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},t(Le)}var i=/^\s+/,r=/\s+$/;function o(Le,Ie){if(Le=Le||"",Ie=Ie||{},Le instanceof o)return Le;if(!(this instanceof o))return new o(Le,Ie);var Ce=s(Le);this._originalInput=Le,this._r=Ce.r,this._g=Ce.g,this._b=Ce.b,this._a=Ce.a,this._roundA=Math.round(100*this._a)/100,this._format=Ie.format||Ce.format,this._gradientType=Ie.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ce.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ie=this.toRgb();return(Ie.r*299+Ie.g*587+Ie.b*114)/1e3},getLuminance:function(){var Ie=this.toRgb(),Ce,it,pt,Ve,St,Bt;return Ce=Ie.r/255,it=Ie.g/255,pt=Ie.b/255,Ce<=.03928?Ve=Ce/12.92:Ve=Math.pow((Ce+.055)/1.055,2.4),it<=.03928?St=it/12.92:St=Math.pow((it+.055)/1.055,2.4),pt<=.03928?Bt=pt/12.92:Bt=Math.pow((pt+.055)/1.055,2.4),.2126*Ve+.7152*St+.0722*Bt},setAlpha:function(Ie){return this._a=xe(Ie),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ie=g(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,v:Ie.v,a:this._a}},toHsvString:function(){var Ie=g(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.v*100);return this._a==1?"hsv("+Ce+", "+it+"%, "+pt+"%)":"hsva("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHsl:function(){var Ie=c(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,l:Ie.l,a:this._a}},toHslString:function(){var Ie=c(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.l*100);return this._a==1?"hsl("+Ce+", "+it+"%, "+pt+"%)":"hsla("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHex:function(Ie){return E(this._r,this._g,this._b,Ie)},toHexString:function(Ie){return"#"+this.toHex(Ie)},toHex8:function(Ie){return I(this._r,this._g,this._b,this._a,Ie)},toHex8String:function(Ie){return"#"+this.toHex8(Ie)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Pe(this._r,255)*100)+"%",g:Math.round(Pe(this._g,255)*100)+"%",b:Math.round(Pe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Pe(this._r,255)*100)+"%, "+Math.round(Pe(this._g,255)*100)+"%, "+Math.round(Pe(this._b,255)*100)+"%)":"rgba("+Math.round(Pe(this._r,255)*100)+"%, "+Math.round(Pe(this._g,255)*100)+"%, "+Math.round(Pe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:be[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ie){var Ce="#"+U(this._r,this._g,this._b,this._a),it=Ce,pt=this._gradientType?"GradientType = 1, ":"";if(Ie){var Ve=o(Ie);it="#"+U(Ve._r,Ve._g,Ve._b,Ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+pt+"startColorstr="+Ce+",endColorstr="+it+")"},toString:function(Ie){var Ce=!!Ie;Ie=Ie||this._format;var it=!1,pt=this._a<1&&this._a>=0,Ve=!Ce&&pt&&(Ie==="hex"||Ie==="hex6"||Ie==="hex3"||Ie==="hex4"||Ie==="hex8"||Ie==="name");return Ve?Ie==="name"&&this._a===0?this.toName():this.toRgbString():(Ie==="rgb"&&(it=this.toRgbString()),Ie==="prgb"&&(it=this.toPercentageRgbString()),(Ie==="hex"||Ie==="hex6")&&(it=this.toHexString()),Ie==="hex3"&&(it=this.toHexString(!0)),Ie==="hex4"&&(it=this.toHex8String(!0)),Ie==="hex8"&&(it=this.toHex8String()),Ie==="name"&&(it=this.toName()),Ie==="hsl"&&(it=this.toHslString()),Ie==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ie,Ce){var it=Ie.apply(
Line truncated
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@@ -956,5 +956,5 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
||||
<\/script>
|
||||
</body>
|
||||
</html>
|
||||
`),r=(ci().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(ci().s[10]++,this.exportName());ci().s[11]++,AZ.saveAs(r,o+".html")}async saveStyle(){ci().f[3]++;const e=(ci().s[12]++,this.tokenizedStyle());if(ci().s[13]++,dZ)ci().b[2][1]++;else{ci().b[2][0]++;const r=(ci().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(ci().s[15]++,this.exportName());ci().s[16]++,AZ.saveAs(r,o+".json"),ci().s[17]++;return}let t=(ci().s[18]++,this.props.fileHandle);if(ci().s[19]++,t==null)if(ci().b[3][0]++,ci().s[20]++,t=await this.createFileHandle(),ci().s[21]++,this.props.onSetFileHandle(t),ci().s[22]++,t==null){ci().b[4][0]++,ci().s[23]++;return}else ci().b[4][1]++;else ci().b[3][1]++;const i=(ci().s[24]++,await t.createWritable());ci().s[25]++,await i.write(e),ci().s[26]++,await i.close(),ci().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){ci().f[4]++;const e=(ci().s[28]++,this.tokenizedStyle()),t=(ci().s[29]++,await this.createFileHandle());if(ci().s[30]++,this.props.onSetFileHandle(t),ci().s[31]++,t==null){ci().b[5][0]++,ci().s[32]++;return}else ci().b[5][1]++;const i=(ci().s[33]++,await t.createWritable());ci().s[34]++,await i.write(e),ci().s[35]++,await i.close(),ci().s[36]++,this.props.onOpenToggle()}async createFileHandle(){ci().f[5]++;const e=(ci().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(ci().s[38]++,await window.showSaveFilePicker(e));return ci().s[39]++,this.props.onSetFileHandle(t),ci().s[40]++,t}changeMetadataProperty(e,t){ci().f[6]++;const i=(ci().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});ci().s[42]++,this.props.onStyleChanged(i)}render(){ci().f[7]++;const e=(ci().s[43]++,this.props.t),t=(ci().s[44]++,ole(e));return ci().s[45]++,le.jsx(by,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:le.jsxs("section",{className:"maputnik-modal-section",children:[le.jsx("h1",{children:e("Save Style")}),le.jsx("p",{children:e("Save the JSON style to your computer.")}),le.jsxs("div",{children:[le.jsx($d,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(ci().b[6][0]++,this.props.mapStyle.metadata||(ci().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),le.jsx($d,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(ci().b[7][0]++,this.props.mapStyle.metadata||(ci().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),le.jsx($d,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(ci().b[8][0]++,this.props.mapStyle.metadata||(ci().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),le.jsx($d,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(ci().b[9][0]++,this.props.mapStyle.metadata||(ci().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),le.jsxs("div",{className:"maputnik-modal-export-buttons",children:[le.jsxs($s,{onClick:this.saveStyle.bind(this),children:[le.jsx(SD,{}),e("Save")]}),(ci().b[10][0]++,dZ&&(ci().b[10][1]++,le.jsxs($s,{onClick:this.saveStyleAs.bind(this),children:[le.jsx(SD,{}),e("Save as")]}))),le.jsxs($s,{onClick:this.createHtml.bind(this),children:[le.jsx(upe,{}),e("Create HTML")]})]})]})})}}const XPe=(ci().s[46]++,Fo()(ZPe));function vw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return vw=function(){return s},s}vw();vw().s[0]++;const sle=n=>(vw().f[0]++,vw().s[1]++,le.jsx(Ev,{label:n.label,children:le.jsx(ME,{...n})}));function bw(){var n="/home/runner/work/maputnik/maputnik/src/components/Fi
Line truncated
|
||||
//# sourceMappingURL=index-DA4BEWGl.js.map
|
||||
`),r=(ci().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(ci().s[10]++,this.exportName());ci().s[11]++,AZ.saveAs(r,o+".html")}async saveStyle(){ci().f[3]++;const e=(ci().s[12]++,this.tokenizedStyle());if(ci().s[13]++,dZ)ci().b[2][1]++;else{ci().b[2][0]++;const r=(ci().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(ci().s[15]++,this.exportName());ci().s[16]++,AZ.saveAs(r,o+".json"),ci().s[17]++;return}let t=(ci().s[18]++,this.props.fileHandle);if(ci().s[19]++,t==null)if(ci().b[3][0]++,ci().s[20]++,t=await this.createFileHandle(),ci().s[21]++,this.props.onSetFileHandle(t),ci().s[22]++,t==null){ci().b[4][0]++,ci().s[23]++;return}else ci().b[4][1]++;else ci().b[3][1]++;const i=(ci().s[24]++,await t.createWritable());ci().s[25]++,await i.write(e),ci().s[26]++,await i.close(),ci().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){ci().f[4]++;const e=(ci().s[28]++,this.tokenizedStyle()),t=(ci().s[29]++,await this.createFileHandle());if(ci().s[30]++,this.props.onSetFileHandle(t),ci().s[31]++,t==null){ci().b[5][0]++,ci().s[32]++;return}else ci().b[5][1]++;const i=(ci().s[33]++,await t.createWritable());ci().s[34]++,await i.write(e),ci().s[35]++,await i.close(),ci().s[36]++,this.props.onOpenToggle()}async createFileHandle(){ci().f[5]++;const e=(ci().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(ci().s[38]++,await window.showSaveFilePicker(e));return ci().s[39]++,this.props.onSetFileHandle(t),ci().s[40]++,t}changeMetadataProperty(e,t){ci().f[6]++;const i=(ci().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});ci().s[42]++,this.props.onStyleChanged(i)}render(){ci().f[7]++;const e=(ci().s[43]++,this.props.t),t=(ci().s[44]++,ole(e));return ci().s[45]++,le.jsx(by,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:le.jsxs("section",{className:"maputnik-modal-section",children:[le.jsx("h1",{children:e("Save Style")}),le.jsx("p",{children:e("Save the JSON style to your computer.")}),le.jsxs("div",{children:[le.jsx(Hd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(ci().b[6][0]++,this.props.mapStyle.metadata||(ci().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),le.jsx(Hd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(ci().b[7][0]++,this.props.mapStyle.metadata||(ci().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),le.jsx(Hd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(ci().b[8][0]++,this.props.mapStyle.metadata||(ci().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),le.jsx(Hd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(ci().b[9][0]++,this.props.mapStyle.metadata||(ci().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),le.jsxs("div",{className:"maputnik-modal-export-buttons",children:[le.jsxs($s,{onClick:this.saveStyle.bind(this),children:[le.jsx(SD,{}),e("Save")]}),(ci().b[10][0]++,dZ&&(ci().b[10][1]++,le.jsxs($s,{onClick:this.saveStyleAs.bind(this),children:[le.jsx(SD,{}),e("Save as")]}))),le.jsxs($s,{onClick:this.createHtml.bind(this),children:[le.jsx(upe,{}),e("Create HTML")]})]})]})})}}const XPe=(ci().s[46]++,Fo()(ZPe));function vw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return vw=function(){return s},s}vw();vw().s[0]++;const sle=n=>(vw().f[0]++,vw().s[1]++,le.jsx(Ev,{label:n.label,children:le.jsx(ME,{...n})}));function bw(){var n="/home/runner/work/maputnik/maputnik/src/components/Fi
Line truncated
|
||||
//# sourceMappingURL=index-DnyMIm3a.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"mappings":"ysDAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,4CC9BbO,GAAA,QAAiBC,IAAA,4FCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,GAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,GAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,GACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACxB,SAASC,IAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,EAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,GAAMA,EAAI,GACtBkB,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAW9B,GAAU,CACzE,IAAI7B,GAAO,OAAOwD,IACExD,KAAhB,aAAsCA,KAAd,aAAoBwD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ5D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH4D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK3D,EACL,KAAKW,EACHoD,GAAiB,GACjB,MACF,KAAK5C,EACH,OACG4C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACA9B,EAChB,CAEA,CACA,CACE,GAAI+B,GACF,OACG/B,GAAWA,GAAS2B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMX,GAAcQ,GAAU,CAAC,EAAIG,GACxD1B,GAAYJ,EAAQ,GACd6B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQb,GAA4B,KAAK,EAAI,KAChEQ,GAAa1B,GAAU4B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOhC,IAAR,OACCa,GAAeb,EAAQ,IACrBA,GAAWU,GACVV,GACA6B,IACW7B,GAAS,KAAjB,MACA2B,IAAYA,GAAS,MAAQ3B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBkB,GACA,OACE,KACRa,EAChB,GACUH,GAAM,KAAK5B,EAAQ,GACvB,EAEJ+B,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI1B,GAAYuB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpB/D,GAAO8D,GAAiBd,GAAcW,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACakC,GAAI5C,EAAcqC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB3D,GAAO8D,GAAiBd,GAAcW,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACwB7B,KAAb,SAAmB,CAC1B,GAAmB,OAAOwD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACA9B,IAEJ,MAAA4B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMvC,GAAS,CAC5C,GAAY8B,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKvC,GAAS0C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKLine truncated
|
||||
{"version":3,"mappings":"ysDAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,4CC9BbO,GAAA,QAAiBC,IAAA,4FCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,GAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,GAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,GACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACxB,SAASC,IAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,EAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,GAAMA,EAAI,GACtBkB,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAW9B,GAAU,CACzE,IAAI7B,GAAO,OAAOwD,IACExD,KAAhB,aAAsCA,KAAd,aAAoBwD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ5D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH4D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK3D,EACL,KAAKW,EACHoD,GAAiB,GACjB,MACF,KAAK5C,EACH,OACG4C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACA9B,EAChB,CAEA,CACA,CACE,GAAI+B,GACF,OACG/B,GAAWA,GAAS2B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMX,GAAcQ,GAAU,CAAC,EAAIG,GACxD1B,GAAYJ,EAAQ,GACd6B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQb,GAA4B,KAAK,EAAI,KAChEQ,GAAa1B,GAAU4B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOhC,IAAR,OACCa,GAAeb,EAAQ,IACrBA,GAAWU,GACVV,GACA6B,IACW7B,GAAS,KAAjB,MACA2B,IAAYA,GAAS,MAAQ3B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBkB,GACA,OACE,KACRa,EAChB,GACUH,GAAM,KAAK5B,EAAQ,GACvB,EAEJ+B,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI1B,GAAYuB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpB/D,GAAO8D,GAAiBd,GAAcW,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACakC,GAAI5C,EAAcqC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB3D,GAAO8D,GAAiBd,GAAcW,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACwB7B,KAAb,SAAmB,CAC1B,GAAmB,OAAOwD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACA9B,IAEJ,MAAA4B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMvC,GAAS,CAC5C,GAAY8B,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKvC,GAAS0C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKLine truncated
|
||||
Reference in new issue
Block a user