1import{c as a,d as l,u as h}from"./chunk-DQ_Rr0Zn.js";function tt(e,t,i,n,s){if(s){let o=i;i=function(a){return e.removeEventListener(t,i),o.call(n??this,a)}}else n&&n!==e&&(i=i.bind(n));let r={target:e,type:t,listener:i};return e.addEventListener(t,i),r}function R(e,t,i,n){return tt(e,t,i,n,!0)}function V(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),a(e))}function gt(){throw new Error(`Unimplemented abstract method.`)}var et=0;function mt(e){return e.ol_uid||(e.ol_uid=String(++et))}var d=typeof navigator<`u`&&typeof navigator.userAgent<`u`?navigator.userAgent.toLowerCase():``;d.includes(`safari`)&&!d.includes(`chrom`)&&(d.includes(`version/15.4`)||/cpu (os|iphone os) 15_4 like mac os x/.test(d));var xt=d.includes(`webkit`)&&!d.includes(`edge`);var Ct=d.includes(`macintosh`);var vt=typeof devicePixelRatio<`u`?devicePixelRatio:1;var q=typeof WorkerGlobalScope<`u`&&typeof OffscreenCanvas<`u`&&self instanceof WorkerGlobalScope;var v=typeof Image<`u`&&Image.prototype.decode;var L=typeof createImageBitmap==`function`;var yt=(function(){let e=!1;try{let t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`_`,null,t),window.removeEventListener(`_`,null,t)}catch(t){}return e})();function p(e,t,i,n){let s;return i&&i.length?s=i.shift():q?s=new class extends OffscreenCanvas{style={}}(e??300,t??150):s=document.createElement(`canvas`),e&&(s.width=e),t&&(s.height=t),s.getContext(`2d`,n)}var D;function O(){return D||(D=p(1,1)),D}function Rt(e){let t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function Lt(e,t){let i=t.parentNode;i&&i.replaceChild(e,t)}function Dt(e){for(;e.lastChild;)e.lastChild.remove()}function Ot(e,t){let i=e.childNodes;for(let n=0;;++n){let s=i[n],r=t[n];if(!s&&!r)break;if(s!==r){if(!s){e.appendChild(r);continue}if(!r){e.removeChild(s),--n;continue}e.insertBefore(r,s)}}}function At(){return new Proxy({childNodes:[],appendChild:function(t){return this.childNodes.push(t),t},remove:function(){},removeChild:function(t){let i=this.childNodes.indexOf(t);if(i===-1)throw new Error(`Node to remove was not found`);return this.childNodes.splice(i,1),t},insertBefore:function(t,i){let n=this.childNodes.indexOf(i);if(n===-1)throw new Error(`Reference node not found`);return this.childNodes.splice(n,0,t),t},style:{}},{get(t,i,n){return i===`firstElementChild`?t.childNodes.length>0?t.childNodes[0]:null:Reflect.get(t,i,n)}})}function wt(e){return typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas}var it=[NaN,NaN,NaN,0];var A;function st(){return A||(A=p(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),A}var rt=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i;var ot=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i;var at=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i;var ct=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function y(e,t){return e.endsWith(`%`)?Number(e.substring(0,e.length-1))/t:Number(e)}function _(e){throw new Error(`failed to parse "`+e+`" as color`)}function U(e){if(e.toLowerCase().startsWith(`rgb`)){let r=e.match(ot)||e.match(rt)||e.match(at);if(r){let o=r[4],a=100/255;return[h(y(r[1],a)+.5|0,0,255),h(y(r[2],a)+.5|0,0,255),h(y(r[3],a)+.5|0,0,255),o!==void 0?h(y(o,100),0,1):1]}_(e)}if(e.startsWith(`#`)){if(ct.test(e)){let r=e.substring(1),o=r.length<=4?1:2,a=[0,0,0,255];for(let h=0,l=r.length;h<l;h+=o){let g=parseInt(r.substring(h,h+o),16);o===1&&(g+=g<<4),a[h/o]=g}return a[3]=a[3]/255,a}_(e)}let t=st();t.fillStyle=`#abcdef`;let i=t.fillStyle;t.fillStyle=e,t.fillStyle===i&&(t.fillStyle=`#fedcba`,i=t.fillStyle,t.fillStyle=e,t.fillStyle===i&&_(e));let n=t.fillStyle;if(n.startsWith(`#`)||n.startsWith(`rgba`))return U(n);t.clearRect(0,0,1,1),t.fillRect(0,0,1,1);let s=Array.from(t.getImageData(0,0,1,1).data);return s[3]=l(s[3]/255,3),s}function $(e){return typeof e==`string`?e:ft(e)}var ht=1024;var m={};var w=0;function Mt(e){if(e.length===4)return e;let t=e.slice();return t[3]=1,t}function N(e){return e>.0031308?Math.pow(e,1/2.4)*269.025-14.025:e*3294.6}function P(e){return e>.2068965?Math.pow(e,3):(e-4/29)*(108/841)}function b(e){return e>10.314724?Math.pow((e+14.025)/269.025,2.4):e/3294.6}function T(e){return e>.0088564?Math.pow(e,1/3):e/(108/841)+4/29}function zt(e){let t=b(e[0]),i=b(e[1]),n=b(e[2]),s=T(t*.222488403+i*.716873169+n*.06060791),r=500*(T(t*.452247074+i*.399439023+n*.148375274)-s),o=200*(s-T(t*.016863605+i*.117638439+n*.865350722)),a=Math.atan2(o,r)*(180/Math.PI);return[116*s-16,Math.sqrt(r*r+o*o),a<0?a+360:a,e[3]]}function Gt(e){let t=(e[0]+16)/116,i=e[1],n=e[2]*Math.PI/180,s=P(t),r=P(t+i/500*Math.cos(n)),o=P(t-i/200*Math.sin(n)),a=N(r*3.021973625-s*1.617392459-o*.404875592),h$1=N(r*-.943766287+s*1.916279586+o*.027607165),l=N(r*.069407491-s*.22898585+o*1.159737864);return[h(a+.5|0,0,255),h(h$1+.5|0,0,255),h(l+.5|0,0,255),e[3]]}function lt(e){if(e===`none`)return it;if(m.hasOwnProperty(e))return m[e];if(w>=ht){let i=0;for(let n in m)!(i++&3)&&(delete m[n],--w)}let t=U(e);t.length!==4&&_(e);for(let i of t)isNaN(i)&&_(e);return m[e]=t,++w,t}function X(e){return Array.isArray(e)?e:lt(e)}function ft(e){let t=e[0];t!=(t|0)&&(t=t+.5|0);let i=e[1];i!=(i|0)&&(i=i+.5|0);let n=e[2];n!=(n|0)&&(n=n+.5|0);let s=e[3]===void 0?1:Math.round(e[3]*1e3)/1e3;return`rgba(`+t+`,`+i+`,`+n+`,`+s+`)`}var c={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};
1var u={CHANGE:`change`,ERROR:`error`,BLUR:`blur`,CLEAR:`clear`,CONTEXTMENU:`contextmenu`,CLICK:`click`,DBLCLICK:`dblclick`,DRAGENTER:`dragenter`,DRAGOVER:`dragover`,DROP:`drop`,FOCUS:`focus`,KEYDOWN:`keydown`,KEYPRESS:`keypress`,LOAD:`load`,RESIZE:`resize`,TOUCHMOVE:`touchmove`,WHEEL:`wheel`};var M=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};var Y=M;function Wt(e,t,i){let n,s;i=i||Z;let r=0,o=e.length,a=!1;for(;r<o;)n=r+(o-r>>1),s=+i(e[n],t),s<0?r=n+1:(o=n,a=!s);return a?r:~r}function Z(e,t){return e>t?1:e<t?-1:0}function Kt(e,t){return e<t?1:e>t?-1:0}function Vt(e,t,i){if(e[0]<=t)return 0;let n=e.length;if(t<=e[n-1])return n-1;if(typeof i==`function`){for(let s=1;s<n;++s){let r=e[s];if(r===t)return s;if(r<t)return i(t,e[s-1],r)>0?s-1:s}return n-1}if(i>0){for(let s=1;s<n;++s)if(e[s]<t)return s-1;return n-1}if(i<0){for(let s=1;s<n;++s)if(e[s]<=t)return s;return n-1}for(let s=1;s<n;++s){if(e[s]==t)return s;if(e[s]<t)return e[s-1]-t<t-e[s]?s-1:s}return n-1}function qt(e,t,i){for(;t<i;){let n=e[t];e[t]=e[i],e[i]=n,++t,--i}}function Ut(e,t){let i=Array.isArray(t)?t:[t],n=i.length;for(let s=0;s<n;s++)e[e.length]=i[s]}function j(e,t){let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function $t(e,t,i){let n=t||Z;return e.every(function(s,r){if(r===0)return!0;let o=n(e[r-1],s);return!(o>0||i&&o===0)})}function Zt(){return!0}function jt(){return!1}function z(){}function Jt(e){let t,i,n;return function(){let s=Array.prototype.slice.call(arguments);return(!i||this!==n||!j(s,i))&&(n=this,i=s,t=e.apply(this,arguments)),t}}function J(e){function t(){let i;try{i=e()}catch(n){return Promise.reject(n)}return i instanceof Promise?i:Promise.resolve(i)}return t()}var G=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};var Q=G;var F=class extends Y{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,i){if(!t||!i)return;let n=this.listeners_||(this.listeners_={}),s=n[t]||(n[t]=[]);s.includes(i)||s.push(i)}dispatchEvent(t){let i=typeof t==`string`,n=i?t:t.type,s=this.listeners_&&this.listeners_[n];if(!s)return;let r=i?new Q(t):t;r.target||(r.target=this.eventTarget_||this);let o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});n in o||(o[n]=0,a[n]=0),++o[n];let h;for(let l=0,g=s.length;l<g;++l)if(`handleEvent`in s[l]?h=s[l].handleEvent(r):h=s[l].call(this,r),h===!1||r.propagationStopped){h=!1;break}if(--o[n]===0){let l=a[n];for(delete a[n];l--;)this.removeEventListener(n,z);delete o[n]}return h}disposeInternal(){this.listeners_&&a(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return this.listeners_?t?t in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(t,i){if(!this.listeners_)return;let n=this.listeners_[t];if(!n)return;let s=n.indexOf(i);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[s]=z,++this.pendingRemovals_[t]):(n.splice(s,1),n.length===0&&delete this.listeners_[t]))}};var S=F;var k=class extends S{constructor(t,i,n,s){super(),this.extent=t,this.pixelRatio_=n,this.resolution=i,this.state=typeof s==`function`?c.IDLE:s,this.image_=null,this.loader=typeof s==`function`?s:null}changed(){this.dispatchEvent(u.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==c.IDLE&&this.loader){this.state=c.LOADING,this.changed();let t=this.getResolution(),i=Array.isArray(t)?t[0]:t;J(()=>this.loader(this.getExtent(),i,this.getPixelRatio())).then(n=>{`image`in n&&(this.image_=n.image),`extent`in n&&(this.extent=n.extent),`resolution`in n&&(this.resolution=n.resolution),`pixelRatio`in n&&(this.pixelRatio_=n.pixelRatio),(n instanceof HTMLImageElement||L&&n instanceof ImageBitmap||n instanceof HTMLCanvasElement||n instanceof HTMLVideoElement)&&(this.image_=n),this.state=c.LOADED}).catch(n=>{this.state=c.ERROR,console.error(n)}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}};function ue(e,t,i){let n=e,s=!0,r=!1,o=!1,a=[R(n,u.LOAD,function(){o=!0,r||t()})];return n.src&&v?(r=!0,n.decode().then(function(){s&&t()}).catch(function(h){s&&(o?t():i())})):a.push(R(n,u.ERROR,i)),function(){s=!1,a.forEach(V)}}function ut(e,t){return new Promise((i,n)=>{function s(){o(),i(e)}function r(){o(),n(new Error(`Image load error`))}function o(){e.removeEventListener(`load`,s),e.removeEventListener(`error`,r)}e.addEventListener(`load`,s),e.addEventListener(`error`,r),t&&(e.src=t)})}function H(e,t){return t&&(e.src=t),e.src&&v?new Promise((i,n)=>e.decode().then(()=>i(e)).catch(s=>e.complete&&e.width?i(e):n(s))):ut(e)}function de(e,t){return t&&(e.src=t),e.src&&v&&L?e.decode().then(()=>createImageBitmap(e)).catch(i=>{if(e.complete&&e.width)return e;throw i}):H(e)}var pe=k;var W=class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}
1expire(){if(this.canExpireCache()){let t=0;for(let i in this.cache_){let n=this.cache_[i];!(t++&3)&&!n.hasListener()&&(delete this.cache_[i],delete this.patternCache_[i],--this.cacheSize_)}}}get(t,i){let n=B(t,i);return n in this.cache_?this.cache_[n]:null}getPattern(t,i){let n=B(t,i);return n in this.patternCache_?this.patternCache_[n]:null}set(t,i,n,s){let r=B(t,i),o=r in this.cache_;this.cache_[r]=n,s&&(n.getImageState()===c.IDLE&&n.load(),n.getImageState()===c.LOADING?n.ready().then(()=>{this.patternCache_[r]=O().createPattern(n.getImage(1),`repeat`)}):this.patternCache_[r]=O().createPattern(n.getImage(1),`repeat`)),o||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};function B(e,t){let i=t?X(t):`null`;return e+`:`+i}var E=new W;var x=null;var I=class extends S{constructor(t,i,n,s,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n?.crossOrigin,this.referrerPolicy_=n?.referrerPolicy,this.canvas_={},this.color_=r,this.imageState_=s===void 0?c.IDLE:s,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=i,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_),this.referrerPolicy_!==void 0&&(this.image_.referrerPolicy=this.referrerPolicy_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===c.LOADED){x||(x=p(1,1,void 0,{willReadFrequently:!0})),x.drawImage(this.image_,0,0);try{x.getImageData(0,0,1,1),this.tainted_=!1}catch(t){x=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(u.CHANGE)}handleImageError_(){this.imageState_=c.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=c.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}setImage(t){this.image_=t}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){let t=this.size_[0],i=this.size_[1],n=p(t,i);n.fillRect(0,0,t,i),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===c.IDLE){this.image_||this.initializeImage_(),this.imageState_=c.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&H(this.image_,this.src_).then(t=>{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==c.LOADED)return;let i=this.image_,n=p(Math.ceil(i.width*t),Math.ceil(i.height*t)),s=n.canvas;n.scale(t,t),n.drawImage(i,0,0),n.globalCompositeOperation=`multiply`,n.fillStyle=$(this.color_),n.fillRect(0,0,s.width/t,s.height/t),n.globalCompositeOperation=`destination-in`,n.drawImage(i,0,0),this.canvas_[t]=s}ready(){return this.ready_||(this.ready_=new Promise(t=>{if(this.imageState_===c.LOADED||this.imageState_===c.ERROR)t();else{let i=()=>{(this.imageState_===c.LOADED||this.imageState_===c.ERROR)&&(this.removeEventListener(u.CHANGE,i),t())};this.addEventListener(u.CHANGE,i)}})),this.ready_}};function De(e,t,i,n,s,r){let o=t===void 0?void 0:E.get(t,s);return o||(o=new I(e,e&&`src`in e?e.src||void 0:t,i,n,s),E.set(t,s,o,r)),r&&o&&!E.getPattern(t,s)&&E.set(t,s,o,r),o}var Oe=I;export{ft as A,qt as B,Wt as C,Zt as D,Z as E,lt as F,wt as G,u as H,mt as I,z as J,xt as K,p as L,it as M,j as N,c as O,jt as P,pe as R,Vt as S,Y as T,ue as U,tt as V,vt as W,zt as Y,R as _,Dt as a,Ut as b,J as c,Lt as d,Mt as f,Q as g,Ot as h,De as i,gt as j,de as k,Jt as l,Oe as m,At as n,E as o,O as p,yt as q,Ct as r,Gt as s,$t as t,Kt as u,Rt as v,X as w,V as x,S as y,q as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.