PageSourceSearch

https://uygulama.diyetbulut.com/_nuxt/BwoFqqSb.js

js diyetbulut.com collected 2026-10-08 23:49:39 UTC 55,843 bytes, 154 lines download raw bytes

vendor: 5,190 bytes, line 1
1import{_ as xt}from"./BTWcYfCq.js";import Vt from"./Cv3YQkew.js";import{_ as Ft}from"./YfFmiG_N.js";import{_ as zt}from"./CazoKZxw.js";import{aD as xe,aF as fe,r as L,N as se,f as Z,ay as Oe,a8 as Pt,at as Rt,c as X,o as z,h as O,O as jt,dT as Kt,dB as Gt,y as Ve,bu as ie,cd as Ht,z as Yt,i as Tt,d as ne,k as ae,j as It,t as Q,e as y,a as Jt,a3 as je,a2 as Qt,M as Zt,w as ge,br as Wt,q as D,I as Xt,aQ as $t,B as en,b1 as Ke,K as Ge,aH as tn,g as nn}from"./Dfb4tnlL.js";import{_ as rn}from"./YN6YSkDl.js";import{_ as on,r as an}from"./Dvw90LzA.js";import{_ as sn}from"./B0kdKxzI.js";import"./BaJ2kI7d.js";import"./djc1MYaj.js";(function(){try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".mapdiv[data-v-d05fc6bc]{width:100%;height:100%}.custom-control-wrapper[data-v-d099a3a6]{display:none}.mapdiv .custom-control-wrapper[data-v-d099a3a6]{display:inline-block}.info-window-wrapper[data-v-cbe1707b]{display:none}.mapdiv .info-window-wrapper[data-v-cbe1707b]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var ln=Object.defineProperty,un=(o,t,i)=>t in o?ln(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,He=(o,t,i)=>(un(o,typeof t!="symbol"?t+"":t,i),i);const At=Symbol("map"),Nt=Symbol("api"),cn=Symbol("marker"),dn=Symbol("markerCluster"),kt=Symbol("CustomMarker"),fn=Symbol("mapTilesLoaded"),Mt=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];function gn(o,t,i,n){function e(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function l(d){try{s(n.next(d))}catch(h){a(h)}}function u(d){try{s(n.throw(d))}catch(h){a(h)}}function s(d){d.done?r(d.value):e(d.value).then(l,u)}s((n=n.apply(o,[])).next())})}var hn=function o(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var n,e,r;if(Array.isArray(t)){if(n=t.length,n!=i.length)return!1;for(e=n;e--!==0;)if(!o(t[e],i[e]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(r=Object.keys(t),n=r.length,n!==Object.keys(i).length)return!1;for(e=n;e--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[e]))return!1;for(e=n;e--!==0;){var a=r[e];if(!o(t[a],i[a]))return!1}return!0}return t!==t&&i!==i};const Ye="__googleMapsScriptId";var W;(function(o){o[o.INITIALIZED=0]="INITIALIZED",o[o.LOADING=1]="LOADING",o[o.SUCCESS=2]="SUCCESS",o[o.FAILURE=3]="FAILURE"})(W||(W={}));class j{constructor({apiKey:t,authReferrerPolicy:i,channel:n,client:e,id:r=Ye,language:a,libraries:l=[],mapIds:u,nonce:s,region:d,retries:h=3,url:p="https://maps.googleapis.com/maps/api/js",version:g}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=i,this.channel=n,this.client=e,this.id=r||Ye,this.language=a,this.libraries=l,this.mapIds=u,this.nonce=s,this.region=d,this.retries=h,this.url=p,this.version=g,j.instance){if(!hn(this.options,j.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(j.instance.options)}`);return j.instance}j.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?W.FAILURE:this.done?W.SUCCESS:this.loading?W.LOADING:W.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,i)=>{this.loadCallback(n=>{n?i(n.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,i;if(document.getElementById(this.id)){this.callback();return}const n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};
1Object.keys(n).forEach(r=>!n[r]&&delete n[r]),!((i=(t=window?.google)===null||t===void 0?void 0:t.maps)===null||i===void 0)&&i.importLibrary||(r=>{let a,l,u,s="The Google Maps JavaScript API",d="google",h="importLibrary",p="__ib__",g=document,m=window;m=m[d]||(m[d]={});const C=m.maps||(m.maps={}),A=new Set,_=new URLSearchParams,v=()=>a||(a=new Promise((P,S)=>gn(this,void 0,void 0,function*(){var N;yield l=g.createElement("script"),l.id=this.id,_.set("libraries",[...A]+"");for(u in r)_.set(u.replace(/[A-Z]/g,w=>"_"+w[0].toLowerCase()),r[u]);_.set("callback",d+".maps."+p),l.src=this.url+"?"+_,C[p]=P,l.onerror=()=>a=S(Error(s+" could not load.")),l.nonce=this.nonce||((N=g.querySelector("script[nonce]"))===null||N===void 0?void 0:N.nonce)||"",g.head.append(l)})));C[h]?console.warn(s+" only loads once. Ignoring:",r):C[h]=(P,...S)=>A.add(P)&&v().then(()=>C[h](P,...S))})(n);const e=this.libraries.map(r=>this.importLibrary(r));e.length||e.push(this.importLibrary("core")),Promise.all(e).then(()=>this.callback(),r=>{const a=new ErrorEvent("error",{error:r});this.loadErrorCallback(a)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const i=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${i} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},i)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}function pn(o){return class extends o.OverlayView{constructor(t){super(),He(this,"element"),He(this,"opts");const{element:i,...n}=t;this.element=i,this.opts=n,this.opts.map&&this.setMap(this.opts.map)}getPosition(){return this.opts.position?this.opts.position instanceof o.LatLng?this.opts.position:new o.LatLng(this.opts.position):null}getVisible(){if(!this.element)return!1;const t=this.element;return t.style.display!=="none"&&t.style.visibility!=="hidden"&&(t.style.opacity===""||Number(t.style.opacity)>.01)}onAdd(){if(!this.element)return;const t=this.getPanes();t&&t.overlayMouseTarget.appendChild(this.element)}draw(){if(!this.element)return;const t=this.getProjection(),i=t?.fromLatLngToDivPixel(this.getPosition());if(i){this.element.style.position="absolute";let n,e;switch(this.opts.anchorPoint){case"TOP_CENTER":n="-50%",e="-100%";break;case"BOTTOM_CENTER":n="-50%",e="0";break;case"LEFT_CENTER":n="-100%",e="-50%";break;case"RIGHT_CENTER":n="0",e="-50%";break;case"TOP_LEFT":n="-100%",e="-100%";break;case"TOP_RIGHT":n="0",e="-100%";break;case"BOTTOM_LEFT":n="-100%",e="0";break;case"BOTTOM_RIGHT":n="0",e="0";break;default:n="-50%",e="-50%"}const r=i.x+(this.opts.offsetX||0)+"px",a=i.y+(this.opts.offsetY||0)+"px";this.element.style.transform=`translateX(${n}) translateX(${r}) translateY(${e}) translateY(${a})`,this.opts.zIndex&&(this.element.style.zIndex=this.opts.zIndex.toString())}}onRemove(){this.element&&this.element.remove()}setOptions(t){const{element:i,...n}=t;this.element=i,this.opts=n,this.draw()}}}let Je;const Qe=["bounds_changed","center_changed","click","contextmenu","dblclick","drag","dragend","dragstart","heading_changed","idle","isfractionalzoomenabled_changed","mapcapabilities_changed","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","renderingtype_changed","rightclick","tilesloaded","tilt_changed","zoom_changed"],mn=xe({props:{apiPromise:{type:Promise},apiKey:{type:String,default:""},version:{type:String,default:"weekly"},libraries:{type:Array,default:()=>["places","marker"]},region:{type:String,required:!1},language:{type:String,required:!1},backgroundColor:{type:String,required:!1},center:{type:Object,default:()=>({lat:0,lng:0})},clickableIcons:{type:Boolean,required:!1,default:void 0},controlSize:{type:Number,required:!1},disableDefaultUi:{type:Boolean,required:!1,default:void 0},disableDoubleClickZoom:{type:Boolean,required:!1,default:void 0},draggable:{type:Boolean,required:!1,default:void 0},draggableCursor:{type:String,required:!1},draggingCursor:{type:String,required:!1},fullscreenControl:{type:Boolean,required:!1,default:void 0},fullscreenControlPosition:{type:String,required:!1},gestureHandling:{type:String,required:!1},heading:{type:Number,required:!1},isFractionalZoomEnabled:{type:Boolean,required:!1,default:void 0},keyboardShortcuts:{type:Boolean,required:!1,default:void 0},mapTypeControl:{type:Boolean,required:!1,default:void 0},mapTypeControlOptions:{type:Object,required:!1},mapTypeId:{type:[Number,String],required:!1},mapId:{type:String,required:!1},maxZoom:{type:Number,required:!1},minZoom:{type:Number,required:!1},noClear:{type:Boolean,required:!1,default:void 0},panControl:{type:Boolean,required:!1,default:void 0},panControlPosition:{type:String,required:!1},restriction:{type:Object,required:!1},rotateControl:{type:Boolean,required:!1,default:void 0},rotateControlPosition:{type:String,required:!1},scaleControl:{type:Boolean,required:!1,default:void 0},scaleControlStyle:{type:Number,required:!1},scrollwheel:{type:Boolean,required:!1,default:void 0},streetView:{type:Object,required:!1},streetViewControl:{type:Boolean,required:!1,default:void 0},streetViewControlPosition:{type:String,required:!1},styles:{type:Array,required:!1},tilt:{type:Number,required:!1},zoom:{type:Number,required:!1},zoomControl:{type:Boolean,required:!1,default:void 0},zoomControlPosition:{type:String,required:!1},nonce:{type:String,default:""}},emits:Qe,setup(o,{emit:t}){const i=L(),n=L(!1),e=L(),r=L(),a=L(!1);ie(At,e),ie(Nt,r),ie(fn,a);const l=()=>{const h={...o};
1Object.keys(h).forEach(m=>{h[m]===void 0&&delete h[m]});const p=m=>{var C;return m?{position:(C=r.value)==null?void 0:C.ControlPosition[m]}:{}},g={scaleControlOptions:o.scaleControlStyle?{style:o.scaleControlStyle}:{},panControlOptions:p(o.panControlPosition),zoomControlOptions:p(o.zoomControlPosition),rotateControlOptions:p(o.rotateControlPosition),streetViewControlOptions:p(o.streetViewControlPosition),fullscreenControlOptions:p(o.fullscreenControlPosition),disableDefaultUI:o.disableDefaultUi};return{...h,...g}},u=se([r,e],([h,p])=>{const g=h,m=p;g&&m&&(g.event.addListenerOnce(m,"tilesloaded",()=>{a.value=!0}),setTimeout(u,0))},{immediate:!0}),s=()=>{try{const{apiKey:h,region:p,version:g,language:m,libraries:C,nonce:A}=o;Je=new j({apiKey:h,region:p,version:g,language:m,libraries:C,nonce:A})}catch(h){console.error(h)}},d=h=>{r.value=Oe(h.maps),e.value=Oe(new h.maps.Map(i.value,l()));const p=pn(r.value);r.value[kt]=p,Qe.forEach(m=>{var C;(C=e.value)==null||C.addListener(m,A=>t(m,A))}),n.value=!0;const g=Object.keys(o).filter(m=>!["apiPromise","apiKey","version","libraries","region","language","center","zoom","nonce"].includes(m)).map(m=>Rt(o,m));se([()=>o.center,()=>o.zoom,...g],([m,C],[A,_])=>{var v,P,S;const{center:N,zoom:w,...R}=l();(v=e.value)==null||v.setOptions(R),C!==void 0&&C!==_&&((P=e.value)==null||P.setZoom(C));const B=!A||m.lng!==A.lng||m.lat!==A.lat;m&&B&&((S=e.value)==null||S.panTo(m))})};return Ve(()=>{o.apiPromise&&o.apiPromise instanceof Promise?o.apiPromise.then(d):(s(),Je.load().then(d))}),Pt(()=>{var h;a.value=!1,e.value&&((h=r.value)==null||h.event.clearInstanceListeners(e.value))}),{mapRef:i,ready:n,map:e,api:r,mapTilesLoaded:a}}}),yn=(o,t)=>{const i=o.__vccOpts||o;for(const[n,e]of t)i[n]=e;return i},vn={ref:"mapRef",class:"mapdiv"};function bn(o,t,i,n,e,r){return z(),X("div",null,[O("div",vn,null,512),jt(o.$slots,"default",Kt(Gt({ready:o.ready,map:o.map,api:o.api,mapTilesLoaded:o.mapTilesLoaded})),void 0,!0)])}const wn=yn(mn,[["render",bn],["__scopeId","data-v-d05fc6bc"]]);function Cn(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var En=function o(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var n,e,r;if(Array.isArray(t)){if(n=t.length,n!=i.length)return!1;for(e=n;e--!==0;)if(!o(t[e],i[e]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(r=Object.keys(t),n=r.length,n!==Object.keys(i).length)return!1;for(e=n;e--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[e]))return!1;for(e=n;e--!==0;){var a=r[e];if(!o(t[a],i[a]))return!1}return!0}return t!==t&&i!==i};const _n=Cn(En),Sn=(o,t,i,n)=>{const e=L(),r=fe(At,L()),a=fe(Nt,L()),l=fe(dn,L()),u=Z(()=>!!(l.value&&a.value&&(e.value instanceof a.value.Marker||e.value instanceof a.value[kt])));return se([r,i],(s,[d,h])=>{var p,g,m;const C=!_n(i.value,h)||r.value!==d;!r.value||!a.value||!C||(e.value?(e.value.setOptions(i.value),u.value&&((p=l.value)==null||p.removeMarker(e.value),(g=l.value)==null||g.addMarker(e.value))):(e.value=Oe(new a.value[o](i.value)),u.value?(m=l.value)==null||m.addMarker(e.value):e.value.setMap(r.value),t.forEach(A=>{var _;(_=e.value)==null||_.addListener(A,v=>n(A,v))})))},{immediate:!0}),Pt(()=>{var s,d;e.value&&((s=a.value)==null||s.event.clearInstanceListeners(e.value),u.value?(d=l.value)==null||d.removeMarker(e.value):e.value.setMap(null))}),e},Ze=["animation_changed","click","dblclick","rightclick","dragstart","dragend","drag","mouseover","mousedown","mouseout","mouseup","draggable_changed","clickable_changed","contextmenu","cursor_changed","flat_changed","rightclick","zindex_changed","icon_changed","position_changed","shape_changed","title_changed","visible_changed"],Bn=xe({name:"Marker",props:{options:{type:Object,required:!0}},emits:Ze,setup(o,{emit:t,expose:i,slots:n}){const e=Rt(o,"options"),r=Sn("Marker",Ze,e,t);return ie(cn,r),i({marker:r}),()=>{var a;return(a=n.default)==null?void 0:a.call(n)}}});Mt.concat(["bounds_changed"]);Mt.concat(["center_changed","radius_changed"]);var Ue;(function(o){o.CLUSTERING_BEGIN="clusteringbegin",o.CLUSTERING_END="clusteringend",o.CLUSTER_CLICK="click"})(Ue||(Ue={}));Object.values(Ue);var J={},he,We;function Pn(){return We||(We=1,he=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),he}var pe={},F={},Xe;function K(){if(Xe)return F;Xe=1;let o;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return F.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},F.getSymbolTotalCodewords=function(n){return t[n]},F.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n},F.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');o=n},F.isKanjiModeEnabled=function(){return typeof o<"u"},F.toSJIS=function(n){return o(n)},F}var me={},$e;function Fe(){return $e||($e=1,(function(o){o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};
vendor: 21,012 bytes, lines 1-7
1function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return o.L;case"m":case"medium":return o.M;case"q":case"quartile":return o.Q;case"h":case"high":return o.H;default:throw new Error("Unknown EC Level: "+i)}}o.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},o.from=function(n,e){if(o.isValid(n))return n;try{return t(n)}catch{return e}}})(me)),me}var ye,et;function Rn(){if(et)return ye;et=1;function o(){this.buffer=[],this.length=0}return o.prototype={get:function(t){const i=Math.floor(t/8);return(this.buffer[i]>>>7-t%8&1)===1},put:function(t,i){for(let n=0;n<i;n++)this.putBit((t>>>i-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}},ye=o,ye}var ve,tt;function Tn(){if(tt)return ve;tt=1;function o(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return o.prototype.set=function(t,i,n,e){const r=t*this.size+i;this.data[r]=n,e&&(this.reservedBit[r]=!0)},o.prototype.get=function(t,i){return this.data[t*this.size+i]},o.prototype.xor=function(t,i,n){this.data[t*this.size+i]^=n},o.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]},ve=o,ve}var be={},nt;function In(){return nt||(nt=1,(function(o){const t=K().getSymbolSize;o.getRowColCoords=function(n){if(n===1)return[];const e=Math.floor(n/7)+2,r=t(n),a=r===145?26:Math.ceil((r-13)/(2*e-2))*2,l=[r-7];for(let u=1;u<e-1;u++)l[u]=l[u-1]-a;return l.push(6),l.reverse()},o.getPositions=function(n){const e=[],r=o.getRowColCoords(n),a=r.length;for(let l=0;l<a;l++)for(let u=0;u<a;u++)l===0&&u===0||l===0&&u===a-1||l===a-1&&u===0||e.push([r[l],r[u]]);return e}})(be)),be}var we={},rt;function An(){if(rt)return we;rt=1;const o=K().getSymbolSize,t=7;return we.getPositions=function(n){const e=o(n);return[[0,0],[e-t,0],[0,e-t]]},we}var Ce={},ot;function Nn(){return ot||(ot=1,(function(o){o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};o.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},o.from=function(e){return o.isValid(e)?parseInt(e,10):void 0},o.getPenaltyN1=function(e){const r=e.size;let a=0,l=0,u=0,s=null,d=null;for(let h=0;h<r;h++){l=u=0,s=d=null;for(let p=0;p<r;p++){let g=e.get(h,p);g===s?l++:(l>=5&&(a+=t.N1+(l-5)),s=g,l=1),g=e.get(p,h),g===d?u++:(u>=5&&(a+=t.N1+(u-5)),d=g,u=1)}l>=5&&(a+=t.N1+(l-5)),u>=5&&(a+=t.N1+(u-5))}return a},o.getPenaltyN2=function(e){const r=e.size;let a=0;for(let l=0;l<r-1;l++)for(let u=0;u<r-1;u++){const s=e.get(l,u)+e.get(l,u+1)+e.get(l+1,u)+e.get(l+1,u+1);(s===4||s===0)&&a++}return a*t.N2},o.getPenaltyN3=function(e){const r=e.size;let a=0,l=0,u=0;for(let s=0;s<r;s++){l=u=0;for(let d=0;d<r;d++)l=l<<1&2047|e.get(s,d),d>=10&&(l===1488||l===93)&&a++,u=u<<1&2047|e.get(d,s),d>=10&&(u===1488||u===93)&&a++}return a*t.N3},o.getPenaltyN4=function(e){let r=0;const a=e.data.length;for(let u=0;u<a;u++)r+=e.data[u];return Math.abs(Math.ceil(r*100/a/5)-10)*t.N4};function i(n,e,r){switch(n){case o.Patterns.PATTERN000:return(e+r)%2===0;case o.Patterns.PATTERN001:return e%2===0;case o.Patterns.PATTERN010:return r%3===0;case o.Patterns.PATTERN011:return(e+r)%3===0;case o.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case o.Patterns.PATTERN101:return e*r%2+e*r%3===0;case o.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case o.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}o.applyMask=function(e,r){const a=r.size;for(let l=0;l<a;l++)for(let u=0;u<a;u++)r.isReserved(u,l)||r.xor(u,l,i(e,u,l))},o.getBestMask=function(e,r){const a=Object.keys(o.Patterns).length;let l=0,u=1/0;for(let s=0;s<a;s++){r(s),o.applyMask(s,e);const d=o.getPenaltyN1(e)+o.getPenaltyN2(e)+o.getPenaltyN3(e)+o.getPenaltyN4(e);o.applyMask(s,e),d<u&&(u=d,l=s)}return l}})(Ce)),Ce}var oe={},it;function Lt(){if(it)return oe;it=1;const o=Fe(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return oe.getBlocksCount=function(e,r){switch(r){case o.L:return t[(e-1)*4+0];case o.M:return t[(e-1)*4+1];case o.Q:return t[(e-1)*4+2];case o.H:return t[(e-1)*4+3];default:return}},oe.getTotalCodewordsCount=function(e,r){switch(r){case o.L:return i[(e-1)*4+0];case o.M:return i[(e-1)*4+1];case o.Q:return i[(e-1)*4+2];case o.H:return i[(e-1)*4+3];default:return}},oe}var Ee={},te={},at;function kn(){if(at)return te;at=1;const o=new Uint8Array(512),t=new Uint8Array(256);return(function(){let n=1;for(let e=0;e<255;e++)o[e]=n,t[n]=e,n<<=1,n&256&&(n^=285);for(let e=255;e<512;e++)o[e]=o[e-255]})(),te.log=function(n){if(n<1)throw new Error("log("+n+")");return t[n]},te.exp=function(n){return o[n]},te.mul=function(n,e){return n===0||e===0?0:o[t[n]+t[e]]},te}var st;function Mn(){return st||(st=1,(function(o){const t=kn();o.mul=function(n,e){const r=new Uint8Array(n.length+e.length-1);for(let a=0;a<n.length;a++)for(let l=0;l<e.length;l++)r[a+l]^=t.mul(n[a],e[l]);return r},o.mod=function(n,e){let r=new Uint8Array(n);for(;r.length-e.length>=0;){const a=r[0];for(let u=0;u<e.length;u++)r[u]^=t.mul(e[u],a);let l=0;for(;l<r.length&&r[l]===0;)l++;r=r.slice(l)}return r},o.generateECPolynomial=function(n){let e=new Uint8Array([1]);for(let r=0;r<n;r++)e=o.mul(e,new Uint8Array([1,t.exp(r)]));return e}})(Ee)),Ee}var _e,lt;function Ln(){if(lt)return _e;lt=1;const o=Mn();function t(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(n){this.degree=n,this.genPoly=o.generateECPolynomial(this.degree)},t.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(n.length+this.degree);e.set(n);const r=o.mod(e,this.genPoly),a=this.degree-r.length;if(a>0){const l=new Uint8Array(this.degree);return l.set(r,a),l}return r},_e=t,_e}var Se={},Be={},Pe={},ut;function qt(){return ut||(ut=1,Pe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Pe}var U={},ct;function Dt(){if(ct)return U;ct=1;const o="[0-9]+",t="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
2]))+`;U.KANJI=new RegExp(i,"g"),U.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),U.BYTE=new RegExp(n,"g"),U.NUMERIC=new RegExp(o,"g"),U.ALPHANUMERIC=new RegExp(t,"g");const e=new RegExp("^"+i+"$"),r=new RegExp("^"+o+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return U.testKanji=function(u){return e.test(u)},U.testNumeric=function(u){return r.test(u)},U.testAlphanumeric=function(u){return a.test(u)},U}var dt;function G(){return dt||(dt=1,(function(o){const t=qt(),i=Dt();o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(r,a){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?r.ccBits[0]:a<27?r.ccBits[1]:r.ccBits[2]},o.getBestModeForData=function(r){return i.testNumeric(r)?o.NUMERIC:i.testAlphanumeric(r)?o.ALPHANUMERIC:i.testKanji(r)?o.KANJI:o.BYTE},o.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},o.isValid=function(r){return r&&r.bit&&r.ccBits};function n(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+e)}}o.from=function(r,a){if(o.isValid(r))return r;try{return n(r)}catch{return a}}})(Be)),Be}var ft;function qn(){return ft||(ft=1,(function(o){const t=K(),i=Lt(),n=Fe(),e=G(),r=qt(),a=7973,l=t.getBCHDigit(a);function u(p,g,m){for(let C=1;C<=40;C++)if(g<=o.getCapacity(C,m,p))return C}function s(p,g){return e.getCharCountIndicator(p,g)+4}function d(p,g){let m=0;return p.forEach(function(C){const A=s(C.mode,g);m+=A+C.getBitsLength()}),m}function h(p,g){for(let m=1;m<=40;m++)if(d(p,m)<=o.getCapacity(m,g,e.MIXED))return m}o.from=function(g,m){return r.isValid(g)?parseInt(g,10):m},o.getCapacity=function(g,m,C){if(!r.isValid(g))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=e.BYTE);const A=t.getSymbolTotalCodewords(g),_=i.getTotalCodewordsCount(g,m),v=(A-_)*8;if(C===e.MIXED)return v;const P=v-s(C,g);switch(C){case e.NUMERIC:return Math.floor(P/10*3);case e.ALPHANUMERIC:return Math.floor(P/11*2);case e.KANJI:return Math.floor(P/13);case e.BYTE:default:return Math.floor(P/8)}},o.getBestVersionForData=function(g,m){let C;const A=n.from(m,n.M);if(Array.isArray(g)){if(g.length>1)return h(g,A);if(g.length===0)return 1;C=g[0]}else C=g;return u(C.mode,C.getLength(),A)},o.getEncodedBits=function(g){if(!r.isValid(g)||g<7)throw new Error("Invalid QR Code version");let m=g<<12;for(;t.getBCHDigit(m)-l>=0;)m^=a<<t.getBCHDigit(m)-l;return g<<12|m}})(Se)),Se}var Re={},gt;function Dn(){if(gt)return Re;gt=1;const o=K(),t=1335,i=21522,n=o.getBCHDigit(t);return Re.getEncodedBits=function(r,a){const l=r.bit<<3|a;let u=l<<10;for(;o.getBCHDigit(u)-n>=0;)u^=t<<o.getBCHDigit(u)-n;return(l<<10|u)^i},Re}var Te={},Ie,ht;function On(){if(ht)return Ie;ht=1;const o=G();function t(i){this.mode=o.NUMERIC,this.data=i.toString()}return t.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let e,r,a;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),a=parseInt(r,10),n.put(a,10);const l=this.data.length-e;l>0&&(r=this.data.substr(e),a=parseInt(r,10),n.put(a,l*3+1))},Ie=t,Ie}var Ae,pt;function Un(){if(pt)return Ae;pt=1;const o=G(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(n){this.mode=o.ALPHANUMERIC,this.data=n}return i.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let a=t.indexOf(this.data[r])*45;a+=t.indexOf(this.data[r+1]),e.put(a,11)}this.data.length%2&&e.put(t.indexOf(this.data[r]),6)},Ae=i,Ae}var Ne,mt;function xn(){if(mt)return Ne;mt=1;const o=G();function t(i){this.mode=o.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return t.getBitsLength=function(n){return n*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(i){for(let n=0,e=this.data.length;n<e;n++)i.put(this.data[n],8)},Ne=t,Ne}var ke,yt;function Vn(){if(yt)return ke;yt=1;const o=G(),t=K();function i(n){this.mode=o.KANJI,this.data=n}return i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(n){let e;for(e=0;e<this.data.length;e++){let r=t.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
3Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),n.put(r,13)}},ke=i,ke}var Me={exports:{}},vt;function Fn(){return vt||(vt=1,(function(o){var t={single_source_shortest_paths:function(i,n,e){var r={},a={};a[n]=0;var l=t.PriorityQueue.make();l.push(n,0);for(var u,s,d,h,p,g,m,C,A;!l.empty();){u=l.pop(),s=u.value,h=u.cost,p=i[s]||{};for(d in p)p.hasOwnProperty(d)&&(g=p[d],m=h+g,C=a[d],A=typeof a[d]>"u",(A||C>m)&&(a[d]=m,l.push(d,m),r[d]=s))}if(typeof e<"u"&&typeof a[e]>"u"){var _=["Could not find a path from ",n," to ",e,"."].join("");throw new Error(_)}return r},extract_shortest_path_from_predecessor_list:function(i,n){for(var e=[],r=n;r;)e.push(r),i[r],r=i[r];return e.reverse(),e},find_path:function(i,n,e){var r=t.single_source_shortest_paths(i,n,e);return t.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(i){var n=t.PriorityQueue,e={},r;i=i||{};for(r in n)n.hasOwnProperty(r)&&(e[r]=n[r]);return e.queue=[],e.sorter=i.sorter||n.default_sorter,e},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var e={value:i,cost:n};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};o.exports=t})(Me)),Me.exports}var bt;function zn(){return bt||(bt=1,(function(o){const t=G(),i=On(),n=Un(),e=xn(),r=Vn(),a=Dt(),l=K(),u=Fn();function s(_){return unescape(encodeURIComponent(_)).length}function d(_,v,P){const S=[];let N;for(;(N=_.exec(P))!==null;)S.push({data:N[0],index:N.index,mode:v,length:N[0].length});return S}function h(_){const v=d(a.NUMERIC,t.NUMERIC,_),P=d(a.ALPHANUMERIC,t.ALPHANUMERIC,_);let S,N;return l.isKanjiModeEnabled()?(S=d(a.BYTE,t.BYTE,_),N=d(a.KANJI,t.KANJI,_)):(S=d(a.BYTE_KANJI,t.BYTE,_),N=[]),v.concat(P,S,N).sort(function(R,B){return R.index-B.index}).map(function(R){return{data:R.data,mode:R.mode,length:R.length}})}function p(_,v){switch(v){case t.NUMERIC:return i.getBitsLength(_);case t.ALPHANUMERIC:return n.getBitsLength(_);case t.KANJI:return r.getBitsLength(_);case t.BYTE:return e.getBitsLength(_)}}function g(_){return _.reduce(function(v,P){const S=v.length-1>=0?v[v.length-1]:null;return S&&S.mode===P.mode?(v[v.length-1].data+=P.data,v):(v.push(P),v)},[])}function m(_){const v=[];for(let P=0;P<_.length;P++){const S=_[P];switch(S.mode){case t.NUMERIC:v.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:v.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:v.push([S,{data:S.data,mode:t.BYTE,length:s(S.data)}]);break;case t.BYTE:v.push([{data:S.data,mode:t.BYTE,length:s(S.data)}])}}return v}function C(_,v){const P={},S={start:{}};let N=["start"];for(let w=0;w<_.length;w++){const R=_[w],B=[];for(let E=0;E<R.length;E++){const I=R[E],b=""+w+E;B.push(b),P[b]={node:I,lastCount:0},S[b]={};for(let T=0;T<N.length;T++){const c=N[T];P[c]&&P[c].node.mode===I.mode?(S[c][b]=p(P[c].lastCount+I.length,I.mode)-p(P[c].lastCount,I.mode),P[c].lastCount+=I.length):(P[c]&&(P[c].lastCount=I.length),S[c][b]=p(I.length,I.mode)+4+t.getCharCountIndicator(I.mode,v))}}N=B}for(let w=0;w<N.length;w++)S[N[w]].end=0;return{map:S,table:P}}function A(_,v){let P;const S=t.getBestModeForData(_);if(P=t.from(v,S),P!==t.BYTE&&P.bit<S.bit)throw new Error('"'+_+'" cannot be encoded with mode '+t.toString(P)+`.
4 Suggested mode is: `+t.toString(S));switch(P===t.KANJI&&!l.isKanjiModeEnabled()&&(P=t.BYTE),P){case t.NUMERIC:return new i(_);case t.ALPHANUMERIC:return new n(_);case t.KANJI:return new r(_);case t.BYTE:return new e(_)}}o.fromArray=function(v){return v.reduce(function(P,S){return typeof S=="string"?P.push(A(S,null)):S.data&&P.push(A(S.data,S.mode)),P},[])},o.fromString=function(v,P){const S=h(v,l.isKanjiModeEnabled()),N=m(S),w=C(N,P),R=u.find_path(w.map,"start","end"),B=[];for(let E=1;E<R.length-1;E++)B.push(w.table[R[E]].node);return o.fromArray(g(B))},o.rawSplit=function(v){return o.fromArray(h(v,l.isKanjiModeEnabled()))}})(Te)),Te}var wt;function jn(){if(wt)return pe;wt=1;const o=K(),t=Fe(),i=Rn(),n=Tn(),e=In(),r=An(),a=Nn(),l=Lt(),u=Ln(),s=qn(),d=Dn(),h=G(),p=zn();function g(w,R){const B=w.size,E=r.getPositions(R);for(let I=0;I<E.length;I++){const b=E[I][0],T=E[I][1];for(let c=-1;c<=7;c++)if(!(b+c<=-1||B<=b+c))for(let f=-1;f<=7;f++)T+f<=-1||B<=T+f||(c>=0&&c<=6&&(f===0||f===6)||f>=0&&f<=6&&(c===0||c===6)||c>=2&&c<=4&&f>=2&&f<=4?w.set(b+c,T+f,!0,!0):w.set(b+c,T+f,!1,!0))}}function m(w){const R=w.size;for(let B=8;B<R-8;B++){const E=B%2===0;w.set(B,6,E,!0),w.set(6,B,E,!0)}}function C(w,R){const B=e.getPositions(R);for(let E=0;E<B.length;E++){const I=B[E][0],b=B[E][1];for(let T=-2;T<=2;T++)for(let c=-2;c<=2;c++)T===-2||T===2||c===-2||c===2||T===0&&c===0?w.set(I+T,b+c,!0,!0):w.set(I+T,b+c,!1,!0)}}function A(w,R){const B=w.size,E=s.getEncodedBits(R);let I,b,T;for(let c=0;c<18;c++)I=Math.floor(c/3),b=c%3+B-8-3,T=(E>>c&1)===1,w.set(I,b,T,!0),w.set(b,I,T,!0)}function _(w,R,B){const E=w.size,I=d.getEncodedBits(R,B);let b,T;for(b=0;b<15;b++)T=(I>>b&1)===1,b<6?w.set(b,8,T,!0):b<8?w.set(b+1,8,T,!0):w.set(E-15+b,8,T,!0),b<8?w.set(8,E-b-1,T,!0):b<9?w.set(8,15-b-1+1,T,!0):w.set(8,15-b-1,T,!0);w.set(E-8,8,1,!0)}function v(w,R){const B=w.size;let E=-1,I=B-1,b=7,T=0;for(let c=B-1;c>0;c-=2)for(c===6&&c--;;){for(let f=0;f<2;f++)if(!w.isReserved(I,c-f)){let q=!1;T<R.length&&(q=(R[T]>>>b&1)===1),w.set(I,c-f,q),b--,b===-1&&(T++,b=7)}if(I+=E,I<0||B<=I){I-=E,E=-E;break}}}function P(w,R,B){const E=new i;B.forEach(function(f){E.put(f.mode.bit,4),E.put(f.getLength(),h.getCharCountIndicator(f.mode,w)),f.write(E)});const I=o.getSymbolTotalCodewords(w),b=l.getTotalCodewordsCount(w,R),T=(I-b)*8;for(E.getLengthInBits()+4<=T&&E.put(0,4);E.getLengthInBits()%8!==0;)E.putBit(0);const c=(T-E.getLengthInBits())/8;for(let f=0;f<c;f++)E.put(f%2?17:236,8);return S(E,w,R)}function S(w,R,B){const E=o.getSymbolTotalCodewords(R),I=l.getTotalCodewordsCount(R,B),b=E-I,T=l.getBlocksCount(R,B),c=E%T,f=T-c,q=Math.floor(E/T),M=Math.floor(b/T),re=M+1,$=q-M,le=new u($);let ee=0;const H=new Array(T),k=new Array(T);let ue=0;const Ut=new Uint8Array(w.buffer);for(let Y=0;Y<T;Y++){const de=Y<f?M:re;H[Y]=Ut.slice(ee,ee+de),k[Y]=le.encode(H[Y]),ee+=de,ue=Math.max(ue,de)}const ce=new Uint8Array(E);let ze=0,x,V;for(x=0;x<ue;x++)for(V=0;V<T;V++)x<H[V].length&&(ce[ze++]=H[V][x]);for(x=0;x<$;x++)for(V=0;V<T;V++)ce[ze++]=k[V][x];return ce}function N(w,R,B,E){let I;if(Array.isArray(w))I=p.fromArray(w);else if(typeof w=="string"){let q=R;if(!q){const M=p.rawSplit(w);q=s.getBestVersionForData(M,B)}I=p.fromString(w,q||40)}else throw new Error("Invalid data");const b=s.getBestVersionForData(I,B);if(!b)throw new Error("The amount of data is too big to be stored in a QR Code");if(!R)R=b;else if(R<b)throw new Error(`
5The chosen QR Code version cannot contain this amount of data.
6Minimum version required to store current data is: `+b+`.
7`);const T=P(R,B,I),c=o.getSymbolSize(R),f=new n(c);return g(f,R),m(f),C(f,R),_(f,B,0),R>=7&&A(f,R),v(f,T),isNaN(E)&&(E=a.getBestMask(f,_.bind(null,f,B))),a.applyMask(E,f),_(f,B,E),{modules:f,version:R,errorCorrectionLevel:B,maskPattern:E,segments:I}}return pe.create=function(R,B){if(typeof R>"u"||R==="")throw new Error("No input text");let E=t.M,I,b;return typeof B<"u"&&(E=t.from(B.errorCorrectionLevel,t.M),I=s.from(B.version),b=a.from(B.maskPattern),B.toSJISFunc&&o.setToSJISFunction(B.toSJISFunc)),N(R,I,E,b)},pe}var Le={},qe={},Ct;function Ot(){return Ct||(Ct=1,(function(o){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let n=i.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+i);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(r){return[r,r]}))),n.length===6&&n.push("F","F");const e=parseInt(n.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+n.slice(0,6).join("")}}o.getOptions=function(n){n||(n={}),n.color||(n.color={});const e=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,r=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;
7return{width:r,scale:r?4:a,margin:e,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},o.getScale=function(n,e){return e.width&&e.width>=n+e.margin*2?e.width/(n+e.margin*2):e.scale},o.getImageWidth=function(n,e){const r=o.getScale(n,e);return Math.floor((n+e.margin*2)*r)},o.qrToImageData=function(n,e,r){const a=e.modules.size,l=e.modules.data,u=o.getScale(a,r),s=Math.floor((a+r.margin*2)*u),d=r.margin*u,h=[r.color.light,r.color.dark];for(let p=0;p<s;p++)for(let g=0;g<s;g++){let m=(p*s+g)*4,C=r.color.light;if(p>=d&&g>=d&&p<s-d&&g<s-d){const A=Math.floor((p-d)/u),_=Math.floor((g-d)/u);C=h[l[A*a+_]?1:0]}n[m++]=C.r,n[m++]=C.g,n[m++]=C.b,n[m]=C.a}}})(qe)),qe}var Et;function Kn(){return Et||(Et=1,(function(o){const t=Ot();function i(e,r,a){e.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=a,r.width=a,r.style.height=a+"px",r.style.width=a+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}o.render=function(r,a,l){let u=l,s=a;typeof u>"u"&&(!a||!a.getContext)&&(u=a,a=void 0),a||(s=n()),u=t.getOptions(u);const d=t.getImageWidth(r.modules.size,u),h=s.getContext("2d"),p=h.createImageData(d,d);return t.qrToImageData(p.data,r,u),i(h,s,d),h.putImageData(p,0,0),s},o.renderToDataURL=function(r,a,l){let u=l;typeof u>"u"&&(!a||!a.getContext)&&(u=a,a=void 0),u||(u={});const s=o.render(r,a,u),d=u.type||"image/png",h=u.rendererOpts||{};return s.toDataURL(d,h.quality)}})(Le)),Le}var De={},_t;function Gn(){if(_t)return De;_t=1;const o=Ot();function t(e,r){const a=e.a/255,l=r+'="'+e.hex+'"';return a<1?l+" "+r+'-opacity="'+a.toFixed(2).slice(1)+'"':l}function i(e,r,a){let l=e+r;return typeof a<"u"&&(l+=" "+a),l}function n(e,r,a){let l="",u=0,s=!1,d=0;for(let h=0;h<e.length;h++){const p=Math.floor(h%r),g=Math.floor(h/r);!p&&!s&&(s=!0),e[h]?(d++,h>0&&p>0&&e[h-1]||(l+=s?i("M",p+a,.5+g+a):i("m",u,0),u=0,s=!1),p+1<r&&e[h+1]||(l+=i("h",d),d=0)):u++}return l}return De.render=function(r,a,l){const u=o.getOptions(a),s=r.modules.size,d=r.modules.data,h=s+u.margin*2,p=u.color.light.a?"<path "+t(u.color.light,"fill")+' d="M0 0h'+h+"v"+h+'H0z"/>':"",g="<path "+t(u.color.dark,"stroke")+' d="'+n(d,s,u.margin)+'"/>',m='viewBox="0 0 '+h+" "+h+'"',A='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+m+' shape-rendering="crispEdges">'+p+g+`</svg>
8`;return typeof l=="function"&&l(null,A),A},De}var St;function Hn(){if(St)return J;St=1;const o=Pn(),t=jn(),i=Kn(),n=Gn();function e(r,a,l,u,s){const d=[].slice.call(arguments,1),h=d.length,p=typeof d[h-1]=="function";if(!p&&!o())throw new Error("Callback required as last argument");if(p){if(h<2)throw new Error("Too few arguments provided");h===2?(s=l,l=a,a=u=void 0):h===3&&(a.getContext&&typeof s>"u"?(s=u,u=void 0):(s=u,u=l,l=a,a=void 0))}else{if(h<1)throw new Error("Too few arguments provided");return h===1?(l=a,a=u=void 0):h===2&&!a.getContext&&(u=l,l=a,a=void 0),new Promise(function(g,m){try{const C=t.create(l,u);g(r(C,a,u))}catch(C){m(C)}})}try{const g=t.create(l,u);s(null,r(g,a,u))}catch(g){s(g)}}return J.create=t.create,J.toCanvas=e.bind(null,i.render),J.toDataURL=e.bind(null,i.renderToDataURL),J.toString=e.bind(null,function(r,a,l){return n.render(r,l)}),J}var Yn=Hn();const Bt=Ht(Yn),Jn={class:"flex flex-col items-center gap-2"},Qn={class:"p-2 shadow"},Zn=xe({__name:"LocationQRCode",props:{clinicName:{},lat:{},lng:{},address:{default:""},district:{default:""},city:{default:""},country:{default:""}},setup(o){const t=o,{t:i}=Yt(),n=Z(()=>t.lat&&t.lng?`https://www.google.com/maps/search/?api=1&query=${t.lat},${t.lng}`:""),e=L(null),r=()=>{!n.value||!e.value||Bt.toCanvas(e.value,n.value,{width:104,margin:0,color:{dark:"#000000",light:"#ffffff"}}).catch(l=>{console.error("Error generating QR code for display:",l)})};se(n,()=>{r()}),Ve(()=>{r()});function a(){if(!n.value)return;const l=[];t.address&&l.push(t.address),t.district&&l.push(t.district),t.city&&l.push(t.city),t.country&&l.push(t.country);const u=l.join(", "),s=window.open("","_blank");
8s&&Bt.toDataURL(n.value,{width:250,margin:2,color:{dark:"#000000",light:"#ffffff"}}).then(d=>{s.document.write(`
9      <html>
10        <head>
11          <title>${i("tenant.location_qr_code")}</title>
12          <style>
13            @page {
14              size: A4;
15              margin: 1cm 0.8cm;
16            }
17            body {
18              display: flex;
19              flex-direction: column;
20              align-items: center;
21              justify-content: center;
22              font-family: Arial, sans-serif;
23              padding: 0;
24              margin: 0;
25              color-adjust: exact;
26              -webkit-print-color-adjust: exact;
27              height: 100vh;
28            }
29            .qr-container {
30              display: flex;
31              flex-direction: column;
32              align-items: center;
33              width: 100%;
34              height: 100%;
35            }
36            .qr-cards {
37              display: flex;
38              flex-direction: column;
39              align-items: center;
40              width: 100%;
41              height: 100%;
42            }
43            .qr-card {
44              display: flex;
45              flex-direction: column;
46              align-items: center;
47              justify-content: center;
48              text-align: center;
49              padding: 20px;
50              width: calc(100% - 40px);
51              height: calc(50% - 40px - 20px);
52              box-sizing: border-box;
53            }
54            .clinic-name {
55              font-size: 28px;
56              font-weight: bold;
57              margin-bottom: 10px;
58              text-align: center;
59              color: #333;
60            }
61            .qr-title {
62              font-size: 20px;
63              margin-bottom: 20px;
64              color: #555;
65            }
66            .qr-code-img {
67              padding: 0;
68              background-color: white;
69              box-shadow: 0 2px 5px rgba(0,0,0,0.1);
70              margin-bottom: 20px;
71              width: 250px;
72              height: 250px;
73              object-fit: contain;
74            }
75            .address {
76              color: #666;
77              font-size: 16px;
78              text-align: center;
79              max-width: 80%;
80              line-height: 1.5;
81            }
82            .cut-line {
83              position: relative;
84              width: 100%;
85              height: 40px;
86              display: flex;
87              align-items: center;
88              justify-content: center;
89            }
90            .cut-line::before {
91              content: "";
92              position: absolute;
93              top: 50%;
94              left: 0;
95              right: 0;
96              border-top: 2px dashed #999;
97            }
98            .cut-line::after {
99              content: "✂";
100              position: absolute;
101              right: 10px;
102              background: white;
103              padding: 0 5px;
104              color: #999;
105              font-size: 20px;
106            }
107            .scissors-left {
108              content: "✂";
109              position: absolute;
110              left: 10px;
111              background: white;
112              padding: 0 5px;
113              color: #999;
114              font-size: 20px;
115              transform: scaleX(-1);
116            }
117          </style>
118        </head>
119        <body>
120          <div class="qr-container">
121            <div class="qr-cards">
122              <!-- First QR Card -->
123              <div class="qr-card">
124                <div class="clinic-name">${t.clinicName}</div>
125                <img src="${d}" class="qr-code-img" alt="QR Code">
126                <div class="address">
127                  ${u||i("tenant.no_address")}
128                </div>
129              </div>
130              
131              <div class="cut-line">
132                <div class="scissors-left"></div>
133              </div>
134              
135              <!-- Second QR Card (identical) -->
136              <div class="qr-card">
137                <div class="clinic-name">${t.clinicName}</div>
138                <img src="${d}" class="qr-code-img" alt="QR Code">
139                <div class="address">
140                  ${u||i("tenant.no_address")}
141                </div>
142              </div>
143            </div>
144          </div>
145          <script>
146            window.onload = function() {
147              setTimeout(function() {
148                window.print();
149              }, 500);
150            };
151          <\/script>
152        </body>
153      </html>
154    `),s.document.close()}).catch(d=>{console.error("Error generating QR code:",d),s.close()})}return(l,u)=>{const s=sn;return z(),X("div",Jn,[O("div",Qn,[n.value?(z(),X("canvas",{key:0,ref_key:"qrCodeRef",ref:e}
154,null,512)):ne("",!0)]),n.value?(z(),Tt(s,{key:0,type:"button",color:"light",size:"sm",onClick:a},{default:ae(()=>[It(Q(y(i)("tenant.print_qr_code")),1)]),_:1})):ne("",!0)])}}}),Wn=Object.assign(Zn,{__name:"ClinicLocationQRCode"}),Xn={class:"mx-auto max-w-6xl px-4 sm:px-6"},$n={class:"pb-5 text-xl font-semibold text-gray-900 sm:text-2xl"},er={class:"p-4 sm:p-6"},tr={class:"grid grid-cols-2 gap-6"},nr={class:"relative col-span-2 flex flex-col gap-4 rounded-lg border p-4 2xl:col-span-1"},rr={class:"absolute -top-3 left-2 bg-white px-2 py-0.5 text-sm font-semibold tracking-wider text-gray-600"},or={class:"grid grid-cols-1 gap-4 lg:grid-cols-2"},ir={class:"relative col-span-2 flex flex-col gap-4 rounded-lg border p-4 2xl:col-span-1 2xl:pt-[calc(2.25rem+2px)]"},ar={class:"absolute -top-3 left-2 bg-white px-2 py-0.5 text-sm font-semibold tracking-wider text-gray-600"},sr={class:"relative col-span-2 flex flex-col gap-4 rounded-lg border p-4"},lr={class:"absolute -top-3 left-2 bg-white px-2 py-0.5 text-sm font-semibold tracking-wider text-gray-600"},ur={class:"grid grid-cols-2 gap-6"},cr={class:"col-span-2 space-y-4 lg:col-span-1"},dr={key:0,class:"col-span-2 flex flex-col items-center gap-2 p-4 pb-0"},fr={key:0,class:"col-span-2 lg:col-span-1"},_r={__name:"clinic",async setup(o){let t,i;const n=Jt(),e=Xt(),{$i18n:r}=je(),{t:a}=r,l=Qt();Zt({title:()=>`${a("page_titles.page",{name:a("settings.sidebar.clinic"),productName:nn().name})}`});const s=L({...{name:"",email:"",phone:"",mobile:"",country:void 0,city:"",district:"",address:"",tax_office:"",tax_number:"",logo:void 0,sector_id:"",lat:null,lng:null,default_currency:"TRY",currencies:["TRY"]}}),d=L({}),h=L(""),p=L(0),g=Z(()=>p.value>0),m=L([]),C=async()=>{try{const c=await Ge().apiFetch("timezones",{requiresTenant:!1});m.value=c.data.map(f=>({value:f,name:f})).sort((f,q)=>f.name.localeCompare(q.name))}catch{m.value=[]}};[t,i]=ge(()=>C()),await t,i();const A=L([]),_=async()=>{const c=await Ge().apiFetch("sectors",{method:"GET",requiresTenant:!1});A.value=c.data.map(f=>({value:f.id,name:f.name}))};[t,i]=ge(()=>_()),await t,i();const v=L(n.activeTenant);async function P(){v.value=await n.showCurrentTenant()}async function S(c=!0){c&&await P(),s.value={name:v.value?.name||"",email:v.value?.email||"",phone:v.value?.phone||"",mobile:v.value?.mobile||"",country:v.value?.country||"",city:v.value?.city||"",district:v.value?.district||"",address:v.value?.address||"",tax_office:v.value?.tax_office||"",tax_number:v.value?.tax_number||"",logo:void 0,lat:v.value?.lat,lng:v.value?.lng,default_currency:v.value?.default_currency||"TRY",currencies:v.value?.currencies||["TRY"],timezone:v.value?.timezone,sector_id:v.value?.sector_id},h.value=v.value?.logo}[t,i]=ge(()=>S()),await t,i();const N=L(!1);async function w(){N.value=!0,d.value={};try{s.value.district=s.value.district??null,s.value.city=s.value.city??null,s.value.country=s.value.country??null,s.value.address=s.value.address??null,d.value={};const c=await n.updateCurrentTenant(s.value);if(await S(!0),l.success(a("saved_message",{entity:a("settings.clinic_settings")})),p.value=an(c),N.value=!1,p.value>0)return;setTimeout(()=>{window.location.reload()},750)}catch(c){if(N.value=!1,Number(c?.response?.status)===422){const f=c?.data?.errors;f&&(d.value=Object.keys(f).reduce((q,M)=>M.startsWith("currencies")?(q.currencies=f[M][0],q):(q[M]=f[M][0],q),{}))}}}const R=Z(()=>s.value.address||s.value.district||s.value.city),B=async()=>{try{const c=await $fetch(`https://maps.googleapis.com/maps/api/geocode/json?address=${R.value}&key=${e.public.GOOGLE_MAPS_API_KEY}`);if(c.results.length>0){const f=c.results[0].geometry.location;s.value.lat=f.lat,s.value.lng=f.lng}}catch{}};Ve(async()=>{(!s.value.lat||!s.value.lng)&&await B()}),Wt(()=>s.value.address,async()=>{R.value||(s.value.lat=null,s.value.lng=null),B()},{debounce:500,maxWait:2e3});function E(c){s.value.lat=c.latLng.lat(),s.value.lng=c.latLng.lng()}const{$hasPermission:I}=je(),b=Z(()=>!I(Ke.MANAGE)),T=Z(()=>tn().all.filter(c=>c.value&&c.value!=="--").filter(c=>c));return(c,f)=>{const q=xt,M=Vt,re=Ft,$=zt,le=$t,ee=rn,H=on;return z(),X("main",Xn,[O("h1",$n,Q(c.$t("settings.sidebar.clinic")),1),O("form",{id:"firm-info-form",autocomplete:"off",onSubmit:en(w,["prevent"])},[D(le,{class:"w-full"},{default:ae(()=>[O("div",er,[O("div",tr,[O("fieldset",nr,[O("legend",rr,Q(c.$t("tenant.clinic")),1),D(q,{modelValue:y(s).logo,"onUpdate:modelValue":f[0]||(f[0]=k=>y(s).logo=k),disabled:y(b),class:"w-full","error-message":y(d).logo,"avatar-class":"size-16! rounded-lg",label:c.$t("tenant.fields.logo"),description:c.$t("avatar_picker.descr"),url:y(h)},null,8,["modelValue","disabled","error-message","label","description","url"]),D(M,{modelValue:y(s).name,"onUpdate:modelValue":f[1]||(f[1]=k=>y(s).name=k),"input-id":"clinic-form-name",disabled:y(b),"error-message":y(d).name,label:c.$t("tenant.fields.name"),placeholder:c.$t("tenant.fields.name"),required:""},null,8,["modelValue","disabled","error-message","label","placeholder"]),O("div",or,[D(M,{modelValue:y(s).tax_office,"onUpdate:modelValue":f[2]||(f[2]=k=>y(s).tax_office=k),"input-id":"clinic-form-tax_office",disabled:y(b),"error-message":y(d).tax_office,label:c.$t("tenant.fields.tax_office"),placeholder:c.$t("tenant.fields.tax_office")},null,8,["modelValue","disabled","error-message","label","placeholder"]),D(M,{modelValue:y(s).tax_number,"onUpdate:modelValue":f[3]||(f[3]=k=>y(s).tax_number=k),"input-id":"clinic-form-tax_number",disabled:y(b),"error-message":y(d).tax_number,label:c.$t("tenant.fields.tax_number"),placeholder:c.$t("tenant.fields.tax_number")},null,8,["modelValue","disabled","error-message","label","placeholder"])]),D(re,{modelValue:y(s).sector_id,"onUpdate:modelValue":f[4]||(f[4]=k=>y(s).sector_id=k),label:c.$t("tenant.fields.sector"),class:"col-span-2",options:y(A),"error-message":y(d).sector_id,multiple:!1,searchable:"",required:""},null,8,["modelValue","label","options","error-message"])]),O("fieldset",ir,[O("legend",ar,Q(c.$t("tenant.communication")),1),D(M,{modelValue:y(s).email,"onUpdate:modelValue":f[5]||
154(f[5]=k=>y(s).email=k),"input-id":"clinic-form-email",disabled:y(b),"error-message":y(d).email,label:c.$t("tenant.fields.email"),placeholder:c.$t("tenant.fields.email"),required:""},null,8,["modelValue","disabled","error-message","label","placeholder"]),D($,{modelValue:y(s).phone,"onUpdate:modelValue":f[6]||(f[6]=k=>y(s).phone=k),class:"col-span-2 lg:col-span-1","input-id":"clinic-form-phone",disabled:y(b),label:c.$t("tenant.fields.phone"),"error-message":y(d).phone},null,8,["modelValue","disabled","label","error-message"]),D($,{modelValue:y(s).mobile,"onUpdate:modelValue":f[7]||(f[7]=k=>y(s).mobile=k),class:"col-span-2 lg:col-span-1","input-id":"clinic-form-mobile",disabled:y(b),label:c.$t("tenant.fields.mobile"),"error-message":y(d).mobile},null,8,["modelValue","disabled","label","error-message"])]),O("fieldset",sr,[O("legend",lr,Q(c.$t("tenant.address")),1),O("div",ur,[O("div",cr,[D(M,{modelValue:y(s).district,"onUpdate:modelValue":f[8]||(f[8]=k=>y(s).district=k),class:"col-span-2 lg:col-span-1","input-id":"clinic-form-district",disabled:y(b),"error-message":y(d).district,label:c.$t("tenant.fields.district"),placeholder:c.$t("tenant.fields.district")},null,8,["modelValue","disabled","error-message","label","placeholder"]),D(M,{modelValue:y(s).city,"onUpdate:modelValue":f[9]||(f[9]=k=>y(s).city=k),class:"col-span-2 lg:col-span-1","input-id":"clinic-form-city",disabled:y(b),"error-message":y(d).city,label:c.$t("tenant.fields.city"),placeholder:c.$t("tenant.fields.city")},null,8,["modelValue","disabled","error-message","label","placeholder"]),D(re,{modelValue:y(s).country,"onUpdate:modelValue":f[10]||(f[10]=k=>y(s).country=k),class:"col-span-2 lg:col-span-1","select-id":"clinic-form-country","error-message":y(d).country,label:c.$t("tenant.fields.country"),placeholder:c.$t("tenant.fields.country"),options:y(T),disabled:y(b),searchable:"",multiple:!1},null,8,["modelValue","error-message","label","placeholder","options","disabled"]),D(M,{modelValue:y(s).address,"onUpdate:modelValue":f[11]||(f[11]=k=>y(s).address=k),"input-id":"clinic-form-address",disabled:y(b),class:"col-span-2","error-message":y(d).address,label:c.$t("tenant.fields.address"),placeholder:c.$t("tenant.fields.address")},null,8,["modelValue","disabled","error-message","label","placeholder"]),y(s).lat&&y(s).lng?(z(),X("div",dr,[D(Wn,{"clinic-name":y(s).name,lat:y(s).lat,lng:y(s).lng,address:y(s).address,district:y(s).district,city:y(s).city,country:y(s).country},null,8,["clinic-name","lat","lng","address","district","city","country"])])):ne("",!0)]),y(s).lat&&y(s).lng?(z(),X("div",fr,[D(y(wn),{zoom:15,center:{lat:y(s).lat,lng:y(s).lng},"api-key":y(e).public.GOOGLE_MAPS_API_KEY,class:"h-[450px] min-h-[450px] w-full lg:h-full"},{default:ae(()=>[D(y(Bn),{draggable:!0,options:{position:{lat:y(s).lat,lng:y(s).lng},draggable:!0},onDragend:E},null,8,["options"])]),_:1},8,["center","api-key"])])):ne("",!0)])])])])]),_:1})],32),y(I)(("SettingPermissions"in c?c.SettingPermissions:y(Ke)).MANAGE)?(z(),Tt(ee,{key:0,"form-id":"firm-info-form","submit-in-progress":y(N)},{default:ae(()=>[It(Q(c.$t("tenant.update")),1)]),_:1},8,["submit-in-progress"])):ne("",!0),D(H,{show:y(g),"gift-sms":y(p)},null,8,["show","gift-sms"])])}}};export{_r as default};

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.